1#ifndef TAG_PARSER_ASPECTRATIO_H
2#define TAG_PARSER_ASPECTRATIO_H
6#include <c++utilities/conversion/stringbuilder.h>
14 constexpr explicit AspectRatio();
15 explicit AspectRatio(std::uint8_t aspectRatioType);
16 constexpr explicit AspectRatio(std::uint16_t numerator, std::uint16_t denominator);
17 constexpr bool isValid()
const;
18 constexpr bool isExtended()
const;
19 std::string toString()
const;
42 , numerator(numerator)
43 , denominator(denominator)
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.
std::string toString() const
Returns the string representation "numerator : denominator".
std::uint16_t denominator
constexpr bool isExtended() const
Returns whether numerator and denominator must be read from extended SAR header.
constexpr bool isValid() const
Returns an indication whether the aspect ratio is present and valid.
constexpr AspectRatio()
Constructs an invalid aspect ratio.