Accessing processed image data
I'm unsure how and where to access processed image data after calling libraw_dcraw_process. I noticed that imgdata.image now has a valid pointer, but looking at the 4channels samples that suggests that this is just raw data (which I can and do currently access via imgdata.rawdata.raw_image). I've also looked at calling libraw_dcraw_make_mem_image which seems to create reasonable values in libraw_processed_image_t (width, height, etc., ) but just has data as a byte array (despite 16bit processed data) length=1 (libraw_types.h has ''unsigned char data[1]" declaration). Should I be able to interpret this as ''unsigned char *data" and reconstruct 'ushort' from pair of bytes? Or am I missing something? I've looked through the samples, but most (all?) simply create the processed data (somewhere) and pass it (opaquely) to the file output functions.
Sorry if the questions are stupid - I'm very rusty on C++ these days and I'm trying to write a JNA wrapper for LibRaw.
Recent comments