6
#include "TiffParserException.h"
9
RawSpeed - RAW file decoder.
11
Copyright (C) 2009 Klaus Post
13
This library is free software; you can redistribute it and/or
14
modify it under the terms of the GNU Lesser General Public
15
License as published by the Free Software Foundation; either
16
version 2 of the License, or (at your option) any later version.
18
This library is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
Lesser General Public License for more details.
23
You should have received a copy of the GNU Lesser General Public
24
License along with this library; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27
http://www.klauspost.com
37
TiffIFD(FileMap* f, uint32 offset);
38
virtual ~TiffIFD(void);
39
vector<TiffIFD*> mSubIFD;
40
map<TiffTag, TiffEntry*> mEntry;
41
int getNextIFD() {return nextIFD;}
42
vector<TiffIFD*> getIFDsWithTag(TiffTag tag);
43
TiffEntry* getEntry(TiffTag tag);
44
bool hasEntry(TiffTag tag);
45
bool hasEntryRecursive(TiffTag tag);
46
TiffEntry* getEntryRecursive(TiffTag tag);
47
TiffIFD* parseDngPrivateData(TiffEntry *t);
48
TiffIFD* parseMakerNote(FileMap *f, uint32 offset, Endianness parent_end);
54
inline bool isTiffSameAsHost(const ushort16* tifftag) {
55
Endianness host = getHostEndianness();
56
if (tifftag[0] == 0x4949)
57
return little == host;
58
if (tifftag[0] == 0x4d4d)
60
ThrowTPE("Unknown Tiff Byteorder :%x", tifftag[0]);
64
inline Endianness getTiffEndianness(const ushort16* tifftag) {
65
if (tifftag[0] == 0x4949)
67
if (tifftag[0] == 0x4d4d)
72
} // namespace RawSpeed