OtherCrashOverride / go-play

Retro emulation for the ODROID-GO
https://www.hardkernel.com/shop/odroid-go/
218 stars 72 forks source link

Suggestion: embed images #37

Closed Molorius closed 6 years ago

Molorius commented 6 years ago

Just a suggestion: it is easily possible to embed images/audio/etc files rather than convert them into a large binary header (such as in odroid-go-common/components/odroid/image_*.h). See the docs. I have found this easier to maintain, as you can quickly see what images are included. Nice project, by the way.

OtherCrashOverride commented 6 years ago

Embedding a binary is more "fragile" than embedding the image as a header file. The header "self describes" the data being used and is produced atomically (by GIMP) ensuring the data layout (struct) always matches the data.

The esp-idf does not support any image formats. Formats such as PNG are not suitable for use within the memory constraints.

Molorius commented 6 years ago

Makes sense, carry on. I also didn't know GIMP could do that, good to know.