|
Tag Parser
8.3.0
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. More... | |
| AspectRatio (byte aspectRatioType) | |
| Constructs a PAR form the specified AVC aspectRatioType. More... | |
| constexpr | AspectRatio (uint16 numerator, uint16 denominator) |
| Constructs a aspect ratio with the specified numerator and denominator. More... | |
| constexpr bool | isValid () const |
| Returns an indication whether the aspect ratio is present and valid. More... | |
| constexpr bool | isExtended () const |
| Returns whether numerator and denominator must be read from extended SAR header. More... | |
| std::string | toString () const |
| Returns the string representation "numerator : denominator". More... | |
Public Attributes | |
| byte | type |
| uint16 | numerator |
| uint16 | denominator |
The AspectRatio struct defines an aspect ratio.
Definition at line 13 of file aspectratio.h.
| constexpr TagParser::AspectRatio::AspectRatio | ( | ) |
Constructs an invalid aspect ratio.
Definition at line 29 of file aspectratio.h.
| TagParser::AspectRatio::AspectRatio | ( | byte | aspectRatioType | ) |
Constructs a PAR form the specified AVC aspectRatioType.
Definition at line 15 of file aspectratio.cpp.
| constexpr TagParser::AspectRatio::AspectRatio | ( | uint16 | numerator, |
| uint16 | denominator | ||
| ) |
Constructs a aspect ratio with the specified numerator and denominator.
Definition at line 40 of file aspectratio.h.
| constexpr bool TagParser::AspectRatio::isExtended | ( | ) | const |
Returns whether numerator and denominator must be read from extended SAR header.
Definition at line 58 of file aspectratio.h.
| constexpr bool TagParser::AspectRatio::isValid | ( | ) | const |
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.
| uint16 TagParser::AspectRatio::denominator |
Definition at line 23 of file aspectratio.h.
| uint16 TagParser::AspectRatio::numerator |
Definition at line 22 of file aspectratio.h.
| byte TagParser::AspectRatio::type |
Definition at line 21 of file aspectratio.h.
1.8.15