Ralim / IronOS-Meta

Storing meta information about devices that dont need to be in the main repo
54 stars 10 forks source link

Pac Man GIF stops midway #11

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the Bug Other GIF files seem to work but the Pac Man one stops before ending (the frame stays on screen the time set on the duration of logo option).

To Reproduce

  1. Flash arcade_pac_man.gif.hex
  2. Set a duration for the logo
  3. Boot

Details of your device:

Additional context Should I lighten up the original GIF or maybe make it last less?

Ralim commented 2 years ago

Looking at the build logs, I suspect this is the gif with the warning Truncating animation after 18 frames as we are out of space

ghost commented 2 years ago

Must find a way to shrink down animations a little bit, the compiler doesn't run on optimized ones.

Ralim commented 2 years ago

Not sure what you mean by optimized ones? This is storing the deltas per stripe (8 vertical pixels). So animations that turn on and off are costly; where as animations that only turn on or off are less costly (half the delta). The encoding doesn't do fancy encoding; its meant to be quick and easy for the firmware to decode.

ghost commented 2 years ago

Right, naively I was already doing this GIF-side getting ERROR: You have a frame that is different to the first frame time. Mixed rates are not supported. Thanks.

Ralim commented 2 years ago

Yeah it will use the first inter-frame timing for the whole gif, to save having to encode each frames timing. Since most are roughly the same frame timing; saves a few bytes.