libpniio
standard.hpp
Go to the documentation of this file.
1 //
2 // (c) Copyright 2011 DESY, Eugen Wintersberger <eugen.wintersberger@desy.de>
3 //
4 // This file is part of libpniio.
5 //
6 // libpniio is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // libpniio is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with libpniio. If not, see <http://www.gnu.org/licenses/>.
18 // ===========================================================================
19 //
20 // Created on: Jun 17, 2011
21 // Author: Eugen Wintersberger <eugen.wintersberger@desy.de>
22 //
23 //
24 #pragma once
25 
26 #include <map>
27 #include <pni/core/types.hpp>
28 
29 namespace pni{
30 namespace io{
31 namespace tiff{
32 
33  //-------------------------------------------------------------------------
34  std::map<pni::core::uint16,pni::core::string> tiff_tag_name_map =
35  {
36  {254,"NewSubfileType"},
37  {255,"SubfileType"},
38  {256,"ImageWidth"},
39  {257,"ImageLength"},
40  {258,"BitsPerSample"},
41  {259,"Compression"},
42  {262,"PhotometricInterpretation"},
43  {263,"Threshholding"},
44  {264,"CellWidth"},
45  {265,"CellLength"},
46  {266,"FillOrder"},
47  {269,"DocumentName"},
48  {270,"ImageDescription"},
49  {271,"Make"},
50  {272,"Model"},
51  {273,"StripOffsets"},
52  {274,"Orientation"},
53  {277,"SamplesPerPixel"},
54  {278,"RowsPerStrip"},
55  {279,"StripByteCounts"},
56  {280,"MinSampleValue"},
57  {281,"MaxSampleValue"},
58  {282,"XResolution"},
59  {283,"YResolution"},
60  {284,"PlanarConfiguration"},
61  {285,"PageName"},
62  {286,"XPosition"},
63  {287,"YPosition"},
64  {288,"FreeOffsets"},
65  {289,"FreeByteCounts"},
66  {290,"GrayResponseUnit"},
67  {291,"GrayResponseCurve"},
68  {292,"T4Options"},
69  {293,"T6Options"},
70  {296,"ResolutionUnit"},
71  {297,"PageNumber"},
72  {301,"TransferFunction"},
73  {305,"Software"},
74  {306,"DateTime"},
75  {315,"Artist"},
76  {316,"HostComputer"},
77  {317,"Predictor"},
78  {318,"WhitePoint"},
79  {319,"PrimaryChromaticities"},
80  {320,"ColorMap"},
81  {321,"HalftoneHints"},
82  {322,"TileWidth"},
83  {323,"TileLength"},
84  {324,"TileOffsets"},
85  {325,"TileByteCounts"},
86  {332,"InkSet"},
87  {333,"InkNames"},
88  {334,"NumberOfInks"},
89  {336,"DotRange"},
90  {337,"TargetPrinter"},
91  {338,"ExtraSamples"},
92  {339,"SampleFormat"},
93  {340,"SMinSampleValue"},
94  {341,"SMaxSampleValue"},
95  {342,"TransferRange"},
96  {512,"JPEGProc"},
97  {513,"JPEGInterchangeFormat"},
98  {514,"JPEGInterchangeFormatLength"},
99  {515,"JPEGRestartLevel"},
100  {517,"JPEGLosslessPredictors"},
101  {518,"JPEGPointTransforms"},
102  {519,"JPEGQTables"},
103  {520,"JPEGDCTables"},
104  {521,"JPEGACTables"},
105  {529,"YCbCrCoefficients"},
106  {530,"YCbCrSubSampling"},
107  {531,"YCbCrPositioning"},
108  {532,"ReferenceBlackWhite"},
109  {33432,"Copyright"} };
110 
111  //-------------------------------------------------------------------------
112  std::map<pni::core::uint16,pni::core::string> tiff_compression_tag_map =
113  {
114  {1,"Uncompressed"}, {2,"CCITT 1D"},
115  {3,"Group 3 Fax"}, {4,"Group 4 Fax"},
116  {5,"LZW"}, {6,"JPEG"}, {32773,"PackBits"}
117  };
118 
119  //-------------------------------------------------------------------------
120  std::map<pni::core::uint16,pni::core::string> tiff_photo_tag_map=
121  {
122  {0,"WhiteIsZero"}, {1,"BlackIsZero"},
123  {2,"RGB"}, {3,"RGB Palette"},
124  {4,"Transparency mask"}, {5,"CMYK"},
125  {6,"YCbCr"}, {8,"CIELab"}
126  };
127 
128  //end of namespace
129 }
130 }
131 }
std::map< pni::core::uint16, pni::core::string > tiff_compression_tag_map
Definition: standard.hpp:112
Definition: cbf_reader.hpp:41
std::map< pni::core::uint16, pni::core::string > tiff_tag_name_map
Definition: standard.hpp:34
std::map< pni::core::uint16, pni::core::string > tiff_photo_tag_map
Definition: standard.hpp:120