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. | |
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.
| 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.
|
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.
|
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().
| void PipelineStatsProbe::sample | ( | GstElement * | pipeline, |
| GstElement * | source, | ||
| GstElement * | tee, | ||
| VideoStreamStatsMeter::Counters & | counters, | ||
| VideoStreamStats & | stats ) |
Fills the bytes and RTP counters of counters, and the RTP, keyframe interval, latency and codec fields of stats, for the stream source feeds into tee in pipeline. Any of them may be null. One thread samples.
Definition at line 146 of file PipelineStatsProbe.cc.
References GStreamer::adoptCaps(), GStreamer::adoptPad(), VideoStreamStatsMeter::Counters::bytesReceived, VideoStreamStats::codec, VideoStreamStats::jitterMs, VideoStreamStats::keyframeIntervalMs, VideoStreamStats::latencyMs, VideoStreamStats::packetsDuplicate, VideoStreamStats::packetsLate, queryLatency(), VideoStreamStatsMeter::Counters::rtp, GStreamer::rtpPacketCounts(), VideoStreamStats::rtxRecovered, and VideoStreamStats::rtxRequested.