SHA256
1
0
forked from pool/dcraw
OBS User unknown 2007-05-03 22:06:54 +00:00 committed by Git OBS Bridge
parent 48c91284b3
commit 46cee82c49
7 changed files with 675 additions and 389 deletions

370
README
View File

@ -64,7 +64,7 @@ http://www.cybercom.net/~dcoffin/dcraw/:
execute permission.
* [13]dcraw.c -- decodes raw photos, extracts thumbnails, and
displays metadata
Supports 250 cameras at last count. Compile with "gcc -o dcraw -O4
Supports 260 cameras at last count. Compile with "gcc -o dcraw -O4
dcraw.c -lm -ljpeg -llcms" or "gcc -o dcraw -O4 dcraw.c -lm
-DNO_JPEG -DNO_LCMS". Run with no arguments to see a usage message.
Don't complain that 16-bit output is too dark -- read the FAQ!
@ -104,24 +104,22 @@ http://www.cybercom.net/~dcoffin/dcraw/:
To install dcraw with support for non-English languages, download the
latest tarball [27]from this directory and run the "install" script.
The currently supported languages are Esperanto, Russian, French,
Italian, German, Portuguese, Spanish, and Chinese (both Traditional and
Simplified).
Italian, German, Portuguese, Spanish, Dutch, Polish, and Chinese (both
Traditional and Simplified).
To add another language, you must translate the manpage to "dcraw_xx.1"
and the message table to "dcraw_xx.po", where "xx" is the two-letter
ISO language code. Use UTF-8 encoding. Translate only from my original
English and Esperanto texts -- other languages may contain factual
errors invisible to me.
There is no "dcraw_en.po" file for English messages. Create your
message table from [28]dcraw_eo.po, which always matches the latest
version of dcraw.
To add another language, send me translations of [28]this manpage and
[29]this message table in UTF-8 encoding. Translate only from my
original English and Esperanto texts -- other languages may contain
factual errors invisible to me.
Do not translate "Cannot do X" as "It is impossible to do X". Dcraw is
not perfect, so if it cannot do something, that does not mean that the
task is impossible. Computers must never use the pronoun "I", so write
"dcraw cannot do X".
"no white balance option" means "no option for white balance". Do not
translate it as "an option for no white balance"!
It is correct to say that dcraw decodes "raw photos". Some of these raw
photos are raw files (raw images with no other data of any kind), but
most contain data structures full of other information about the raw
@ -141,94 +139,108 @@ http://www.cybercom.net/~dcoffin/dcraw/:
digital cameras in their applications. They can call dcraw from a
graphical interface, paste pieces of dcraw.c into their code, or just
use dcraw.c as the documentation that camera makers refuse to provide:
* [29]ACDSee
* [30]Adobe Photoshop
* [31]BR's PhotoArchiver by Baard Riiber
* [32]BreezeBrowser by Chris Breeze
* [33]Conceiva Lightbox
* [34]cPicture by Juergen Eidt
* [35]Cumulus by Canto
* [36]dcRAW-X by Bryan Chang
* [37]DCRawUI by Sune Trudslev
* [38]Directory Opus Plugin by Leo Davidson(with C++ source code)
* [39]DeepSkyStacker by Luc Coiffier
* [40]dpMagic by Mikhail Stolpner
* [41]EasyRaw Studio
* [42]GraphicConverter by Thorsten Lemke
* [43]GVBox from JCO Consulting
* [44]ImageLab from Aragon System
* [45]IrfanView by Irfan Skiljan
* [46]IRIS image processor for astronomers
* [47]KA Photoservice
* [48]Lightbox by Josh Anon
* [49]LightZone by Anton Kast
* [50]Mixpo by Mixpo Portfolio Broadcasting Inc.
* [51]Photo Companion by Jeff Moore
* [52]Photo Jockey by Davie Lee Reed who also wrote a [53]dcraw
* [30]ACDSee
* [31]Adobe Photoshop
* [32]BR's PhotoArchiver by Baard Riiber
* [33]BreezeBrowser by Chris Breeze
* [34]Conceiva Lightbox
* [35]cPicture by Juergen Eidt
* [36]Cumulus by Canto
* [37]dcRAW-X by Bryan Chang
* [38]DCRawUI by Sune Trudslev
* [39]Directory Opus Plugin by Leo Davidson(with C++ source code)
* [40]DeepSkyStacker by Luc Coiffier
* [41]dpMagic by Mikhail Stolpner
* [42]EasyRaw Studio
* [43]GraphicConverter by Thorsten Lemke
* [44]GVBox from JCO Consulting
* [45]ImageLab from Aragon System
* [46]IrfanView by Irfan Skiljan
* [47]IRIS image processor for astronomers
* [48]KA Photoservice
* [49]Lightbox by Josh Anon
* [50]LightZone by Anton Kast
* [51]Mixpo by Mixpo Portfolio Broadcasting Inc.
* [52]Photo Companion by Jeff Moore
* [53]Photo Jockey by Davie Lee Reed who also wrote a [54]dcraw
interface for Delphi programmers.
* [54]Photo Organizer by Balint Kis
* [55]PhotoReviewer by Ben Haller
* [56]Photovault by Harri Kaimio
* [57]Picasa from Google
* [58]Picture Arena by Felix Schwarz
* [59]PixInsight by Pleiades Software
* [60]PiXPO by PiXPO Inc.
* [61]PolyView by Polybytes
* [62]PowerShovel-II by Luc Minnebo
* [63]RAW Developer by Iridient Digital
* [64]Raw Magick
* [65]RawConvert by Jason Swain
* [66]RawDrop by Frank Siegert
* [67]RawShooter from pixmantec
* [68]RawView by Jari Savolainen
* [69]Serif PhotoPlus, PanoramaPlus, and AlbumPlus
* [70]SharpRaw by Duane DeSieno
* [71]SilverFast DCPro by LaserSoft Imaging
* [72]StudioLine Photo by H&M Software
* [73]ViewIt by Zdzislaw Losvik
* [74]Viewer n5 by Dmitry Fedorov
* [75]VueScan by Ed Hamrick
* [55]Photo Organizer by Balint Kis
* [56]PhotoReviewer by Ben Haller
* [57]Photovault by Harri Kaimio
* [58]Picasa from Google
* [59]Picture Arena by Felix Schwarz
* [60]PixInsight by Pleiades Software
* [61]PiXPO by PiXPO Inc.
* [62]PolyView by Polybytes
* [63]PowerShovel-II by Luc Minnebo
* [64]RAW Developer by Iridient Digital
* [65]Raw Magick
* [66]RawConvert by Jason Swain
* [67]RawDrop by Frank Siegert
* [68]RawShooter from pixmantec
* [69]RawView by Jari Savolainen
* [70]Serif PhotoPlus, PanoramaPlus, and AlbumPlus
* [71]SharpRaw by Duane DeSieno
* [72]SilverFast DCPro by LaserSoft Imaging
* [73]StudioLine Photo by H&M Software
* [74]ViewIt by Zdzislaw Losvik
* [75]Viewer n5 by Dmitry Fedorov
* [76]VueScan by Ed Hamrick
Frequently Asked Questions
I don't have a C compiler. Could you send me an executable?
No, but Francisco Montilla provides Mac OS and Windows
executables [76]on his website. And Benjamin Lebsanft has
volunteered to maintain [77]Windows executables optimized for
executables [77]on his website. And Benjamin Lebsanft has
volunteered to maintain [78]Windows executables optimized for
specific CPUs.
If you're familiar with the DOS command line but don't know C,
you can install this [78]free C compiler for Windows and compile
you can install this [79]free C compiler for Windows and compile
dcraw.c quite easily.
Why does dcraw say "Out of memory" in Windows Vista?
This is an arbitrary limitation of Windows Vista that will be
fixed in Service Pack 1. Thomas Nicely (of Pentium FDIV fame)
has a [79]page describing the problem.
has a [80]page describing the problem. At the moment, the only
workaround is to build dcraw.exe with a Microsoft compiler
instead of a GNU compiler.
How can I read the EXIF data (shutter speed, aperture, etc.)?
[80]Phil Harvey's ExifTool provides a unified Perl-based EXIF
[81]Phil Harvey's ExifTool provides a unified Perl-based EXIF
reader (and editor!) for all cameras and file formats. "dcraw -i
-v" is much faster, but provides less information.
How can I read NEF files from Nikon scanners?
Dcraw only supports cameras. Try [81]this simple program for
Dcraw only supports cameras. Try [82]this simple program for
scanners.
How can I read Nikon Dust Off images (NDF files)?
[82]Use this program.
[83]Use this program.
Do you have any specifications describing raw photo formats?
Yes, but they tend to omit important details, like how to
decompress the raw image or decrypt private metadata. See the
[83]TIFF spec, the [84]TIFF/EP spec, the [85]Adobe DNG spec, the
[86]CIFF (CRW) spec, and the [87]X3F spec.
[84]TIFF spec, the [85]TIFF/EP spec, the [86]Adobe DNG spec, the
[87]CIFF (CRW) spec, and the [88]X3F spec.
Where can I get an assortment of raw photos to test my software?
[89]This website is a good place to exchange sample raw photos.
For the complete dcraw test suite (every camera supported by
dcraw), I sell a 2-DVD set for $600 and web-based updates for
$300/year.
I'm designing a digital camera. How do I convert its raw photos into
something that dcraw and Adobe Photoshop can open?
Download [88]LibTIFF v3.8.2 and apply [89]this patch. Then use
[90]this C program as a template for converting your photos to
valid [91]Adobe DNG files.
Download [90]LibTIFF v3.8.2 and apply [91]this patch. Then use
[92]this C program as a template for converting your photos to
valid [93]Adobe DNG files.
Why are dcraw output images larger than camera JPEGs?
Any algorithm that combines each pixel with its neighbors is
going to have problems near the edges. C code is cheap, so dcraw
applies a different algorithm to edge pixels. Hardware logic is
expensive, so cameras crop off the edge pixels after processing.
I shot a raw photo with no light. Why does it appear all noisy, when it
should be solid black?
@ -244,11 +256,11 @@ http://www.cybercom.net/~dcoffin/dcraw/:
Why is 16-bit output dark / unreadable?
If you want pretty pictures straight out of dcraw, stay with
8-bit output. 16-bit linear output is the best raw material for
professional image editors such as [92]Photoshop and
[93]CinePaint, but it's no good for most image viewers.
professional image editors such as [94]Photoshop and
[95]CinePaint, but it's no good for most image viewers.
What does the "-f" (four color RGB) option do?
If you see patterns like [94]this or [95]this in your output
If you see patterns like [96]this or [97]this in your output
images, first try "dcraw -a". If these patterns persist, use
"dcraw -f" to get rid of them.
@ -262,7 +274,7 @@ dcraw -c crw_0001.crw | pnmtopng > crw_0001.png
dcraw -c crw_0001.crw | ppmtobmp > crw_0001.bmp
dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
I used the [96]Netpbm toolkit in these examples. [97]ImageMagick
I used the [98]Netpbm toolkit in these examples. [99]ImageMagick
also does command-line format conversions. Both are free.
Why don't you implement dcraw as a library?
@ -276,7 +288,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
formats that change every day.
There's a simpler way to make dcraw modular and thread-safe: Run
it as a separate process. Eric Raymond [98]explains this
it as a separate process. Eric Raymond [100]explains this
technique here.
Why are there false colors along edges within the image?
@ -292,23 +304,23 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
Variable Number of Gradients (VNG), and Adaptive
Homogeneity-Directed (AHD).
[99]The Foveon X3 Capture chip requires a different kind of
[101]The Foveon X3 Capture chip requires a different kind of
interpolation. Unlike CCD arrays, it captures three colors at
every pixel location. But the colors are not well separated, so
the raw data looks very gray. Much processing is needed to
enhance color while suppressing noise.
How do I get my camera to take raw photos?
For the Canon PowerShot A610, A620, and others, [100]go here.
For the Canon PowerShot A610, A620, and others, [102]go here.
For some Nikon Coolpix cameras, you need to enable a
[101]special "DIAG RAW" mode.
For Casio cameras, see [102]Maurice Delaney's website or read
[103]this discussion on dpreview.
For the Minolta DiMAGE G400, G500, G530, or G600, go [104]here
(in Russian) or [105]here (in English).
[103]special "DIAG RAW" mode.
For Casio cameras, see [104]Maurice Delaney's website or read
[105]this discussion on dpreview.
For the Minolta DiMAGE G400, G500, G530, or G600, go [106]here
(in Russian) or [107]here (in English).
For the Minolta DiMAGE Z2 and Nikon Coolpix 2100/3100/3700,
[106]go here.
For SMaL cameras, see the [107]camerahacking Forum.
[108]go here.
For SMaL cameras, see the [109]camerahacking Forum.
For other cameras, refer to the User's Manual.
@ -316,7 +328,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
Most likely, yes. If your camera is not on the list below, try
dcraw anyway. If it doesn't work, post a raw image to a website
and e-mail me the URL. If you don't have a website, use
[108]Dropload or [109]YouSendIt.
[110]Dropload or [111]YouSendIt.
Ideally, your sample image should show a standard white card or
color chart in direct sunlight, with other colors in the
@ -325,6 +337,8 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
Supported Cameras
* Adobe Digital Negative (DNG)
* Apple QuickTake 100
* Apple QuickTake 150
* AVT F-145C
* AVT F-201C
* AVT F-510C
@ -335,6 +349,8 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Canon PowerShot A50
* Canon PowerShot A610
* Canon PowerShot A620
* Canon PowerShot A630
* Canon PowerShot A640
* Canon PowerShot Pro70
* Canon PowerShot Pro90 IS
* Canon PowerShot G1
@ -372,6 +388,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Casio QV-3500EX
* Casio QV-4000
* Casio QV-5700
* Casio QV-R41
* Casio QV-R51
* Casio QV-R61
* Casio EX-S100
@ -405,11 +422,11 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Imacon Ixpress 22-megapixel
* Imacon Ixpress 39-megapixel
* ISG 2020x1520
* Kodak DC20 (see [110]Oliver Hartman's page)
* Kodak DC25 (see [111]Jun-ichiro Itoh's page)
* Kodak DC20 (see [112]Oliver Hartman's page)
* Kodak DC25 (see [113]Jun-ichiro Itoh's page)
* Kodak DC40
* Kodak DC50
* Kodak DC120 (also try [112]kdc2tiff)
* Kodak DC120 (also try [114]kdc2tiff)
* Kodak DCS200
* Kodak DCS315C
* Kodak DCS330C
@ -460,6 +477,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Leica D-LUX3
* Leica V-LUX1
* Logitech Fotoman Pixtura
* Mamiya ZD
* Micron 2010
* Minolta RD175
* Minolta DiMAGE 5
@ -522,6 +540,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Olympus E-300
* Olympus E-330
* Olympus E-400
* Olympus E-410
* Olympus E-500
* Olympus SP310
* Olympus SP320
@ -529,6 +548,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Olympus SP500UZ
* Olympus SP510UZ
* Olympus SP550UZ
* Panasonic DMC-FZ8
* Panasonic DMC-FZ30
* Panasonic DMC-FZ50
* Panasonic DMC-L1
@ -545,6 +565,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Pentax Optio S
* Pentax Optio S4
* Pentax Optio 33WR
* Pentax Optio 750Z
* Phase One LightPhase
* Phase One H 10
* Phase One H 20
@ -562,6 +583,7 @@ dcraw -c crw_0001.crw | cjpeg > crw_0001.jpeg
* Sarnoff 4096x5440
* Sigma SD9
* Sigma SD10
* Sigma SD14
* Sinar 3072x2048
* Sinar 4080x4080
* Sinar 4080x5440
@ -606,88 +628,90 @@ References
25. http://www.cybercom.net/~dcoffin/dcraw/decompress.c
26. http://www.cybercom.net/~dcoffin/dcraw/sony_clear.c
27. http://www.cybercom.net/~dcoffin/dcraw/archive/
28. http://www.cybercom.net/~dcoffin/dcraw/dcraw_eo.po
29. http://www.acdsystems.com/
30. http://www.adobe.com/products/photoshop/cameraraw.html
31. http://www.br-software.com/
32. http://www.breezesys.com/
33. http://www.conceiva.com/
34. http://cpicture.net/en/t_raw.html
35. http://www.canto.com/
36. http://frostyplace.com/dcraw/
37. http://www.tanis.dk/wiki/index.php/DCRawUI
38. http://www.pretentiousname.com/jp2raw/
39. http://deepskystacker.free.fr/
40. http://www.dpmagic.com/
41. http://www.easyraw.com/
42. http://www.lemkesoft.com/
43. http://jcoconsulting.com/index.asp?Section=GVOCX
44. http://www.aragonsystem.com/
45. http://www.irfanview.com/
46. http://www.astrosurf.com/buil/us/iris/iris.htm
47. http://www.kaorg.com/photoservice.asp
48. http://www.lightboxsoftware.com/
49. http://sonic.net/~rat/lightcrafts/
50. http://www.mixpo.com/
51. http://www.wildcape.com/
52. http://photojockey.com/
53. http://smatters.com/dcraw/
54. http://www.k-i-s.net/
55. http://www.sticksoftware.com/software/PhotoReviewer.html
56. http://www.photovault.org/
57. http://www.picasa.com/
58. http://www.picturearena.com/
59. http://pleiades-astrophoto.com/
60. http://www.pixpo.com/
61. http://www.polybytes.com/
62. http://lens.liteserv.com/download/powershovel2.php
63. http://www.iridientdigital.com/
64. http://www.rawmagick.com/
65. http://www.i-graph.com/
66. http://www.wizards.de/rawdrop
67. http://www.pixmantec.com/
68. http://www.through-the-lens.net/
69. http://www.serif.com/
70. http://www.logicaldesigns.com/
71. http://www.silverfast.com/
72. http://www.studioline.net/
73. http://www.hexcat.com/viewit/
74. http://www.dimin.net/software/viewer/
75. http://www.hamrick.com/
76. http://www.insflug.org/raw/
77. http://www.lebsanft.org/blog/index.php?cat=9
78. http://www.delorie.com/djgpp/
79. http://www.trnicely.net/misc/vista.html
80. http://www.sno.phy.queensu.ca/~phil/exiftool/
81. http://www.cybercom.net/~dcoffin/dcraw/scan.c
82. http://www.cybercom.net/~dcoffin/dcraw/read_ndf.c
83. http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf
84. http://www.map.tu.chiba-u.ac.jp/IEC/100/TA2/recdoc/N4378.pdf
85. http://www.adobe.com/products/dng/pdfs/dng_spec.pdf
86. http://xyrion.org/ciff/
87. http://www.x3f.info/technotes/FileDocs/X3F_Format.pdf
88. http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz
89. http://www.cybercom.net/~dcoffin/dcraw/libtiff.patch
90. http://www.cybercom.net/~dcoffin/dcraw/elphel_dng.c
91. http://www.adobe.com/products/dng/main.html
92. http://www.adobe.com/products/photoshop/main.html
93. http://cinepaint.sourceforge.net/
94. http://www.cybercom.net/~dcoffin/dcraw/ahd_maze.png
95. http://www.cybercom.net/~dcoffin/dcraw/vng_grid.png
96. http://netpbm.sourceforge.net/
97. http://www.imagemagick.org/
98. http://www.faqs.org/docs/artu/multiprogramchapter.html
99. http://www.dpreview.com/news/0202/02021101foveonx3.asp
100. http://digicanon.narod.ru/
101. http://e2500.narod.ru/raw_format_e.htm
102. http://www.inweb.ch/foto/rawformat.html
103. http://forums.dpreview.com/forums/read.asp?forum=1015&message=4961779
104. http://myfototest.narod.ru/
105. http://forums.dpreview.com/forums/read.asp?forum=1024&message=11773287
106. http://tester13.nm.ru/nikon/
107. http://www.camerahacking.com/
108. http://dropload.com/
109. http://yousendit.com/
110. http://www.planet-interkom.de/oliver.hartmann/dc20secr.htm
111. http://www.itojun.org/diary/19961113/index.eng.html
112. http://kdc2tiff.sourceforge.net/
28. http://www.cybercom.net/~dcoffin/dcraw/dcraw.1
29. http://www.cybercom.net/~dcoffin/dcraw/dcraw_eo.po
30. http://www.acdsystems.com/
31. http://www.adobe.com/products/photoshop/cameraraw.html
32. http://www.br-software.com/
33. http://www.breezesys.com/
34. http://www.conceiva.com/
35. http://cpicture.net/en/t_raw.html
36. http://www.canto.com/
37. http://frostyplace.com/dcraw/
38. http://www.tanis.dk/wiki/index.php/DCRawUI
39. http://www.pretentiousname.com/jp2raw/
40. http://deepskystacker.free.fr/
41. http://www.dpmagic.com/
42. http://www.easyraw.com/
43. http://www.lemkesoft.com/
44. http://jcoconsulting.com/index.asp?Section=GVOCX
45. http://www.aragonsystem.com/
46. http://www.irfanview.com/
47. http://www.astrosurf.com/buil/us/iris/iris.htm
48. http://www.kaorg.com/photoservice.asp
49. http://www.lightboxsoftware.com/
50. http://sonic.net/~rat/lightcrafts/
51. http://www.mixpo.com/
52. http://www.wildcape.com/
53. http://photojockey.com/
54. http://smatters.com/dcraw/
55. http://www.k-i-s.net/
56. http://www.sticksoftware.com/software/PhotoReviewer.html
57. http://www.photovault.org/
58. http://www.picasa.com/
59. http://www.picturearena.com/
60. http://pleiades-astrophoto.com/
61. http://www.pixpo.com/
62. http://www.polybytes.com/
63. http://lens.liteserv.com/download/powershovel2.php
64. http://www.iridientdigital.com/
65. http://www.rawmagick.com/
66. http://www.i-graph.com/
67. http://www.wizards.de/rawdrop
68. http://www.pixmantec.com/
69. http://www.through-the-lens.net/
70. http://www.serif.com/
71. http://www.logicaldesigns.com/
72. http://www.silverfast.com/
73. http://www.studioline.net/
74. http://www.hexcat.com/viewit/
75. http://www.dimin.net/software/viewer/
76. http://www.hamrick.com/
77. http://www.insflug.org/raw/
78. http://www.lebsanft.org/blog/index.php?cat=9
79. http://www.delorie.com/djgpp/
80. http://www.trnicely.net/misc/vista.html
81. http://www.sno.phy.queensu.ca/~phil/exiftool/
82. http://www.cybercom.net/~dcoffin/dcraw/scan.c
83. http://www.cybercom.net/~dcoffin/dcraw/read_ndf.c
84. http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf
85. http://www.map.tu.chiba-u.ac.jp/IEC/100/TA2/recdoc/N4378.pdf
86. http://www.adobe.com/products/dng/pdfs/dng_spec.pdf
87. http://xyrion.org/ciff/
88. http://www.x3f.info/technotes/FileDocs/X3F_Format.pdf
89. http://raw.fotosite.pl/
90. http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz
91. http://www.cybercom.net/~dcoffin/dcraw/libtiff.patch
92. http://www.cybercom.net/~dcoffin/dcraw/elphel_dng.c
93. http://www.adobe.com/products/dng/main.html
94. http://www.adobe.com/products/photoshop/main.html
95. http://cinepaint.sourceforge.net/
96. http://www.cybercom.net/~dcoffin/dcraw/ahd_maze.png
97. http://www.cybercom.net/~dcoffin/dcraw/vng_grid.png
98. http://netpbm.sourceforge.net/
99. http://www.imagemagick.org/
100. http://www.faqs.org/docs/artu/multiprogramchapter.html
101. http://www.dpreview.com/news/0202/02021101foveonx3.asp
102. http://digicanon.narod.ru/
103. http://e2500.narod.ru/raw_format_e.htm
104. http://www.inweb.ch/foto/rawformat.html
105. http://forums.dpreview.com/forums/read.asp?forum=1015&message=4961779
106. http://myfototest.narod.ru/
107. http://forums.dpreview.com/forums/read.asp?forum=1024&message=11773287
108. http://tester13.nm.ru/nikon/
109. http://www.camerahacking.com/
110. http://dropload.com/
111. http://yousendit.com/
112. http://www.planet-interkom.de/oliver.hartmann/dc20secr.htm
113. http://www.itojun.org/diary/19961113/index.eng.html
114. http://kdc2tiff.sourceforge.net/

32
dcraw.1
View File

@ -9,7 +9,7 @@
.\" dcoffin a cybercom o net
.\" http://www.cybercom.net/~dcoffin
.\"
.TH dcraw 1 "February 21, 2007"
.TH dcraw 1 "May 3, 2007"
.LO 1
.SH NAME
dcraw - command-line decoder for raw digital photos
@ -104,26 +104,38 @@ Subtract a dark frame from the raw data. To generate a
dark frame, shoot a raw photo with no light and do
.BR dcraw\ -D\ -4\ -j\ -t\ 0 .
.TP
.B -a
Automatic color balance. The default is to use a fixed
color balance based on a white card photographed in sunlight.
.TP
.B -w
Use the color balance specified by the camera.
If this can't be found, print a warning and revert to the default.
Use the white balance specified by the camera.
If this is not found, print a warning and use another method.
.TP
.B -a
Calculate the white balance by averaging the entire image.
.TP
.B -A left top width height
Calculate the white balance by averaging a rectangular area.
First do
.B dcraw\ -j\ -t\ 0
and select an area of neutral grey color.
.TP
.B -r mul0 mul1 mul2 mul3
Specify your own raw color balance. These multipliers can be cut
and pasted from the output of
Specify your own raw white balance.
These multipliers can be cut and pasted from the output of
.BR dcraw\ -v .
.TP
no white balance option
Use a fixed white balance based on a color chart illuminated
with a standard D65 lamp.
.TP
.B -H 0
Clip all highlights to solid white (default).
.TP
.B -H 1
Leave highlights unclipped in various shades of pink.
.TP
.B -H 2-9
.B -H 2
Blend clipped and unclipped values together for a gradual fade to white.
.TP
.B -H 3-9
Reconstruct highlights. Low numbers favor whites; high numbers
favor colors. Try
.B -H 5

608
dcraw.c

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Thu May 3 14:31:24 CEST 2007 - postadal@suse.cz
- updated to RCS 1.379
* Offer blended highlights with the "-H 2" option
* Set "shot_order" for ORF and CR2 files
* Added "-A" option to select a rectangle for white balance
* Protect against overflow attacks on malloc() or calloc()
* Nucore raw formats are not used outside Nucore, so drop them
* Support the Canon PowerShots A630 and A640, Panasonic DMC-FZ8,
* Sigma SD14, Apple QuickTake 100 & 150, Mamiya ZD, Casio QV-R41,
Olympus E-410 and Pentax Optio 750Z
- fixed doc permissions
-------------------------------------------------------------------
Wed Apr 25 02:12:58 CEST 2007 - postadal@suse.cz

View File

@ -1,5 +1,5 @@
#
# spec file for package dcraw (Version 1.377)
# spec file for package dcraw (Version 1.379)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@ -12,7 +12,7 @@
Name: dcraw
BuildRequires: libjpeg-devel liblcms-devel
Version: 1.377
Version: 1.379
Release: 1
License: Any permissive
Group: Productivity/Graphics/Convertors
@ -44,7 +44,6 @@ Authors:
%setup -q -n . -D -T 0
cp -a %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE7 %SOURCE8 .
mv badpixels .badpixels
chmod +x dcwrap
%build
export CFLAGS="$RPM_OPT_FLAGS"
@ -64,8 +63,8 @@ Authors:
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
install -m 0755 dcraw $RPM_BUILD_ROOT/%_bindir/
install -m 0644 dcraw.1 $RPM_BUILD_ROOT/%_mandir/man1/
install parse $RPM_BUILD_ROOT/%_bindir/dcparse
install fujiturn $RPM_BUILD_ROOT/%_bindir/
install -m 0755 parse $RPM_BUILD_ROOT/%_bindir/dcparse
install -m 0755 fujiturn $RPM_BUILD_ROOT/%_bindir/
%clean
rm -rf $RPM_BUILD_ROOT
@ -77,6 +76,17 @@ rm -rf $RPM_BUILD_ROOT
%doc %_mandir/man*/*
%changelog
* Thu May 03 2007 - postadal@suse.cz
- updated to RCS 1.379
* Offer blended highlights with the "-H 2" option
* Set "shot_order" for ORF and CR2 files
* Added "-A" option to select a rectangle for white balance
* Protect against overflow attacks on malloc() or calloc()
* Nucore raw formats are not used outside Nucore, so drop them
* Support the Canon PowerShots A630 and A640, Panasonic DMC-FZ8,
* Sigma SD14, Apple QuickTake 100 & 150, Mamiya ZD, Casio QV-R41,
Olympus E-410 and Pentax Optio 750Z
- fixed doc permissions
* Wed Apr 25 2007 - postadal@suse.cz
- updated to RCS 1.377
* Added a color matrix for the Fuji S6000fd

18
parse.c
View File

@ -5,8 +5,8 @@
This program displays raw metadata for all raw photo formats.
It is free for all uses.
$Revision: 1.63 $
$Date: 2007/02/25 03:07:01 $
$Revision: 1.64 $
$Date: 2007/04/29 04:00:59 $
*/
#include <stdio.h>
@ -218,6 +218,11 @@ void parse_makernote (base)
val = get2(); /* should be 42 decimal */
offset = get4();
fseek (ifp, offset-8, SEEK_CUR);
} else if (!strcmp (buf,"OLYMPUS")) {
base = ftell(ifp)-10;
fseek (ifp, -2, SEEK_CUR);
order = get2();
val = get2();
} else if (!strncmp (buf,"FUJIFILM",8) ||
!strncmp (buf,"SONY",4) ||
!strcmp (buf,"Panasonic")) {
@ -242,7 +247,7 @@ void parse_makernote (base)
type = get2();
count= get4();
tiff_dump (base, tag, type, count, 2);
if (tag == 0x11) {
if (tag == 0x11 || type == 13) {
fseek (ifp, get4()+base, SEEK_SET);
parse_tiff_ifd (base, 3);
}
@ -635,7 +640,7 @@ void get_utf8 (int offset, char *buf, int len)
void parse_foveon()
{
int entries, off, len, tag, save, i, j, k, pent, poff[256][2];
unsigned entries, off, len, tag, save, i, j, k, pent, poff[256][2];
char name[128], value[128], camf[0x20000], *pos, *cp, *dp;
unsigned val, key, type, num, ndim, dim[3];
@ -658,7 +663,7 @@ void parse_foveon()
tag, tag >> 8, tag >> 16, tag >> 24, off, len);
if (get4() != (0x20434553 | (tag << 24))) {
printf ("Bad Section identifier at %6x\n", off);
goto next;
return;
}
val = get4();
printf ("version %d.%d, ",val >> 16, val & 0xffff);
@ -763,7 +768,7 @@ void parse_foveon()
get4();
printf ("nchars %d\n", get4());
off += pent*8 + 24;
if (pent > 256) pent=256;
if ((unsigned) pent > 256) pent=256;
for (i=0; i < pent*2; i++)
poff[0][i] = off + get4()*2;
for (i=0; i < pent; i++) {
@ -776,7 +781,6 @@ void parse_foveon()
strcpy (model, value);
}
}
next:
fseek (ifp, save, SEEK_SET);
}
}

View File

@ -10,7 +10,7 @@ wget -N http://www.cybercom.net/~dcoffin/dcraw/dcraw.c
wget -N http://www.cybercom.net/~dcoffin/dcraw/.badpixels
mv .badpixels badpixels
( URL="http://www.cybercom.net/~dcoffin/dcraw/" ; echo -e "$URL:\n" ; LC_ALL=C lynx -dump "$URL" | sed '1d;3,4d' ) >README
wget http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
wget -N http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
rlog dcraw.c >dcraw.log
echo
echo "Please check, whether packaged file list is up to date."