Before I run
LibRaw::raw2image() or LibRaw::dcraw_process()
LibRaw::imgdata.sizes contain proper dimensions but after running one or the other the values are 0. Both functions return LIBRAW_SUCCESS (0)
I have no idea how to debug this. All images tested are cr2 and open just fine in other programs including "dcraw_emu.exe".
everything I did is below.
LibRaw rawP;
if(rawP.open_file(m_path.toLatin1().data()) == LIBRAW_SUCCESS && rawP.unpack() == LIBRAW_SUCCESS) {
qDebug() << rawP.imgdata.sizes.width << " " << rawP.imgdata.sizes.height << " before dcraw";
int state = rawP.dcraw_process();
qDebug() << rawP.imgdata.sizes.width << " " << rawP.imgdata.sizes.height << " after dcraw" << state;
...
}
Recent comments