6constexpr Size fromHeightAndAspectRatio(std::uint32_t height, std::uint32_t numerator = 4, std::uint32_t denominator = 3)
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)) {