9#pragma qt_class(QtMinMax)
10#pragma qt_sync_stop_processing
13#include <QtCore/qassert.h>
14#include <QtCore/qtconfigmacros.h>
15#include <QtCore/qttypetraits.h>
20constexpr inline const T &qMin(
const T &a,
const T &b) {
return (a < b) ? a : b; }
22constexpr inline const T &
qMax(
const T &a,
const T &b) {
return (a < b) ? b : a; }
24constexpr inline const T &
qBound(
const T &min,
const T &val,
const T &max)
26 Q_ASSERT(!(max < min));
27 return qMax(min, qMin(max, val));
29template <
typename T,
typename U>
32 using P = QTypeTraits::Promoted<T, U>;
35 return (_a < _b) ? _a : _b;
37template <
typename T,
typename U>
40 using P = QTypeTraits::Promoted<T, U>;
43 return (_a < _b) ? _b : _a;
45template <
typename T,
typename U>
48 Q_ASSERT(!(max < min));
49 return qMax(min, qMin(max, val));
51template <
typename T,
typename U>
54 using P = QTypeTraits::Promoted<T, U>;
55 Q_ASSERT(!(P(max) < P(min)));
56 return qMax(min, qMin(max, val));
58template <
typename T,
typename U>
61 using P = QTypeTraits::Promoted<T, U>;
62 Q_ASSERT(!(P(max) < P(min)));
63 return qMax(min, qMin(max, val));
static std::unique_ptr< Grabber > create(QX11SurfaceCapture &capture, QScreen *screen)
const QVideoFrameFormat & format() const
QVideoFrame grabFrame() override
static std::unique_ptr< Grabber > create(QX11SurfaceCapture &capture, WId wid)
Combined button and popup list for selecting options.
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
constexpr QTypeTraits::Promoted< T, U > qMin(const T &a, const U &b)
constexpr QTypeTraits::Promoted< T, U > qBound(const T &min, const T &val, const U &max)
constexpr QTypeTraits::Promoted< T, U > qBound(const T &min, const U &val, const T &max)
constexpr QTypeTraits::Promoted< T, U > qBound(const U &min, const T &val, const T &max)
constexpr const T & qBound(const T &min, const T &val, const T &max)
constexpr const T & qMax(const T &a, const T &b)
constexpr QTypeTraits::Promoted< T, U > qMax(const T &a, const U &b)