Giter Site home page Giter Site logo

Comments (9)

jonathan-blimke avatar jonathan-blimke commented on August 16, 2024

it also looks like it is displaying two frames at the same time

from animatedgifs.

embedded-creations avatar embedded-creations commented on August 16, 2024

Can you post your full sketch? (using Github Gist)

from animatedgifs.

jonathan-blimke avatar jonathan-blimke commented on August 16, 2024

yes of course. https://gitlab.fsi.hochschule-trier.de/blimkej/lights

from animatedgifs.

embedded-creations avatar embedded-creations commented on August 16, 2024

I see you're using @marcmerlin 's AnimatedGIFs fork, I'm not familiar enough with his code enough to help out, sorry.

from animatedgifs.

marcmerlin avatar marcmerlin commented on August 16, 2024

Honestly, there is very little info and it's more of a "please read and debug my code" :)

  1. does your matrix work?
  2. what code was it tested with?
  3. 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
  4. Did you run and tested https://github.com/marcmerlin/AnimatedGIFs ? If so, please do.
  5. 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.

marcmerlin avatar marcmerlin commented on August 16, 2024

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.

jonathan-blimke avatar jonathan-blimke commented on August 16, 2024

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) {...}

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.

marcmerlin avatar marcmerlin commented on August 16, 2024

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.

jonathan-blimke avatar jonathan-blimke commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.