dcraw32 equivalents

How would one simulate the following using libraw

dcraw32 -4 -D -T

and

dcraw32 -o1 -T

Thanks for any help.

Forums: 

LibRaw is library, it is not

LibRaw is library, it is not targeted to be full dcraw replacement. So, there is no such thing as 'document mode' (-D or -d in dcraw), programmer have full access to unprocessed raw data, but no ready samples for direct emulation of dcraw -D (may be unprocessed_raw sample will solve your problem)

Second one (-o1 is sRGB output, so the default) is emulated by dcraw_emu -T

-- Alex Tutubalin @LibRaw LLC