Skip to content

support for rgb565 pls #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tooyangtoonaive opened this issue Mar 22, 2025 · 2 comments
Open

support for rgb565 pls #620

tooyangtoonaive opened this issue Mar 22, 2025 · 2 comments

Comments

@tooyangtoonaive
Copy link

tooyangtoonaive commented Mar 22, 2025

In embedded system, rgb565 is more common format than other.

bit order
R will be the most significant 5 bits: R = bits[15 ~ 11] G = bits[10 ~ 5] B = bits[4 ~ 0]

byte order
little endian: bits[7 ~0] first byte, bits[15 ~ 8] second byte
big endian: swap little endian bytes

@ChristianFeldmann
Copy link
Member

Hi! So its like a packed RGB format. Interesting. Could you provide a sample file in this format? Or is there a way to create this somehow?

@tooyangtoonaive
Copy link
Author

Hi! So its like a packed RGB format. Interesting. Could you provide a sample file in this format? Or is there a way to create this somehow?

sample file
https://github.com/coolaj86/image-examples/blob/master/test/reference.rgb565

you can use PixelViewer (https://github.com/carina-studio/PixelViewer/) to view it.

preview:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants