This is a Debian patch file for "dcraw" 8.39. This file was obtained originally from: http://ftp.debian.org/debian/pool/main/d/dcraw/\ dcraw_8.39-1.diff.gz The contents are unchanged except for these comments. --- dcraw-8.39.orig/badpixels +++ dcraw-8.39/badpixels @@ -0,0 +1,34 @@ +# .badpixels file for my Canon PowerShot G2, serial no. 4624504380 +# dcraw will use this file if run in the same directory, or in any +# subdirectory. + +# Always use "dcraw -d -j -t 0" when locating bad pixels!! + +# Format is: pixel column, pixel row, UNIX time of death + +# This pixel went bad between August 1 and 4, 2002 + 962 91 1028350000 +# This pixel went bad between January 9 and 30, 2003 + 902 877 1043000000 + +# These are only visible in low light, so I haven't dated them: + 621 943 0 +1285 1067 0 +1286 1067 0 +2181 1532 0 + +# I swept these up 4/19/2005 + 763 36 1110000000 +1827 466 1110000000 + +# low light + 198 1288 1110000000 + 346 328 1110000000 + 429 273 1110000000 + 621 943 1110000000 + 624 874 1110000000 + 848 400 1110000000 +1682 1686 1110000000 +1892 1250 1110000000 +2234 484 1110000000 +2242 618 1110000000 --- dcraw-8.39.orig/debian/copyright +++ dcraw-8.39/debian/copyright @@ -0,0 +1,33 @@ +This is a Debian GNU/Linux prepackaged version of dcraw +It was debianized by Steve King + +dcraw code was downloaded from: + http://www.cybercom.net/~dcoffin/dcraw/dcraw.c + http://www.cybercom.net/~dcoffin/dcraw/dcraw.1 + +Upstream Authors: + Dave Coffin (dcraw executable) + +dcraw Copyright: + dcraw.c -- Dave Coffin's raw photo decoder + Copyright 1997-2004 by Dave Coffin, dcoffin a cybercom o net + + This is a command-line ANSI C program to convert raw photos from + any digital camera on any computer running any operating system. + + Attention! Some parts of this program are restricted under the + terms of the GNU General Public License. Such code is enclosed + in "BEGIN GPL BLOCK" and "END GPL BLOCK" declarations. + + All the code currently under GPL is specific to Foveon cameras. + This began in Revision 1.237. + + To lawfully redistribute dcraw.c, you must either (a) include + full source code for all executable files containing restricted + functions, (b) remove these functions, re-implement them, or + copy them from an earlier, non-GPL Revision of dcraw.c, or (c) + purchase a license from the author. + + +This software may be redistributed under the terms of the GNU GPL, Version 2 +or later, found on Debian systems in the file /usr/share/common-licenses/GPL --- dcraw-8.39.orig/debian/dirs +++ dcraw-8.39/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- dcraw-8.39.orig/debian/changelog +++ dcraw-8.39/debian/changelog @@ -0,0 +1,167 @@ +dcraw (8.39-1) unstable; urgency=low + + * New upstream version + * Maintainer email change + + -- Steve King Sun, 24 Sep 2006 21:27:50 +0100 + +dcraw (8.38-1) unstable; urgency=low + + * New upstream version + * Packaged .badpixels as examples/badpixels + + -- Steve King Sun, 17 Sep 2006 20:34:11 +0100 + +dcraw (8.23-1) unstable; urgency=low + + * Removed substvars + * Made compliant to debian-policy 3.7.2.1 + * Removed build dependancy on libc6-dev + * Added fujiturn/fuji_green and clean_crw (Closes: #351364) + * New upsream version (Closes: #368856) + * Removed dcfixdates, dcwrap (no longer maintained upstream) + + -- Steve King Mon, 26 Jun 2006 13:48:05 +0000 + +dcraw (7.94-1) unstable; urgency=low + + * New upstream version (Closes: #341370) + * Checked against debian policy and debhelper and a few minor corrections made + * Added build script "getsource" installed in examples (should be considered + * alpha quality) + + -- Steve King Wed, 21 Dec 2005 16:01:39 +0000 + +dcraw (7.17-1) unstable; urgency=low + + * New upstream version (Close: #306606) + + -- Steve King Sat, 30 Apr 2005 19:17:37 +0100 + +dcraw (7.02-1) unstable; urgency=low + + * New upstream version + * Fixes a typo in the Makefile which caused dcparse to be installed with an + absolute path. (Closes: #300105) + * Modified source priority to extra + + -- Steve King Sat, 19 Mar 2005 09:26:21 +0000 + +dcraw (7.00-1) unstable; urgency=low + + * New upstream version + * Support for automatically or manually rotating images (if your + * camera has support) + * Support for Canon D20 (among others) + * Closes: #274603 + * Modified synopsis to remove initial capital letter + * Closes: #293383 + * Includes the fixdates and parse binaries for reading internal dates + * and retriving thumbnail images from certain files (experts only) + * Added /usr/share/doc/dcraw/examples/dcrwap, from D. Coffin's web site + + -- Steve King Thu, 10 Mar 2005 22:40:54 +0000 + +dcraw (5.88-1) unstable; urgency=low + + * New upstream version + * Closes: #241165: Produces wrong color in output file + * Closes: #258298: Please package new version + + -- Steve King Fri, 6 Aug 2004 20:52:50 +0100 + +dcraw (5.73-1) unstable; urgency=low + + * New upstream version + + -- Steve King Sat, 17 Apr 2004 09:46:51 +0100 + +dcraw (5.71-1) unstable; urgency=low + + * New upstream version + + -- Steve King Tue, 6 Apr 2004 19:55:33 +0100 + +dcraw (5.53-1) unstable; urgency=low + + * New upstream version: + * New Camera Support: Pentax Optio S4, + * Nikon D70, Minolta DiMAGE A2, and Olympus C8080WZ + * Significant speed improvements (Uses about 70% of cpu time compared + * with 5.43-1 on my data) + * Native support for cameras using lossless jpeg + * (Avoids licensing problems with 3rd party lossless jpeg support) + + -- Steve King Sun, 22 Feb 2004 08:02:24 +0000 + +dcraw (5.43-1) unstable; urgency=low + + * New upstream version (support for Sony DSC-F828) + + -- Steve King Sat, 10 Jan 2004 14:25:19 +0000 + +dcraw (5.18-1) unstable; urgency=low + + * New upstream version (support for Phase One medium format digital backs) + * Changed Makefile to -O3 for slightly faster operation + * Patch for Segfault on 64bit architectures + + -- Steve King Fri, 21 Nov 2003 14:35:04 +0000 + +dcraw (5.08-1) unstable; urgency=low + + * New upstream version + + -- Steve King Wed, 15 Oct 2003 14:40:25 +0100 + +dcraw (5.05-1) unstable; urgency=low + + * New upstream version + + -- Steve King Sun, 12 Oct 2003 15:44:12 +0100 + +dcraw (5.02-1) unstable; urgency=low + + * New upstream version + * Removed reference to lossless jpeg support in debian/control description + * Changed source http reference and upstream authors contact details + * Removed the Makefile from _orig.tar.gz. Makefile was added by me. + * Changed debian/control dependance from libc6 to ${shlibs:Depends} for ia64 + * closes: Bug#213473 + + -- Steve King Tue, 30 Sep 2003 18:42:11 +0100 + +dcraw (4.88-4) unstable; urgency=low + + * Built on an unstable system + * Removed lossless jpeg support due to licensing (See README.Debian) + + -- Steve King Sun, 31 Aug 2003 20:13:23 +0100 + +dcraw (4.88-3) unstable; urgency=low + + * Removed debian/compat and added "export DH_COMPAT=3W to debian/rules + + -- Steve King Thu, 31 Jul 2003 07:27:08 +0100 + +dcraw (4.88-2) unstable; urgency=low + + * Reworded debian/copyright file + * Removed some unnecessary cruft from debian/rules + * Modified Makefile to install man page into /usr/share/man/man1 + + -- Steve King Wed, 30 Jul 2003 18:04:07 +0100 + +dcraw (4.88-1) unstable; urgency=low + + * Upstream update + + -- Steve King Tue, 29 Jul 2003 21:56:12 +0100 + +dcraw (4.87-1) unstable; urgency=low + + * Initial Release. + * closes: Bug#194280 + + -- Steve King Thu, 10 Jul 2003 10:55:29 +0100 + --- dcraw-8.39.orig/debian/README.Debian +++ dcraw-8.39/debian/README.Debian @@ -0,0 +1,20 @@ +dcraw for Debian +---------------- + +This is a snapshot of dcraw downloaded on 24 September 2006 + $Date: 2006/09/19 20:50:11 $ + +I personally have a Canon EOS 10D and have found the output from +dcraw comparable to software supplied by Canon (which is for +windows only of course). +Typically, I have found, dcraw produces improved contrast images +making better use of the available dynamic range. + +There is also a plugin for the gimp to read raw images directly. + +I have added "getsource" a script I use to build dcraw. This includes +the shell code to build the .orig.tar.gz file (this is not distributed +by the author) + + -- Steve King + --- dcraw-8.39.orig/debian/rules +++ dcraw-8.39/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -f substvars + + $(MAKE) clean + + dh_clean + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=`pwd`/debian/`dh_listpackages` install + dh_installchangelogs + dh_installdocs + dh_installexamples getsource badpixels + dh_installman dcraw.1 dcparse.1 dcfujiturn.1 dcfujiturn16.1 dccleancrw.1 dcfujigreen.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- dcraw-8.39.orig/debian/control +++ dcraw-8.39/debian/control @@ -0,0 +1,20 @@ +Source: dcraw +Section: graphics +Priority: extra +Maintainer: Steve King +Build-Depends: debhelper (>= 5.0.0), libjpeg-dev, liblcms1-dev +Standards-Version: 3.7.2.1 + +Package: dcraw +Priority: extra +Architecture: any +Depends: ${shlibs:Depends} +Suggests: gphoto2, netpbm +Description: decode raw digital camera images + This utility converts the native (RAW), format of various digital + cameras into netpbm portable pixmap (.ppm) image. Supports the + following models: Canon, Kodak, Olympus, Nikon, Fuji, Minolta and + Sigma (see http://www.cybercom.net/~dcoffin/dcraw/ for full list) + Note: This utility does not read directly from the cameras, only + the files after they have been downloaded, use gphoto2 for that. + --- dcraw-8.39.orig/debian/compat +++ dcraw-8.39/debian/compat @@ -0,0 +1 @@ +5 --- dcraw-8.39.orig/dcparse.1 +++ dcraw-8.39/dcparse.1 @@ -0,0 +1,26 @@ +.\" +.\" Manpage for dcparse +.\" Copyright 2004, Steve King +.\" This file may be distributed without restriction. +.\" +.TH dcparse 1 "Mar 17, 2005" +.LO 1 +.SH NAME +dcparse - Extract embeded thumbnail image and print CIFF/TIFF data to screen +.br +.SH SYNOPSIS +.B dcparse +file1.crw file2.crw ... +.br +.SH DESCRIPTION +This utility reads data directly from RAW digital photo files. + +.B dcparse +prints internal CIFF/TIFF data, and creates a file called +.B .thumb +which is generally a JPEG file. The CIFF/TIFF data is technical in nature. + +.SH "SEE ALSO" +dcraw(1) +.SH AUTHOR +Written by Steve King for debian. --- dcraw-8.39.orig/Makefile +++ dcraw-8.39/Makefile @@ -0,0 +1,60 @@ +# Executables +CC = gcc +INSTALL= /usr/bin/install + +# Flags +CFLAGS = -I. -O3 -g -Wall + +SRC = dcraw.c parse.c fujiturn.c fuji_green.c clean_crw.c +OBJ = dcraw.o parse.o fujiturn.o fujiturn16.o fuji_green.o clean_crw.o + +# Targets +default: dcraw dcparse dcfujiturn dcfujiturn16 dcfujigreen dccleancrw + +dcraw: dcraw.o + $(CC) -s -o $@ dcraw.o -lm -ljpeg -llcms + +dcparse: parse.o + $(CC) -s -o $@ parse.o + +dcfujiturn: fujiturn.o + $(CC) -s -o $@ fujiturn.o + +dcfujiturn16: fujiturn16.o + $(CC) -s -o $@ fujiturn16.o + +dcfujigreen: fuji_green.o + $(CC) -s -o $@ fuji_green.o -lm + +dccleancrw: clean_crw.o + $(CC) -s -o $@ clean_crw.o + +clean: + rm -f core *.o + rm -f dcraw dcparse dcfujiturn dcfujigreen dccleancrw + rm -f dcfujiturn16 + +dcraw.o: dcraw.c + +parse.o: parse.c + +fixdates.o: fixdates.c + +fujiturn.o: fujiturn.c + +fujiturn16.o: fujiturn.c + $(CC) -c -D_16BIT -o $@ fujiturn.c + +fuji_green.o: fuji_green.c + $(CC) -c -include netinet/in.h -o $@ fuji_green.c + +clean_crw.o: clean_crw.c + +install: dcraw dcparse dcfujiturn dcfujiturn16 dcfujigreen dccleancrw + $(INSTALL) dcraw $(DESTDIR)/usr/bin + $(INSTALL) dcraw.1 $(DESTDIR)/usr/share/man/man1 + $(INSTALL) dcparse $(DESTDIR)/usr/bin + $(INSTALL) dcfujiturn $(DESTDIR)/usr/bin + $(INSTALL) dcfujiturn16 $(DESTDIR)/usr/bin + $(INSTALL) dcfujigreen $(DESTDIR)/usr/bin + $(INSTALL) dccleancrw $(DESTDIR)/usr/bin --- dcraw-8.39.orig/dcfujiturn.1 +++ dcraw-8.39/dcfujiturn.1 @@ -0,0 +1,41 @@ +.\" +.\" Manpage for dcfujiturn,dcfujiturn16 +.\" Copyright 2006, Steve King +.\" This file may be distributed without restriction. +.\" +.TH dcfujiturn 1 "Jun 27, 2006" +.LO 1 +.SH NAME +dcfujiturn/dcfujiturn16 - Alternative rotation for dcraw processed images +.br +.SH SYNOPSIS +dcraw -c -j dscf0000.raf | +.B dcfujiturn +> dscf0000.ppm +.br +dcraw -c -j -4 dscf0000.raf | +.B dcfujiturn16 +> dscf0000.ppm +.br + +.SH DESCRIPTION +UNIX filter to correct the 45-degree rotation in images from Fuji digital +cameras. +.br +Some Fuji digital cameras have a unique CCD sensor placed at a 45 degree angle. +The raw output for this sensor is rotated relative to other camera brands. +.B dcfujiturn +and +.B dcfujiturn16 +provide an alternative to the automatic rotation present in dcraw producing a larger resolution image. + +.br +.B dcfujiturn16 +works on 16 bit linear ppm data if you are using +.B dcraw -4 +to generate your output + +.SH "SEE ALSO" +dcraw(1), dcfuji_green(1) +.SH AUTHOR +Written by Steve King for debian. --- dcraw-8.39.orig/dcfujiturn16.1 +++ dcraw-8.39/dcfujiturn16.1 @@ -0,0 +1 @@ +.so man1/dcfujiturn.1 --- dcraw-8.39.orig/dccleancrw.1 +++ dcraw-8.39/dccleancrw.1 @@ -0,0 +1,28 @@ +.\" +.\" Manpage for dccleancrw +.\" Copyright 2006, Steve King +.\" This file may be distributed without restriction. +.\" +.TH dccleancrw 1 "Jun 27, 2006" +.LO 1 +.SH NAME +dccleancrw - Canon (CRW) RAW photo file recovery utility +.br +.SH SYNOPSIS +.B dccleancrw +crw_0001.crw crw_0002.crw ... +.br + +.SH DESCRIPTION +Because they are parsed from the end, Canon CRW files +become unreadable if garbage data is appended to them, as +often happens when files are recovered from damaged media. +This program truncates CRW files to the correct size. +.br + +.SH "SEE ALSO" +dcraw(1) +.SH AUTHOR +Written by Dave Coffin. +.br +man page by Steve King for debian. --- dcraw-8.39.orig/dcfujigreen.1 +++ dcraw-8.39/dcfujigreen.1 @@ -0,0 +1,31 @@ +.\" +.\" Manpage for dcfujigreen +.\" Copyright 2006, Steve King +.\" This file may be distributed without restriction. +.\" +.TH dcfujigreen 1 "Jun 27, 2006" +.LO 1 +.SH NAME +dcfujigreen - Alternative processing for Fuji RAW images +.br +.SH SYNOPSIS +.B dcfujigreen +file1 file2 +.br + +.SH DESCRIPTION +Fuji RAW green channel output alternative to dcraw. +.br +Fuji digital cameras use a sum/difference encoding for the colour data. +This means that the green channel is roughly equivalent to a black and +white image. +.br +This utility can be used in place of +.B dcraw(1) +to retrieve a black and white image. It is much quicker than dcraw, but is +doing a lot less. + +.SH "SEE ALSO" +dcraw(1), dcfujiturn(1) +.SH AUTHOR +Written by Steve King for debian.