3#include <QtCore/QMutexLocker>
12 const QMutexLocker locker(&_deliveryMutex);
13 (void) _pathFrames[
static_cast<std::size_t
>(path)].fetch_add(1, std::memory_order_relaxed);
15 (void) _superseded.fetch_add(1, std::memory_order_relaxed);
18 return _delivered.fetch_add(1, std::memory_order_relaxed) + 1;
23 (void) _gpuFallbacks.fetch_add(1, std::memory_order_relaxed);
25 (void) _streamDemotions.fetch_add(1, std::memory_order_relaxed);
31 GstStructure*
const stats = gst_structure_new_empty(
"qgc-video-sink-stats");
34 G_TYPE_UINT64,
static_cast<guint64
>(_streamDemotions.load(std::memory_order_relaxed)),
nullptr);
36 static_cast<guint64
>(_tiledDrops.load(std::memory_order_relaxed)),
nullptr);
38 const QMutexLocker locker(&_deliveryMutex);
41 static_cast<guint64
>(_pathFrames[i].load(std::memory_order_relaxed)),
nullptr);
44 static_cast<guint64
>(_superseded.load(std::memory_order_relaxed)),
nullptr);
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
quint64 noteDelivered(HwVideoBufferPath path, bool superseded)
void noteGpuFallback(bool firstOfEpoch)
A GPU path was tried for a frame the CPU delivered; firstOfEpoch: the caps epoch's first,...
GstStructure * frameStats() const
The "frame-stats" property value (transfer-full).
constexpr std::size_t kPathCount
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
const char * sinkFramesField(HwVideoBufferPath path)
constexpr const char * kSupersededFramesField
constexpr const char * kGpuFallbacksField
guint64 "frame-stats" field holding the frames a GPU path was tried for but the CPU delivered.
constexpr const char * kStreamDemotionsField
guint64 "frame-stats" field holding the caps epochs that started on a GPU path and fell back to the C...
constexpr const char * kTiledDropsField