|
CC Localization
|
TIFF file processor. More...
#include <tiff.hh>
Classes | |
| struct | DEntry |
| Directory Entry. More... | |
Public Types | |
| enum | Tag { Tag_ImageWidth = 0x100, Tag_ImageLength = 0x101, Tag_BitsPerSample = 0x102, Tag_Compression = 0x103, Tag_PhotometricInterpretation = 0x106, Tag_FillOrder = 0x10a, Tag_ImageDescription = 0x10e, Tag_StripOffsets = 0x111, Tag_Orientation = 0x112, Tag_SamplesPerPixel = 0x115, Tag_RowsPerStrip = 0x116, Tag_StripByteCounts = 0x117, Tag_XResolution = 0x11a, Tag_YResolution = 0x11b, Tag_PlanarConfiguration = 0x11c, Tag_ResolutionUnit = 0x128, Tag_Software = 0x131, Tag_SampleFormat = 0x153, Tag_ImageID = 0x800d } |
| Directory entry ID tags. | |
| enum | Compression { Cmp_None = 1, Cmp_CCITT = 2, Cmp_PackBits = 32773 } |
| Compression methods. | |
| enum | Photometric { Ptm_WhiteIsZero = 0, Ptm_BlackIsZero = 1, Ptm_RGB = 2, Ptm_Palette = 3, Ptm_TransparencyMask = 4 } |
| Photometric formats. | |
| enum | Unit { Unt_None = 1, Unt_Inch = 2, Unt_Centimeter = 3 } |
| Units for image. | |
| enum | SampleFormat { Fmt_Unsigned = 1, Fmt_TwoComplement = 2, Fmt_IEEEFloat = 3, Fmt_Undefined = 4 } |
| Sample formats. | |
Public Member Functions | |
| Tiff (std::shared_ptr< std::ifstream > s) | |
| Construct TIFF processor from an input stream. | |
| void | start () |
| uint32_t | parse_ifd (uint32_t i=0) |
| Parse image file directory (IFD) More... | |
| std::vector< char > | read_image () |
Public Attributes | |
| std::map< Compression, std::string > const | compress_name |
| String names for compression methods. More... | |
| std::map< Photometric, std::string > const | photom_name |
| String names for photometric formats. More... | |
| std::map< Unit, std::string > const | unit_name |
| String names for units. More... | |
| std::map< SampleFormat, std::string > const | format_name |
| String names for sample formats. More... | |
| uint32_t | image_width |
| width of image | |
| uint32_t | image_length |
| length of image | |
| std::vector< uint16_t > | bits_per_sample |
| bits per sample | |
| Compression | compression |
| compression method | |
| Photometric | photometric |
| photometric format | |
| uint16_t | fill_order |
| fill order | |
| std::string | image_description |
| image description | |
| std::vector< uint32_t > | strip_offsets |
| strip offsets | |
| uint16_t | orientation |
| orientation of image | |
| uint16_t | samples_per_pixel |
| samples per pixel | |
| uint32_t | rows_per_strip |
| rows per strip | |
| std::vector< uint32_t > | strip_byte_counts |
| strip byte counots | |
| std::tuple< uint32_t, uint32_t > | xresolution |
| x resolution | |
| std::tuple< uint32_t, uint32_t > | yresolution |
| y resolution | |
| uint16_t | planar_configuration |
| planar configuration | |
| Unit | resolution_unit |
| unit for image resolution | |
| std::string | software |
| software used | |
| std::vector< SampleFormat > | sample_formats |
| sample formats | |
| std::string | image_id |
| image ID | |
| uint32_t Tiff::parse_ifd | ( | uint32_t | i = 0 | ) |
| std::map<Compression,std::string> const Tiff::compress_name |
| std::map<SampleFormat,std::string> const Tiff::format_name |
| std::map<Photometric,std::string> const Tiff::photom_name |
| std::map<Unit,std::string> const Tiff::unit_name |
1.8.13