Mercurial > octave-libtiff
comparison scripts/io/Tiff.m @ 31185:a1145ac2ce9b
Tiff: populated TagID from the C++ map to avoid having two copies
* __tiff__.cc (F__tiff_make_tagid__): implemented internal function as
initializer for TagID.
* Tiff.m: changed the initialization for TagID to use the internal function.
author | magedrifaat <magedrifaat@gmail.com> |
---|---|
date | Thu, 18 Aug 2022 17:23:43 +0200 |
parents | f294b800f002 |
children | 90eccc78d958 |
comparison
equal
deleted
inserted
replaced
31184:86f91ea7a642 | 31185:a1145ac2ce9b |
---|---|
1 ## PKG_ADD: __tiff_set_errors_enabled__ (false); | 1 ## PKG_ADD: __tiff_set_errors_enabled__ (false); |
2 | 2 |
3 classdef Tiff | 3 classdef Tiff |
4 properties (Constant = true) | 4 properties (Constant = true) |
5 TagID = struct ( | 5 TagID = __tiff_make_tagid__ (); |
6 "SubFileType", 254, | |
7 "ImageWidth", 256, | |
8 "ImageLength", 257, | |
9 "BitsPerSample", 258, | |
10 "Compression", 259, | |
11 "Photometric", 262, | |
12 "Thresholding", 263, | |
13 "FillOrder", 266, | |
14 "DocumentName", 269, | |
15 "ImageDescription", 270, | |
16 "Make", 271, | |
17 "Model", 272, | |
18 "StripOffsets", 273, | |
19 "Orientation", 274, | |
20 "SamplesPerPixel", 277, | |
21 "RowsPerStrip", 278, | |
22 "StripByteCounts", 279, | |
23 "MinSampleValue", 280, | |
24 "MaxSampleValue", 281, | |
25 "XResolution", 282, | |
26 "YResolution", 283, | |
27 "PlanarConfiguration", 284, | |
28 "PageName", 285, | |
29 "XPosition", 286, | |
30 "YPosition", 287, | |
31 "GrayResponseUnit", 290, | |
32 'GrayResponseCurve', 291, | |
33 "Group3Options", 292, | |
34 "Group4Options", 293, | |
35 "ResolutionUnit", 296, | |
36 "PageNumber", 297, | |
37 "TransferFunction", 301, | |
38 "Software", 305, | |
39 "DateTime", 306, | |
40 "Artist", 315, | |
41 "HostComputer", 316, | |
42 "WhitePoint", 318, | |
43 "PrimaryChromaticities", 319, | |
44 "ColorMap", 320, | |
45 "HalfToneHints", 321, | |
46 "TileWidth", 322, | |
47 "TileLength", 323, | |
48 "TileOffsets", 324, | |
49 "TileByteCounts", 325, | |
50 "SubIFD", 330, | |
51 "InkSet", 332, | |
52 "InkNames", 333, | |
53 "NumberOfInks", 334, | |
54 "DotRange", 336, | |
55 "TargetPrinter", 337, | |
56 "ExtraSamples", 338, | |
57 "SampleFormat", 339, | |
58 "SMinSampleValue", 340, | |
59 "SMaxSampleValue", 341, | |
60 "YCbCrCoefficients", 529, | |
61 "YCbCrSubSampling", 530, | |
62 "YCbCrPositioning", 531, | |
63 "ReferenceBlackWhite", 532, | |
64 "XMP", 700, | |
65 "ImageDepth", 32997, | |
66 "Copyright", 33432, | |
67 "RichTIFFIPTC", 33723, | |
68 "Photoshop", 34377, | |
69 "ICCProfile", 34675, | |
70 "SToNits", 37439, | |
71 "JPEGQuality", 65537, | |
72 "JPEGColorMode", 65538, | |
73 "ZipQuality", 65557, | |
74 "SGILogDataFmt", 65560 | |
75 ); | |
76 | 6 |
77 Compression = struct ( | 7 Compression = struct ( |
78 "None", 1, | 8 "None", 1, |
79 "CCITTRLE", 2, | 9 "CCITTRLE", 2, |
80 "CCITTFax3", 3, | 10 "CCITTFax3", 3, |