|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include "gstqgcvideosinkbin.h"#include "gstqgcelements.h"#include <gst/app/gstappsink.h>#include <gst/video/gstvideometa.h>#include <gst/video/video-info.h>#include <string>
Include dependency graph for gstqgcvideosinkbin.cc:Go to the source code of this file.
Macros | |
| #define | GST_CAT_DEFAULT gst_qgc_debug |
| #define | DEFAULT_ENABLE_LAST_SAMPLE FALSE |
| #define | DEFAULT_SYNC FALSE |
| #define | DEFAULT_MAX_LATENESS G_GINT64_CONSTANT(-1) |
| #define | PROP_ENABLE_LAST_SAMPLE_NAME "enable-last-sample" |
| #define | PROP_LAST_SAMPLE_NAME "last-sample" |
| #define | PROP_SYNC_NAME "sync" |
| #define | PROP_MAX_LATENESS_NAME "max-lateness" |
| #define | gst_qgc_video_sink_bin_parent_class parent_class |
Enumerations | |
| enum | { PROP_0 , PROP_ENABLE_LAST_SAMPLE , PROP_LAST_SAMPLE , PROP_SYNC , PROP_MAX_LATENESS , PROP_GPU_ZEROCOPY , PROP_CONVERSION_ELEMENT , PROP_DISABLE_PAR , PROP_LAST } |
Functions | |
| G_DEFINE_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 GstPadProbeReturn | gst_qgc_handle_allocation_query (GstQuery *query) |
| static GstPadProbeReturn | gst_qgc_appsink_query_probe (GstPad *pad, GstPadProbeInfo *info, gpointer user_data) |
| static gboolean | gst_qgc_video_sink_bin_ghost_pad (GstQgcVideoSinkBin *self, GstElement *inner) |
| static void | gst_qgc_video_sink_bin_init (GstQgcVideoSinkBin *self) |
| static GstElement * | gst_qgc_video_sink_bin_make_conversion_element (GstQgcVideoSinkBin *self) |
| static void | gst_qgc_video_sink_bin_setup (GstQgcVideoSinkBin *self) |
| GstElement * | gst_qgc_video_sink_bin_get_appsink (GstQgcVideoSinkBin *self) |
Variables | |
| static GParamSpec * | properties [PROP_LAST] |
| static GstStaticPadTemplate | sink_factory |
| constexpr guint | kProposedMinBuffers = 4 |
| #define DEFAULT_ENABLE_LAST_SAMPLE FALSE |
Definition at line 19 of file gstqgcvideosinkbin.cc.
| #define DEFAULT_MAX_LATENESS G_GINT64_CONSTANT(-1) |
Definition at line 21 of file gstqgcvideosinkbin.cc.
| #define DEFAULT_SYNC FALSE |
Definition at line 20 of file gstqgcvideosinkbin.cc.
| #define GST_CAT_DEFAULT gst_qgc_debug |
Definition at line 17 of file gstqgcvideosinkbin.cc.
| #define gst_qgc_video_sink_bin_parent_class parent_class |
Definition at line 49 of file gstqgcvideosinkbin.cc.
| #define PROP_ENABLE_LAST_SAMPLE_NAME "enable-last-sample" |
Definition at line 23 of file gstqgcvideosinkbin.cc.
| #define PROP_LAST_SAMPLE_NAME "last-sample" |
Definition at line 24 of file gstqgcvideosinkbin.cc.
| #define PROP_MAX_LATENESS_NAME "max-lateness" |
Definition at line 26 of file gstqgcvideosinkbin.cc.
| #define PROP_SYNC_NAME "sync" |
Definition at line 25 of file gstqgcvideosinkbin.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| PROP_0 | |
| PROP_ENABLE_LAST_SAMPLE | |
| PROP_LAST_SAMPLE | |
| PROP_SYNC | |
| PROP_MAX_LATENESS | |
| PROP_GPU_ZEROCOPY | |
| PROP_CONVERSION_ELEMENT | |
| PROP_DISABLE_PAR | |
| PROP_LAST | |
Definition at line 28 of file gstqgcvideosinkbin.cc.
| G_DEFINE_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 |
Definition at line 200 of file gstqgcvideosinkbin.cc.
References gst_qgc_handle_allocation_query().
Referenced by gst_qgc_video_sink_bin_setup().
|
static |
Definition at line 141 of file gstqgcvideosinkbin.cc.
References kProposedMinBuffers.
Referenced by gst_qgc_appsink_query_probe().
|
static |
Definition at line 514 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 64 of file gstqgcvideosinkbin.cc.
References DEFAULT_ENABLE_LAST_SAMPLE, DEFAULT_MAX_LATENESS, DEFAULT_SYNC, 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_ENABLE_LAST_SAMPLE, PROP_GPU_ZEROCOPY, PROP_LAST, PROP_LAST_SAMPLE, PROP_MAX_LATENESS, PROP_SYNC, properties, and sink_factory.
|
static |
Definition at line 491 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 501 of file gstqgcvideosinkbin.cc.
References gst_qgc_video_sink_bin_parent_class.
Referenced by gst_qgc_video_sink_bin_class_init().
| GstElement * gst_qgc_video_sink_bin_get_appsink | ( | GstQgcVideoSinkBin * | self | ) |
Returns the internal appsink element with a ref. Caller unrefs (transfer-full, matching gst_bin_get_by_name semantics). Returns NULL if the bin is not fully constructed yet.
Definition at line 634 of file gstqgcvideosinkbin.cc.
Referenced by GstAppSinkAdapter::setup().
|
static |
Definition at line 570 of file gstqgcvideosinkbin.cc.
References DEFAULT_MAX_LATENESS, PROP_CONVERSION_ELEMENT, PROP_DISABLE_PAR, PROP_ENABLE_LAST_SAMPLE, PROP_ENABLE_LAST_SAMPLE_NAME, PROP_GPU_ZEROCOPY, PROP_LAST_SAMPLE, PROP_LAST_SAMPLE_NAME, PROP_MAX_LATENESS, PROP_MAX_LATENESS_NAME, PROP_SYNC, and PROP_SYNC_NAME.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 226 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_setup().
|
static |
Definition at line 251 of file gstqgcvideosinkbin.cc.
|
static |
Definition at line 264 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_setup().
|
static |
Definition at line 527 of file gstqgcvideosinkbin.cc.
References PROP_CONVERSION_ELEMENT, PROP_DISABLE_PAR, PROP_ENABLE_LAST_SAMPLE, PROP_ENABLE_LAST_SAMPLE_NAME, PROP_GPU_ZEROCOPY, PROP_MAX_LATENESS, PROP_MAX_LATENESS_NAME, PROP_SYNC, and PROP_SYNC_NAME.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 287 of file gstqgcvideosinkbin.cc.
References gst_qgc_appsink_query_probe(), gst_qgc_video_sink_bin_ghost_pad(), and gst_qgc_video_sink_bin_make_conversion_element().
Referenced by gst_qgc_video_sink_bin_constructed().
|
constexpr |
Definition at line 138 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_handle_allocation_query().
|
static |
Definition at line 41 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_class_init().
|
static |
Definition at line 43 of file gstqgcvideosinkbin.cc.
Referenced by gst_qgc_video_sink_bin_class_init().