Add new comment

How to tell if dcraw_make_mem_image() was called?

Hi comrads,

I would like to know how i can know that this call has happened:
image = iProcessor.dcraw_make_mem_image(&rc);

The reason is that i need to clear 'image':
LibRaw::dcraw_clear_mem(image);

But ofcourse only when dcraw_make_mem_image has been called. However, i have no idea to tell *if* it has been called in the first place. For example, testing for iProcessor.data!=NULL or image == NULL or .data or something similar has not worked for me, please assist.

Forums: