6 constexpr Size fromHeightAndAspectRatio(std::uint32_t height, std::uint32_t numerator = 4, std::uint32_t denominator = 3)
8 return Size(height * numerator / denominator, height);
19 if (*
this >= fromHeightAndAspectRatio(4320)) {
21 }
else if (*
this >= fromHeightAndAspectRatio(2160)) {
23 }
else if (*
this >= fromHeightAndAspectRatio(1080)) {
25 }
else if (*
this >= fromHeightAndAspectRatio(720)) {
27 }
else if (*
this >= fromHeightAndAspectRatio(576)) {
29 }
else if (*
this >= fromHeightAndAspectRatio(480)) {
31 }
else if (*
this >= fromHeightAndAspectRatio(320)) {
33 }
else if (*
this >= fromHeightAndAspectRatio(240)) {
std::string_view abbreviation() const
Returns an abbreviation for the current instance, eg.
Contains all classes and functions of the TagInfo library.