blob: 9b514861a9122562e7afa4e37c80b5f1fc035aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Information about TIFF files
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//---------------------------------------------------------------------------
#ifndef MediaInfo_File_TiffH
#define MediaInfo_File_TiffH
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include "MediaInfo/File__Analyze.h"
//---------------------------------------------------------------------------
namespace MediaInfoLib
{
//***************************************************************************
// Class File_Tiff
//***************************************************************************
class File_Tiff : public File__Analyze
{
public:
//Constructor/Destructor
File_Tiff();
private :
//Buffer - File header
bool FileHeader_Begin();
void FileHeader_Parse();
//Buffer - Per element
void Header_Parse();
void Data_Parse();
void Data_Parse_Fill();
//Elements
void Read_Directories();
void Read_Directory();
//Temp
struct ifditem
{
int16u Tag;
int16u Type;
int32u Count;
};
typedef std::map<int32u, ifditem> ifditems; //Key is byte offset
ifditems IfdItems;
typedef std::map<int16u, ZtringList> infos; //Key is Tag value
infos Infos;
bool LittleEndian;
//Helpers
void Get_X2 (int16u &Info, const char* Name);
void Get_X4 (int32u &Info, const char* Name);
void GetValueOffsetu(ifditem &IfdItem);
};
} //NameSpace
#endif
|