pengutronix / meta-ptx

Yocto layer for ptx-releated tools and distro
MIT License
10 stars 23 forks source link

platsch.bbclass: add conversion to XRGB8888 format #162

Open rohieb opened 1 week ago

rohieb commented 1 week ago

With a similar command line as for RGB565, we can also generate XRGB8888 formats.

Patch by @OnkelUlla, tested by me.

(Originally I wanted to literalize this generation a bit and make use of ImageMagick's RGBA output format followed by a simple reordering of the color channels with the -color-matrix option as mentioned in this discussion, but then the image is always written top-down and the -flip option that we pass by default via ${SPLASH_MGK_CUSTOM_OPTION} would be broken. So I opted for Ulrich's solution for now.)

rohieb commented 1 week ago

Note: this can also be cherry-picked cleanly to styhead, scarthgap, nanbield and mickledore as well.