When I load images taken with the board and convert them to rgb565, a color shift occurs, also on firmware 4.2.3. This is visible on the new images below.
Original image taken by H7+, then cropped in gthumb and saved:
When I load a jpeg and save it immediately after loading, no color shift is visible. If I do a to_rgb565 conversion, the impact on colors can be dramatic, for example here (on another image):
original:
Are you cropping the image then saving it as jpeg then reloading ? Can you post like steps to reproduce this issue ? It might be related to cropping on odd bayer boundaries.
I tried it with and without cropping (referring to the previous forum thread where this post was originally found), to then realise that cropping did not matter, to_rgb565 conversion did. If you download any of the original images linked above and run the minimal working example, you will see the color shift. Here is the original image whose histogram is shown right above :
Can you post these issues on github so they can be tracked. This one and the jpeg decompress one? They both seem to stem from the same issue. I am free this weekend and can take a crake at fixing the hardware jpeg code.
Thanks, this bug was fixed in the latest 4.3.1 firmware release - the color shift is much more subtle (there is still one but I suppose that is because the conversion cannot be lossless?).