#include <QtCore/QLoggingCategory>
#include <QtCore/qglobal.h>
#include <QtMultimedia/QVideoFrame>
#include <QtMultimedia/QVideoFrameFormat>
#include <algorithm>
#include <atomic>
#include <gst/gst.h>
#include <gst/video/video-info.h>
#include <private/qhwvideobuffer_p.h>
Go to the source code of this file.
|
| #define | QGC_HW_WARN_ONCE(LOGCAT, FLAG, ...) |
| | Logs once via qCWarning(LOGCAT) the first time FLAG flips true; subsequent trips are silent.
|
| |
|
| constexpr int | GstHw::kMaxPlanes = 4 |
| | Matches GST_VIDEO_MAX_PLANES (gst-video pins it at 4); single source of truth for every per-platform buffer.
|
| |
◆ QGC_HW_WARN_ONCE
| #define QGC_HW_WARN_ONCE |
( |
|
LOGCAT, |
|
|
|
FLAG, |
|
|
|
... |
|
) |
| |
Value: do { \
if (!(FLAG).exchange(true, std::memory_order_relaxed)) { \
qCWarning(LOGCAT) << __VA_ARGS__; \
} \
} while (0)
Logs once via qCWarning(LOGCAT) the first time FLAG flips true; subsequent trips are silent.
Definition at line 32 of file GstHwVideoBuffer.h.