Skip to content
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

Rgb565 #630

Open
paraflu opened this issue Mar 30, 2024 · 1 comment
Open

Rgb565 #630

paraflu opened this issue Mar 30, 2024 · 1 comment

Comments

@paraflu
Copy link

paraflu commented Mar 30, 2024

I'm not very knowledgeable in image management and I discovered the rgb565 format. I have an image RGB565 serialized with an rle compression, I've decoded byte per byte from and to rgb888 with many shift of bit and pixel by pixel. Now I was better looking the library and I was looking for some rgb888 to rgb856 format conversion but I can't find it. Is supposed I have to write my encoder/decoder? Should be useful for your lib?

From where I can start to develop the enc/dec?

Thanks for all your work

@brendan-duncan
Copy link
Owner

Rgb565 is ok for file size, but it has pretty niche usage. Not many apps will support it, it will almost always expand to rgb888 in memory, it's not great for compression, and there are not many existing image formats that will support it. There is a variant of BMP that can store Rgb565, but not many programs will support it.

So I'm not sure how useful having a custom image format for rgb565 in this library would be. It would likely have a single user, you. Which isn't a bad thing, but I'm not sure it would be worth the technical debt to add a custom format. If you want to add Rgb565 to the BMP encoder/decoder, that might not be so bad.

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

No branches or pull requests

2 participants