LibDCR
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:
Download libDCR
Differences between dcraw.c and libDCR/dcr.c:
DCRAW structure.dcr_" prefix, and the first parameter is of type DCRAW*.dcr_options structure, inside the DCRAW structure. The command line arguments can be managed using the dcr_parse_command_line_options function.dcr_init_dcraw and dcr_cleanup_dcraw.dcr_stream_ops structure, inside the DCRAW structure. dcr_init_dcraw initializes 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