I’ve got my hands on a 16-bit rgb565 image (specifically, an Android framebuffer dump), and I would like to convert it to 24-bit rgb888 for viewing on a normal monitor.
There is an error jleedev !!!
unsigned char green = (buf & 0x07c0) >> 5; unsigned char blue = buf & 0x003f;
the good code
unsigned char green = (buf & 0x07e0) >> 5; unsigned char blue = buf & 0x001f;
Cheers, Andy