changeset 277:9de0f88b2b91

Add support for some Samsung raw files (.pef). Samsung raw not strongly differ from Pentax raw. The only difference in header (manufacturer, camera name and etc). Tested on Samsung GX-1S and Pentax *ist DS. Patch by Max Lushnikov.
author zas_
date Tue, 08 Apr 2008 22:05:04 +0000
parents 4f526d436873
children 04abf5b160eb
files src/filelist.c src/format_nikon.h src/format_raw.c
diffstat 3 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelist.c	Tue Apr 08 21:55:58 2008 +0000
+++ b/src/filelist.c	Tue Apr 08 22:05:04 2008 +0000
@@ -235,7 +235,7 @@
 	filter_add_if_missing("mrw", "Minolta raw format", ".mrw", FORMAT_CLASS_RAWIMAGE, TRUE);
 	filter_add_if_missing("nef", "Nikon raw format", ".nef", FORMAT_CLASS_RAWIMAGE, TRUE);
 	filter_add_if_missing("orf", "Olympus raw format", ".orf", FORMAT_CLASS_RAWIMAGE, TRUE);
-	filter_add_if_missing("pef", "Pentax raw format", ".pef;.ptx", FORMAT_CLASS_RAWIMAGE, TRUE);
+	filter_add_if_missing("pef", "Pentax or Samsung raw format", ".pef;.ptx", FORMAT_CLASS_RAWIMAGE, TRUE);
 	filter_add_if_missing("dng", "Adobe Digital Negative raw format", ".dng", FORMAT_CLASS_RAWIMAGE, TRUE);
 	filter_add_if_missing("x3f", "Sigma raw format", ".x3f", FORMAT_CLASS_RAWIMAGE, TRUE);
 	filter_add_if_missing("raw", "Panasonic raw format", ".raw", FORMAT_CLASS_RAWIMAGE, TRUE);
--- a/src/format_nikon.h	Tue Apr 08 21:55:58 2008 +0000
+++ b/src/format_nikon.h	Tue Apr 08 22:05:04 2008 +0000
@@ -29,6 +29,10 @@
 			    FORMAT_RAW_EXIF_TIFF, NULL, \
 			    "Pentax raw", format_nikon_raw }
 
+#define FORMAT_RAW_SAMSUNG { "pef", \
+			    FORMAT_RAW_MATCH_TIFF_MAKE, 0, "SAMSUNG TECHWIN", 15, \
+			    FORMAT_RAW_EXIF_TIFF, NULL, \
+			    "Samsung raw", format_nikon_raw }
 
 gint format_nikon_makernote(ExifData *exif, unsigned char *tiff, guint offset,
 			    guint size, ExifByteOrder bo);
--- a/src/format_raw.c	Tue Apr 08 21:55:58 2008 +0000
+++ b/src/format_raw.c	Tue Apr 08 22:05:04 2008 +0000
@@ -62,6 +62,7 @@
 	FORMAT_RAW_NIKON,
 	FORMAT_RAW_OLYMPUS,
 	FORMAT_RAW_PENTAX,
+	FORMAT_RAW_SAMSUNG,
 	{ NULL, 0, 0, NULL, 0, 0, NULL, NULL, NULL }
 };