QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PipelineStatsProbe Class Reference

What PipelineSession measures of its stream for VideoStreamStats, apart from its branches. More...

#include <PipelineStatsProbe.h>

Public Member Functions

void noteBuffer (GstBuffer *buffer)
 Streaming thread (the tee's sink pad, so one at a time): buffer reached the tee.
void sample (GstElement *pipeline, GstElement *source, GstElement *tee, VideoStreamStatsMeter::Counters &counters, VideoStreamStats &stats)

Static Public Member Functions

static void noteElementMessage (GstMessage *message)
static bool queryLatency (GstElement *pipeline, GstClockTime &min, GstClockTime &max)
 The latency pipeline reports; false when it doesn't answer the latency query.

Detailed Description

What PipelineSession measures of its stream for VideoStreamStats, apart from its branches.

The tee's probe notes every buffer that reaches the tee: its size, and a keyframe's timestamp. sample() adds what the pipeline tells when asked: the RTP counters of the source's jitter buffers, with the packets their messages told they dropped, or those the source counted itself when it has none (GStreamer::rtpPacketCounts()), the latency and the codec.

Definition at line 18 of file PipelineStatsProbe.h.

Member Function Documentation

◆ noteBuffer()

void PipelineStatsProbe::noteBuffer ( GstBuffer * buffer)

Streaming thread (the tee's sink pad, so one at a time): buffer reached the tee.

Definition at line 96 of file PipelineStatsProbe.cc.

◆ noteElementMessage()

void PipelineStatsProbe::noteElementMessage ( GstMessage * message)
static

On the thread that samples: message, an element message of the pipeline's bus. Notes the packets a jitter buffer of the source tells it dropped to stay within its latency (GStreamer::SourceFactory::reportDroppedPackets()), which sample() counts as lost.

Definition at line 108 of file PipelineStatsProbe.cc.

◆ queryLatency()

bool PipelineStatsProbe::queryLatency ( GstElement * pipeline,
GstClockTime & min,
GstClockTime & max )
static

The latency pipeline reports; false when it doesn't answer the latency query.

Definition at line 190 of file PipelineStatsProbe.cc.

References GStreamer::adoptQuery().

Referenced by sample().

◆ sample()

void PipelineStatsProbe::sample ( GstElement * pipeline,
GstElement * source,
GstElement * tee,
VideoStreamStatsMeter::Counters & counters,
VideoStreamStats & stats )

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