exif_parser v0.2.4 ExifParser.Tag.Value View Source
Link to this section Summary
Types
The data types that are represented in TIFF tags
Functions
The method provides the number of bytes that correspond to the data type. It will give the number of bytes for number of components in the tag
The method is used to decode the binary value in the tag buffer based on the data_type and endianess of the file
The method provides the lookup for the 12 data_types. The data_type can inferred from the type_id in the tag buffer
Link to this section Types
data_types() :: :tiff_byte | :tiff_ascii | :tiff_short | :tiff_long | :tiff_rational | :tiff_sbyte | :tiff_undefined | :tiff_sshort | :tiff_slong | :tiff_srational | :tiff_sfloat | :tiff_dfloat
The data types that are represented in TIFF tags.
Link to this section Functions
The method provides the number of bytes that correspond to the data type. It will give the number of bytes for number of components in the tag.
decode_tag(tag :: ExifParser.Tag, endian :: :little | :big) :: ExifParser.Tag
The method is used to decode the binary value in the tag buffer based on the data_type and endianess of the file.
The total data size is computed based on the type size and the number of components.
- If the data_size is less or equal to 4 bytes, the value binary represents the actual value.
- If the data_size is greater than 4, the binary value represents the offset in the file buffer that points to the actual data.
The method provides the lookup for the 12 data_types. The data_type can inferred from the type_id in the tag buffer.