Comments (9)
it also looks like it is displaying two frames at the same time
from animatedgifs.
Can you post your full sketch? (using Github Gist)
from animatedgifs.
yes of course. https://gitlab.fsi.hochschule-trier.de/blimkej/lights
from animatedgifs.
I see you're using @marcmerlin 's AnimatedGIFs fork, I'm not familiar enough with his code enough to help out, sorry.
from animatedgifs.
Honestly, there is very little info and it's more of a "please read and debug my code" :)
- does your matrix work?
- what code was it tested with?
- you are using bits of my code, but mixed in different files (like main,cpp), it's nowhere close to what I wrote and tested
- Did you run and tested https://github.com/marcmerlin/AnimatedGIFs ? If so, please do.
- Or simpler, please run https://github.com/marcmerlin/AnimatedGIFs/tree/master/SimpleGifAnimViewer2
Until I get more details as to how your matrix is configured, how it's been tested to work, and how SimpleGifAnimViewer2 is failing, it's really a wild goose chase.
from animatedgifs.
that said, code that scales by 1.5x (not 2x), is there:
https://github.com/marcmerlin/AnimatedGIFs/blob/54733fc90a794a46a4ee3e9c1c64c1ba85a717df/GifAnim_Impl.h#L82
from animatedgifs.
First of all, thank you very much @embedded-creations and @marcmerlin for your interest in my topic. Honestly it is true that there is a big lack of information, that i should provide in order to get your help.
Anyway
My matrix is working, and it is displaying the gif atleast to a certain degree (colors and scaling are probably wrong). It is also possible to display correct bitmap arrays, which contain 4 digits hex color values, which are parsed into 5/6/5 RGB bitmaps.
Tested was it with Adafruit_GFX's -
drawRGBBitmap((int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) {...}
- function, and it works fine. You can find my code calling that function at: https://gitlab.fsi.hochschule-trier.de/blimkej/lights/blob/master/src/main.cpp#L315
the code was tested with a .gif file i created myself within Photoshop making sure that the color depth is set to 8 Bit, and amount of pixels equals the numbers of LED's im using in my matrix.
I was not able to solve the Problem in the last few days, so i started working on a different solution to display gifs, by converting every into a .bmp files and then extract the rgb values into bitmaps which can be displayed like i said earlierer.
I am not expecting any further help from you guys, even tho id be greatfull to know what was wrong in my attempt to port https://github.com/marcmerlin/AnimatedGIFs/tree/master/SimpleGifAnimViewer2 example into my current project. But i dont know what Information would be usefull for you. Since there are no error's thrown it seems to doing what it should.
Thank you for your time.
from animatedgifs.
drawRGBBitmap does not display gifs, it only takes input from http://www.rinkydinkelectronics.com/t_imageconverter565.php like
https://github.com/marcmerlin/FastLED_NeoMatrix/blob/master/examples/MatrixGFXDemo/google32.h
Before you port https://github.com/marcmerlin/AnimatedGIFs/tree/master/SimpleGifAnimViewer2 , did you get the existing code working as is? It's kind of important before you proceed further.
from animatedgifs.
I know that drawRGBBitmap does not display gifs, but i can transform the gif file data into the input parameters of the function. By converting every frame into a .bmp file and parsing the data and build RGB color hex values out of it. One condition to make that possible is that the number of pixels lines up with the number of leds.
I did not get the existing code working as it is. There were confusing include errors since im working with visual studio code and the platformio plugin. Probably wrong configuration on my side.
But since i found a different way like i discribed in the beginning of this very post, i wont longer attempt to port.
from animatedgifs.
Related Issues (20)
- Use malloc for ESP32 data buffers to avoid issues HOT 1
- librarification HOT 4
- How can I connect a button to Teensy 3.2? HOT 3
- Error opening GIF file HOT 9
- Unhandled Exception HOT 10
- Sections of the GIF are disappearing HOT 7
- Questions HOT 1
- Wrong Colors for all gifs HOT 2
- Improve calculation of frame rate delay
- Gifs display as mirror not full screen HOT 1
- Gif only playing first 10 sec. HOT 2
- Keep playing GIF until if it has started before DISPLAY_TIME_SECONDS has been reached?
- Allow for GIFs with transparency to be displayed over background with content
- GIF discoloration near maximum brightness HOT 1
- what pin is matrix on???? data pin for 32x32 matrix cheers HOT 2
- Gif Decoding HOT 1
- compiling fatal error HOT 8
- Only getting blank screen HOT 5
- Colors are different when played on the Display HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animatedgifs.