8#include <QtCore/qdir.h>
14 int integral = int(floor(
value));
19 const int dMax = 1000;
20 int n1 = 0,
d1 = 1, n2 = 1,
d2 = 1;
22 while (
d1 <= dMax &&
d2 <= dMax) {
27 }
else if (
value > mid) {
37 return {n1 + n2 + integral * (
d1 +
d2),
d1 +
d2};
39 return { n2 + integral *
d2,
d2 };
41 return { n1 + integral *
d1,
d1 };
46 if (par.numerator == par.denominator || par.numerator < 1 || par.denominator < 1)
49 if (par.numerator > par.denominator)
50 return { resolution.
width() * par.numerator / par.denominator, resolution.
height() };
52 return { resolution.
width(), resolution.
height() * par.denominator / par.numerator };
58 return rotation % 180 ?
size.transposed() :
size;
78 return autoHdrEnabled;
83 constexpr auto sdrMaxLuminance = 100.0f;
84 const auto formatMaxLuminance =
format.maxLuminance();
static QString currentPath()
Returns the absolute path of the application's current directory.
Format
Describes the swapchain format.
virtual bool isFormatSupported(Format f)=0
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
static QUrl fromUserInput(const QString &userInput, const QString &workingDirectory=QString(), UserInputResolutionOptions options=DefaultResolution)
Returns a valid URL from a user supplied userInput string if one can be deduced.
QString scheme() const
Returns the scheme of the URL.
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
The QVideoFrame class represents a frame of video data.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
constexpr T qAbs(const T &t)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept
QUrl url("example.com")
[constructor-url-reference]