diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2006-12-28 13:59:00 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2006-12-28 13:59:00 +0000 |
commit | 0db9679a0bb29b4224baa125036416fd4dc2952b (patch) | |
tree | 4c83fceba725bd568e90cc9c0cef5ea6747feb03 /graphics/jhead | |
parent | a8e0dc4291557657f2ae086dbc06a0f1c77d95ac (diff) | |
download | ports-0db9679a0bb29b4224baa125036416fd4dc2952b.tar.gz ports-0db9679a0bb29b4224baa125036416fd4dc2952b.zip |
Notes
Diffstat (limited to 'graphics/jhead')
-rw-r--r-- | graphics/jhead/Makefile | 1 | ||||
-rw-r--r-- | graphics/jhead/files/patch-makernote.c | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/graphics/jhead/Makefile b/graphics/jhead/Makefile index d03aee657eb2..b67c3c0a2734 100644 --- a/graphics/jhead/Makefile +++ b/graphics/jhead/Makefile @@ -7,6 +7,7 @@ PORTNAME= jhead PORTVERSION= 2.6 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://www.sentex.net/~mwandel/jhead/ diff --git a/graphics/jhead/files/patch-makernote.c b/graphics/jhead/files/patch-makernote.c new file mode 100644 index 000000000000..79f778278428 --- /dev/null +++ b/graphics/jhead/files/patch-makernote.c @@ -0,0 +1,39 @@ +--- jhead-2.60.orig/makernote.c 2006-05-18 00:48:56.000000000 +0400 ++++ makernote.c 2006-12-18 09:57:32.000000000 +0300 +@@ -147,6 +147,27 @@ + } + } + } ++// ++//-------------------------------------------------------------------------- ++// Process exif format directory, as used by Nikon maker note ++//-------------------------------------------------------------------------- ++void ProcessNikonMakerNoteDir(unsigned char *MakerNote) ++{ ++ unsigned short iso; ++ ++ if (DumpExifMap){ ++ printf("(Nikon makernote)\n"); ++ } ++ ++ iso = Get16u(MakerNote + 20 + 12 + 10); // 20 bytes MakerNote ID ("Nikon" + padding), then TIFF header ++ ++ if (ShowTags){ ++ printf("ISO derived from Nikon MakerNote: %d\n",iso); ++ } ++ ++ if (!ImageInfo.ISOequivalent) ++ ImageInfo.ISOequivalent = iso; ++} + + //-------------------------------------------------------------------------- + // Show generic maker note - just hex bytes. +@@ -174,6 +195,8 @@ + { + if (strstr(ImageInfo.CameraMake, "Canon")){ + ProcessCanonMakerNoteDir(ValuePtr, OffsetBase, ExifLength); ++ }else if (strncmp((char *)ValuePtr, "Nikon", 5) == 0){ ++ ProcessNikonMakerNoteDir(ValuePtr); + }else{ + if (ShowTags){ + ShowMakerNoteGeneric(ValuePtr, ByteCount); |