Back to xdp home page
LibDCR is a conversion of the well known dcraw.c software, created by Dave Coffin, into a C library. LibDCR is fully based on dcraw.c and inherits the same features and license terms.
The original dcraw.c source code is splitted in 3 files:
Differences between dcraw.c and libDCR/dcr.c:
dcr_" prefix, and the first parameter is of type
dcr_optionsstructure, inside the
DCRAWstructure. The command line arguments can be managed using the
dcr_stream_opsstructure, inside the
dcr_init_dcrawinitializes the pointers to the standard functions (fopen, fread, ...)
A basic application of libDCR is shown in CxImage, in the CxImageRAW class you can see how to setup a different file manager, or how to extract the pixel data from the image.
For further information on dcraw.c features and usage, please refer to the Dave Coffin's home page