libopenraw
ifd.h
1 /*
2  * libopenraw - ifd.h
3  *
4  * Copyright (C) 2006-2007 Hubert Figuiere
5  *
6  * Defintions taken from libexif:
7  * Copyright (C) 2001 Lutz Müller <lutz@users.sourceforge.net>
8  *
9  * This library is free software: you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation, either version 3 of
12  * the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library. If not, see
21  * <http://www.gnu.org/licenses/>.
22  */
23 
24 
29 #ifndef __OPENRAW_IFD_H__
30 #define __OPENRAW_IFD_H__
31 
32 namespace OpenRaw {
33  namespace Internals {
34  namespace IFD {
35 
36 #define _INCLUDE_EXIF
37 #include "libopenraw/exif.h"
38 #undef _INCLUDE_EXIF
39 
43  typedef enum {
44  EXIF_FORMAT_BYTE = 1,
45  EXIF_FORMAT_ASCII = 2,
46  EXIF_FORMAT_SHORT = 3,
47  EXIF_FORMAT_LONG = 4,
48  EXIF_FORMAT_RATIONAL = 5,
49  EXIF_FORMAT_SBYTE = 6,
50  EXIF_FORMAT_UNDEFINED = 7,
51  EXIF_FORMAT_SSHORT = 8,
52  EXIF_FORMAT_SLONG = 9,
53  EXIF_FORMAT_SRATIONAL = 10,
54  EXIF_FORMAT_FLOAT = 11,
55  EXIF_FORMAT_DOUBLE = 12
56  } ExifTagType;
57 
58 
59  typedef enum {
60  CFA_RED = 0,
61  CFA_GREEN = 1,
62  CFA_BLUE = 2,
63  CFA_CYAN = 3,
64  CFA_MAGENTA = 4,
65  CFA_YELLOW = 5,
66  CFA_WHITE = 6
67  } CfaComponent;
68 
69  typedef enum {
70  COMPRESS_NONE = 1,
71  COMPRESS_JPEG = 6,
72  COMPRESS_NIKON_PACK = 32769,
73  COMPRESS_NIKON_QUANTIZED = 34713
74  } TiffCompress;
75  }
76  }
77 }
78 
79 #endif