I am trying to read raw images with libraw and paint them to screen.
I need to extract per pixel RGB values where each color component must be in 0-255 range.
I am loading a raw file, iProcessor.imgdata.params.output_bps reports 8 bits per plane.
Whilst reading the image with iProcessor.imgdata.image[idx], I see values way above 255.
Am I missing something simple ?