1 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 2 /* EXIFPROBE - TIFF/JPEG/EXIF image file probe */ 3 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 4 /* Copyright (C) 2002 by Duane H. Hesser. All rights reserved. */ 5 /* */ 6 /* See the file LICENSE.EXIFPROBE for terms of use. */ 7 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 8 9 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 10 /* @(#) $Id: misc.h,v 1.4 2005/06/09 02:21:30 alex Exp $" */ 11 /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ 12 13 /* Miscellaneous definitions */ 14 15 #ifndef MISC_INCLUDED 16 #define MISC_INCLUDED 17 18 /* These magic numbers are defined by well-known specification */ 19 #define TIFF_MAGIC 0x2a 20 #define TIFF_INTEL 0x4949 21 #define TIFF_MOTOROLA 0x4d4d 22 23 #define ORF1_MAGIC 0x4f52 /* "RO" 16 bits/sample PMI=1 res=314 */ 24 #define ORF2_MAGIC 0x5352 /* "RS" 12 bits/sample PMI=2 res=72 */ 25 26 /* Some of these magic numbers are private to this program, used to */ 27 /* id file formats which have no unique magic number. */ 28 #define PROBE_NOMAGIC 0x0000 29 #define PROBE_TIFFMAGIC TIFF_MAGIC 30 #define PROBE_ORF1MAGIC ORF1_MAGIC 31 #define PROBE_ORF2MAGIC ORF2_MAGIC 32 #define PROBE_JPEGMAGIC 0xffd8 /* JPEG_SOI */ 33 #define PROBE_CIFFMAGIC 0x1a 34 #define PROBE_JP2MAGIC 0x0d0a870a 35 #define PROBE_MRWMAGIC 0x004d524d /* "MRM" (ANY byte order) */ 36 #define PROBE_RAFMAGIC 0x4655 /* "FU"JIFILM-CCDRAW (MOT) */ 37 #define PROBE_X3FMAGIC 0x62564f46 /* "FOVb" (INTEL) */ 38 39 40 /* TIFF entry type id */ 41 #define BYTE 1 42 #define ASCII 2 43 #define SHORT 3 44 #define LONG 4 45 #define RATIONAL 5 46 #define SBYTE 6 47 #define SSHORT 8 48 #define UNDEFINED 7 49 #define SLONG 9 50 #define FLOAT 11 51 #define SRATIONAL 10 52 #define DOUBLE 12 53 54 #endif /* MISC_INCLUDED */ 55