LibDCR

A conversion of dcraw.c
Download

LibDCR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Davide Pizzolato
  • Operating Systems:
  • Windows All
  • File Size:
  • 104 KB

LibDCR Tags


LibDCR Description

LibDCR was developed to be 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: - libdcr.h : libray header file - libdcr.c : library main file - dcr.c : main dcraw.c application implemented using the libDCR library Differences between dcraw.c and libDCR/dcr.c: - the global variables declared in dcraw.c, in libDCR are grouped in the DCRAW structure. - the functions exported from libDCR have the "dcr_" prefix, and the first parameter is of type DCRAW*. - the variables for the command line arguments are grouped in the dcr_options structure, inside the DCRAW structure. The command line arguments can be managed using the dcr_parse_command_line_options function. - the application must initialize and free the DCRAW structure, using dcr_init_dcraw and dcr_cleanup_dcraw. - the standard functions for file access are replaced with function pointers, grouped in the dcr_stream_ops structure, inside the DCRAW structure. dcr_init_dcraw initializes the pointers to the standard functions (fopen, fread, ...)


LibDCR Related Software