Dcraw Source Code Analysis
Author:maddock
Date:2015-04-22
Reprint please specify the source:
First spit The groove a bit: The program uses a considerable number of global variables, look at the big head. Disadvantages of global variables see
Http://wenku.baidu.com/link?url= 7trgbb6ar2mmpcgjd8cgvhinuzfdd0klmixsybt7w-ooepyx5hboy2eb7gxtmxgz-6mippv2kxtlwm3x3ec8k9-4oxmubqe3kucfrsb9u1u
But have to admit, Dcraw author's program control level is too strong, version maintenance for many years, so many global variables retractable freely, this source has been a lot of raw,dng codec software adopted.
Code Source: http://www.cybercom.net/~dcoffin/dcraw/
Code Debug Compilation Environment:
Cygwin + GCC
DCRAW.C--Decodes raw photos, extracts thumbnails, and displays metadata
Compile with
"gcc-o Dcraw-o4 dcraw.c-lm-ljasper-ljpeg-llcms2" or
"gcc-o Dcraw-o4 dcraw.c-lm-dnodeps".
Related knowledge Supplement:
1 TIFF file format
Document download
http://download.csdn.net/detail/Doeld/1453443
Partially translated documents
Http://wenku.baidu.com/link?url= Aq7i5r9xakpw6ctv3mpvyjdmhidz-hxsdhnktqir2qbz66fkgtzca--xfuyq1akodgyuqp-pkiuthqlwr-8j5bouhqkekdgfpqsizqxshj7
2 DNG RAW Format cognition
Refer to my other post. dng format parsing
Dcraw Source-Structure
Dcraw source-Get RAW image information
Dcraw source-raw image interpolation, color adjustment
Dcraw Source-Format conversion
Dcraw Source Code Analysis