QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
gstqgcqvideosink.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <gst/video/gstvideosink.h>
4
#include <gst/video/video-info.h>
5
6
G_BEGIN_DECLS
7
8
#define GST_TYPE_QGC_Q_VIDEO_SINK (gst_qgc_q_video_sink_get_type())
9
G_DECLARE_FINAL_TYPE(GstQgcQVideoSink, gst_qgc_q_video_sink, GST, QGC_Q_VIDEO_SINK, GstVideoSink)
10
11
14
struct
_GstQgcQVideoSink
15
{
16
GstVideoSink
parent
;
17
18
// Properties backed inline; GObject's property system is the cross-thread boundary (GST_OBJECT_LOCK).
19
gpointer
qvideosink
;
// QVideoSink* (caller-owned; never unref'd by us)
20
gboolean
active
;
21
gboolean
gpu_zerocopy
;
22
23
// Cached negotiated state (set_caps writes, show_frame reads, both streaming-thread,
24
// serialised by GstBaseSink). `priv` holds heap C++ non-POD state so this struct stays POD.
25
gboolean
caps_valid
;
26
GstVideoInfo
video_info
;
27
gpointer
priv
;
// owned (new/delete in instance_init / finalize)
28
};
29
30
G_END_DECLS
31
32
#ifdef __cplusplus
33
struct
HwVideoBufferContext
;
34
37
void
gst_qgc_q_video_sink_set_hw_context
(GstQgcQVideoSink* self,
const
HwVideoBufferContext
& ctx);
38
#endif
gst_qgc_q_video_sink_set_hw_context
void gst_qgc_q_video_sink_set_hw_context(GstQgcQVideoSink *self, const HwVideoBufferContext &ctx)
Definition
gstqgcqvideosink.cc:121
HwVideoBufferContext
Platform context for the factory; encapsulates EGL handles so callers don't need path-specific ifdefs...
Definition
GstHwVideoBufferFactory.h:39
_GstQgcQVideoSink
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
Definition
gstqgcqvideosink.h:15
_GstQgcQVideoSink::parent
GstVideoSink parent
Definition
gstqgcqvideosink.h:16
_GstQgcQVideoSink::qvideosink
gpointer qvideosink
Definition
gstqgcqvideosink.h:19
_GstQgcQVideoSink::active
gboolean active
Definition
gstqgcqvideosink.h:20
_GstQgcQVideoSink::caps_valid
gboolean caps_valid
Definition
gstqgcqvideosink.h:25
_GstQgcQVideoSink::video_info
GstVideoInfo video_info
Definition
gstqgcqvideosink.h:26
_GstQgcQVideoSink::gpu_zerocopy
gboolean gpu_zerocopy
Definition
gstqgcqvideosink.h:21
_GstQgcQVideoSink::priv
gpointer priv
Definition
gstqgcqvideosink.h:27
src
VideoManager
VideoReceiver
GStreamer
gstqgc
gstqgcqvideosink.h
Generated by
1.9.8