#include "gstqgcvideosinkbin.h"#include "GstQgcBinChain.h"#include "GstQgcGpuBin.h"#include "GstQgcRenderTarget.h"#include "GstScoped.h"#include "gstqgcelements.h"#include "gstqgcqvideosink.h"Go to the source code of this file.
Classes | |
| struct | _GstQgcVideoSinkBin |
Macros | |
| #define | GST_CAT_DEFAULT gst_qgc_debug |
| #define | gst_qgc_video_sink_bin_parent_class parent_class |
Enumerations | |
| enum | { PROP_0 , PROP_GPU_ZEROCOPY , PROP_CONVERSION_ELEMENT , PROP_DISABLE_PAR , PROP_SYNC , PROP_LAST } |
Functions | |
| G_DEFINE_FINAL_TYPE (GstQgcVideoSinkBin, gst_qgc_video_sink_bin, GST_TYPE_BIN) | |
| GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (qgcvideosinkbin, "qgcvideosinkbin", GST_RANK_NONE, GST_TYPE_QGC_VIDEO_SINK_BIN, qgc_element_init(plugin)) | |
| static void | gst_qgc_video_sink_bin_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
| static void | gst_qgc_video_sink_bin_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
| static void | gst_qgc_video_sink_bin_constructed (GObject *object) |
| static void | gst_qgc_video_sink_bin_dispose (GObject *object) |
| static GstStateChangeReturn | gst_qgc_video_sink_bin_change_state (GstElement *element, GstStateChange transition) |
| static void | gst_qgc_video_sink_bin_class_init (GstQgcVideoSinkBinClass *klass) |
| static void | gst_qgc_video_sink_bin_init (GstQgcVideoSinkBin *self) |
| static GstElement * | gst_qgc_video_sink_bin_make_conversion_element (GstQgcVideoSinkBin *self) |
| static gboolean | add_converter (GstQgcVideoSinkBin *self, GstQgc::BinChain &chain, GstElement *&head, GstElement *&tail) |
| static GstQgc::GpuBinMode | select_gpu_bin (GstQgcVideoSinkBin *self) |
| static void | gst_qgc_video_sink_bin_setup (GstQgcVideoSinkBin *self) |
| GstElement * | gst_qgc_video_sink_bin_get_qvideosink (GstQgcVideoSinkBin *self) |
| Returns the internal qgcqvideosink element, transfer-full (caller unrefs); NULL if not yet constructed. | |
Variables | |
| static GParamSpec * | properties [PROP_LAST] |
| static GstStaticPadTemplate | sink_factory |
| #define GST_CAT_DEFAULT gst_qgc_debug |
Definition at line 10 of file gstqgcvideosinkbin.cc.
| #define gst_qgc_video_sink_bin_parent_class parent_class |
Definition at line 44 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_change_state(), gst_qgc_video_sink_bin_constructed(), and gst_qgc_video_sink_bin_dispose().
| anonymous enum |
| Enumerator | |
|---|---|
| PROP_0 | |
| PROP_GPU_ZEROCOPY | |
| PROP_CONVERSION_ELEMENT | |
| PROP_DISABLE_PAR | |
| PROP_SYNC | |
| PROP_LAST | |
Definition at line 27 of file gstqgcvideosinkbin.cc.
|
static |
Definition at line 141 of file gstqgcvideosinkbin.cc.
References GstQgc::BinChain::adopt(), gst_qgc_video_sink_bin_make_conversion_element(), and GstQgc::BinChain::linkChain().
Referenced by gst_qgc_video_sink_bin_setup().
| G_DEFINE_FINAL_TYPE | ( | GstQgcVideoSinkBin | , |
| gst_qgc_video_sink_bin | , | ||
| GST_TYPE_BIN | ) |
| GST_ELEMENT_REGISTER_DEFINE_WITH_CODE | ( | qgcvideosinkbin | , |
| "qgcvideosinkbin" | , | ||
| GST_RANK_NONE | , | ||
| GST_TYPE_QGC_VIDEO_SINK_BIN | , | ||
| qgc_element_init(plugin) | ) |
References GST_TYPE_QGC_VIDEO_SINK_BIN.
|
static |
Definition at line 255 of file gstqgcvideosinkbin.cc.
References gst_qgc_video_sink_bin_parent_class.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 56 of file gstqgcvideosinkbin.cc.
References gst_qgc_video_sink_bin_change_state(), gst_qgc_video_sink_bin_constructed(), gst_qgc_video_sink_bin_dispose(), gst_qgc_video_sink_bin_get_property(), gst_qgc_video_sink_bin_set_property(), PROP_CONVERSION_ELEMENT, PROP_DISABLE_PAR, PROP_GPU_ZEROCOPY, PROP_LAST, PROP_SYNC, properties, and sink_factory.
|
static |
Definition at line 237 of file gstqgcvideosinkbin.cc.
References gst_qgc_video_sink_bin_parent_class, and gst_qgc_video_sink_bin_setup().
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 245 of file gstqgcvideosinkbin.cc.
References gst_qgc_video_sink_bin_parent_class.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 295 of file gstqgcvideosinkbin.cc.
References PROP_CONVERSION_ELEMENT, PROP_DISABLE_PAR, PROP_GPU_ZEROCOPY, and PROP_SYNC.
Referenced by gst_qgc_video_sink_bin_class_init().
| GstElement * gst_qgc_video_sink_bin_get_qvideosink | ( | GstQgcVideoSinkBin * | self | ) |
Returns the internal qgcqvideosink element, transfer-full (caller unrefs); NULL if not yet constructed.
Definition at line 320 of file gstqgcvideosinkbin.cc.
Referenced by GstQgc::frameStats(), and GStreamer::setupQVideoSinkElement().
|
static |
Definition at line 94 of file gstqgcvideosinkbin.cc.
|
static |
Definition at line 105 of file gstqgcvideosinkbin.cc.
References GStreamer::adoptFactory(), GstQgc::RenderTarget::backend, GstQgc::converterSuitsRenderTarget(), GstQgc::currentRenderTarget(), and GstQgc::toString().
Referenced by add_converter().
|
static |
Definition at line 267 of file gstqgcvideosinkbin.cc.
References PROP_CONVERSION_ELEMENT, PROP_DISABLE_PAR, PROP_GPU_ZEROCOPY, and PROP_SYNC.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 180 of file gstqgcvideosinkbin.cc.
References add_converter(), GstQgc::BinChain::adopt(), GstQgc::BinChain::commit(), GstQgc::configureSinkCaps(), GstQgc::D3D12Convert, GstQgc::BinChain::ghostSink(), GstQgc::GlUpload, GstQgc::gpuBinName(), GstQgc::BinChain::linkChain(), GstQgc::Passthrough, and select_gpu_bin().
Referenced by gst_qgc_video_sink_bin_constructed().
|
static |
Definition at line 155 of file gstqgcvideosinkbin.cc.
References GstQgc::RenderTarget::backend, GstQgc::currentRenderTarget(), GstQgc::D3D12Convert, GstQgc::RenderTarget::egl, GstQgc::GpuBinPreference::explicitChoice, GstQgc::gpuBinName(), GstQgc::gpuBinPreference(), GStreamer::hasElementFactory(), GstQgc::GpuBinPreference::mode, GstQgc::Passthrough, GstQgc::selectGpuBin(), and GstQgc::toString().
Referenced by gst_qgc_video_sink_bin_setup().
|
static |
Definition at line 37 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_class_init(), and QGroundControlQmlGlobal::startMockLink().
|
static |
Definition at line 41 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_class_init().