Tag Parser 12.3.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The AspectRatio struct defines an aspect ratio. More...
#include <aspectratio.h>
Public Member Functions | |
constexpr | AspectRatio () |
Constructs an invalid aspect ratio. | |
AspectRatio (std::uint8_t aspectRatioType) | |
Constructs a PAR form the specified AVC aspectRatioType. | |
constexpr | AspectRatio (std::uint16_t numerator, std::uint16_t denominator) |
Constructs a aspect ratio with the specified numerator and denominator. | |
constexpr bool | isValid () const |
Returns an indication whether the aspect ratio is present and valid. | |
constexpr bool | isExtended () const |
Returns whether numerator and denominator must be read from extended SAR header. | |
std::string | toString () const |
Returns the string representation "numerator : denominator". | |
Public Attributes | |
std::uint8_t | type |
std::uint16_t | numerator |
std::uint16_t | denominator |
The AspectRatio struct defines an aspect ratio.
|
explicitconstexpr |
Constructs an invalid aspect ratio.
Definition at line 29 of file aspectratio.h.
|
explicit |
Constructs a PAR form the specified AVC aspectRatioType.
Definition at line 15 of file aspectratio.cpp.
|
explicitconstexpr |
Constructs a aspect ratio with the specified numerator and denominator.
Definition at line 40 of file aspectratio.h.
|
constexpr |
Returns whether numerator and denominator must be read from extended SAR header.
Definition at line 58 of file aspectratio.h.
|
constexpr |
Returns an indication whether the aspect ratio is present and valid.
Definition at line 50 of file aspectratio.h.
|
inline |
Returns the string representation "numerator : denominator".
Definition at line 66 of file aspectratio.h.
std::uint16_t TagParser::AspectRatio::denominator |
Definition at line 23 of file aspectratio.h.
std::uint16_t TagParser::AspectRatio::numerator |
Definition at line 22 of file aspectratio.h.
std::uint8_t TagParser::AspectRatio::type |
Definition at line 21 of file aspectratio.h.