5#include <QtCore/QLoggingCategory>
10Q_DECLARE_LOGGING_CATEGORY(GstQgcQVideoSinkLog)
17 _demotionRecorded =
false;
18 _tiledDropLogged =
false;
24 _consecutiveMapFailures = 0;
29 const quint64 failures = ++_consecutiveMapFailures;
33 if (!std::exchange(_tiledDropLogged,
true)) {
34 qCWarning(GstQgcQVideoSinkLog) <<
"tiled DMA_DRM frame not imported and has no CPU layout — dropped";
36 }
else if ((failures & 0x3F) == 1) {
37 qCWarning(GstQgcQVideoSinkLog) <<
"mapping failed, consecutive=" << failures;
40 qCWarning(GstQgcQVideoSinkLog) << failures <<
"consecutive map failures — erroring out";
@ Drop
Drop the frame and go on.
void stop()
The sink stopped: as startEpoch(), and a run of map failures ends.
Verdict onMapFailed(const MappedFrame &mapped, SinkCounters &counters)
static constexpr quint64 kMaxConsecutiveMapFailures
A run of map failures this long is a broken import, not a hiccup: the stream fails so it is set up an...
void onDelivered(const MappedFrame &mapped, SinkCounters &counters)
void startEpoch()
New caps: the path is resolved anew, and the once-per-epoch bookkeeping starts over.
qgcqvideosink's frame accounting: what its frames-input, frames-dropped and frames-delivered properti...
void noteGpuFallback(bool firstOfEpoch)
A GPU path was tried for a frame the CPU delivered; firstOfEpoch: the caps epoch's first,...
void noteTiledDrop()
A frame in a tiled DMA_DRM layout no GPU path imported and the CPU can't read.
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
bool demoted
A GPU path was requested for this stream but this frame fell back to CPU.
bool noCpuLayout
Dropped instead of read as linear rows, which would show it scrambled.