QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
TeeBranchHead.h
Go to the documentation of this file.
1#pragma once
2
3#include <gst/gst.h>
4
5#include "BranchContext.h"
6#include "GstScoped.h"
7
16{
17public:
20 [[nodiscard]] bool build(GstElement* pipeline, GstElement* tee, GStreamer::PipelineBranch branch, const char* what);
22 void reset();
23
26 void onOverrun(GCallback callback, gpointer data);
27
29 void open();
31 void close();
33 void requestKeyframe() const;
34
35 GstElement* queue() const { return _queue; }
36
37 GstElement* valve() const { return _valve; }
38
40 bool contains(GstObject* object) const;
41
46 static void absorbFlowErrors(GstElement* part);
47
48private:
49 GstElement* _queue = nullptr;
50 GstElement* _valve = nullptr;
52};
struct _GstElement GstElement
The tee ! queue ! valve head every tee branch starts with.
void open()
Lets frames through and asks upstream for a keyframe to start from.
void reset()
Forgets the elements, which the pipeline still owns, and disconnects the overrun handler.
bool contains(GstObject *object) const
Whether object is the queue or the valve.
GstElement * valve() const
void close()
Drops frames again; nothing before build().
bool build(GstElement *pipeline, GstElement *tee, GStreamer::PipelineBranch branch, const char *what)
void requestKeyframe() const
Asks upstream for a keyframe; nothing before build().
GstElement * queue() const
void onOverrun(GCallback callback, gpointer data)
static void absorbFlowErrors(GstElement *part)
PipelineBranch
The tee branch a pipeline element belongs to, so a bus message can be blamed on the part that failed.