I've encountered some issues with the fmt2rgb888 function: seems that the function doesn't convert an rgb565 buffer correctly to RGB 24-bit because, after inspecting the output buffer, I get a BGR 24-bit encoded image.
To solve this problem, I've edited the function this way:
I've encountered some issues with the fmt2rgb888 function: seems that the function doesn't convert an rgb565 buffer correctly to RGB 24-bit because, after inspecting the output buffer, I get a BGR 24-bit encoded image. To solve this problem, I've edited the function this way:
`... else if(format == PIXFORMAT_RGB565) { int i; uint8_t hb, lb; pix_count = src_len / 2; for(i=0; i<pix_count; i++) { hb = src_buf++; lb = src_buf++;
} ...`
simply changing the original masking order that puts B and G before R.
Does anyone else have issues with this function?