Hi, i need decode raw to rgb.
My code
LibRaw imageProcessor; imageProcessor.open_buffer(...); imageProcessor.unpack(); imageProcessor.dcraw_process(); int err; libraw_processed_image_t* img = imageProcessor.dcraw_make_mem_image(&err);
It work. But source raw file is dark, dcraw_make_mem_image is light ((
use imageProcessor.imgdata
use imageProcessor.imgdata.params.no_auto_bright=1 before processing;
http://www.libraw.org/docs/API-datastruct-eng.html#libraw_output_params_t
-- Alex Tutubalin @LibRaw LLC