QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstQgc::SinkCounters Class Reference

qgcqvideosink's frame accounting: what its frames-input, frames-dropped and frames-delivered properties report, and the "frame-stats" structure GstQgcSinkStats.h reads. Thread-safe. More...

#include <GstQgcSinkCounters.h>

Public Member Functions

void noteInput ()
void noteDropped ()
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, a stream demotion.
void noteTiledDrop ()
 A frame in a tiled DMA_DRM layout no GPU path imported and the CPU can't read.
quint64 input () const
quint64 dropped () const
quint64 delivered () const
quint64 pathFrames (HwVideoBufferPath path) const
GstStructure * frameStats () const
 The "frame-stats" property value (transfer-full).

Detailed Description

qgcqvideosink's frame accounting: what its frames-input, frames-dropped and frames-delivered properties report, and the "frame-stats" structure GstQgcSinkStats.h reads. Thread-safe.

Definition at line 15 of file GstQgcSinkCounters.h.

Member Function Documentation

◆ delivered()

quint64 GstQgc::SinkCounters::delivered ( ) const
inline

Definition at line 35 of file GstQgcSinkCounters.h.

◆ dropped()

quint64 GstQgc::SinkCounters::dropped ( ) const
inline

Definition at line 33 of file GstQgcSinkCounters.h.

Referenced by gst_qgc_q_video_sink_show_frame().

◆ frameStats()

GstStructure * GstQgc::SinkCounters::frameStats ( ) const

◆ input()

quint64 GstQgc::SinkCounters::input ( ) const
inline

Definition at line 31 of file GstQgcSinkCounters.h.

Referenced by gst_qgc_q_video_sink_show_frame().

◆ noteDelivered()

quint64 GstQgc::SinkCounters::noteDelivered ( HwVideoBufferPath path,
bool superseded )

A frame reached the QVideoSink through path (None for the CPU), replacing one it hadn't taken yet when superseded. Returns the frames delivered so far.

Definition at line 9 of file GstQgcSinkCounters.cc.

Referenced by gst_qgc_q_video_sink_show_frame().

◆ noteDropped()

void GstQgc::SinkCounters::noteDropped ( )
inline

Definition at line 20 of file GstQgcSinkCounters.h.

Referenced by gst_qgc_q_video_sink_show_frame().

◆ noteGpuFallback()

void GstQgc::SinkCounters::noteGpuFallback ( bool firstOfEpoch)

A GPU path was tried for a frame the CPU delivered; firstOfEpoch: the caps epoch's first, a stream demotion.

Definition at line 21 of file GstQgcSinkCounters.cc.

Referenced by GstQgc::PathSession::onDelivered().

◆ noteInput()

void GstQgc::SinkCounters::noteInput ( )
inline

Definition at line 18 of file GstQgcSinkCounters.h.

Referenced by gst_qgc_q_video_sink_show_frame().

◆ noteTiledDrop()

void GstQgc::SinkCounters::noteTiledDrop ( )
inline

A frame in a tiled DMA_DRM layout no GPU path imported and the CPU can't read.

Definition at line 29 of file GstQgcSinkCounters.h.

Referenced by GstQgc::PathSession::onMapFailed().

◆ pathFrames()

quint64 GstQgc::SinkCounters::pathFrames ( HwVideoBufferPath path) const
inline

Definition at line 37 of file GstQgcSinkCounters.h.

Referenced by gst_qgc_q_video_sink_show_frame().


The documentation for this class was generated from the following files: