I was using libraw 0.19.2 in my application for reading raw images. Once I decided to upgrade to 0.20.2 version image import obviously slowed down.
I would like to know if there is any specific reason for that, or maybe some new functionality has been added for importing that I miss for new version.
Just to note that in my app, both 19.2 and 20.2 were running the same code. Output data is the same but t_20.2 = t_19.2 * 2.
Please find code example bellow.
LibRaw proc; proc.open_file(fileName); proc.unpack(); /* ... setting some parameters here ... */ proc.dcraw_process(); proc.get_mem_image_format(&width, &height, &colorspace, &bps); const auto stride = width * (bps / 8) * colors; proc.copy_mem_image(outputImage, stride, 0);