4#ifndef QGSTVIDEORENDERERSINK_P_H
5#define QGSTVIDEORENDERERSINK_P_H
18#include <QtMultimedia/private/qtmultimediaglobal_p.h>
19#include <gst/video/gstvideosink.h>
20#include <gst/video/video.h>
22#include <QtCore/qlist.h>
23#include <QtCore/qmutex.h>
24#include <QtCore/qqueue.h>
25#include <QtCore/qpointer.h>
26#include <QtCore/qwaitcondition.h>
63 void createSurfaceCaps();
72 GstFlowReturn m_renderReturn = GST_FLOW_OK;
73 bool m_active =
false;
78 GstBuffer *m_renderBuffer =
nullptr;
80 bool m_notified =
false;
83 bool m_frameMirrored =
false;
88 GstVideoInfo m_videoInfo;
89 bool m_flushed =
true;
102 static GType get_type();
103 static void class_init(gpointer g_class, gpointer class_data);
104 static void base_init(gpointer g_class);
105 static void instance_init(GTypeInstance *instance, gpointer g_class);
107 static void finalize(GObject *
object);
109 static void handleShowPrerollChange(GObject *
o, GParamSpec *
p, gpointer
d);
111 static GstStateChangeReturn change_state(GstElement *element, GstStateChange transition);
113 static GstCaps *get_caps(GstBaseSink *
sink, GstCaps *
filter);
114 static gboolean set_caps(GstBaseSink *
sink, GstCaps *caps);
116 static gboolean propose_allocation(GstBaseSink *
sink, GstQuery *
query);
118 static gboolean stop(GstBaseSink *
sink);
122 static GstFlowReturn show_frame(GstVideoSink *
sink, GstBuffer *
buffer);
123 static gboolean
query(GstBaseSink *element, GstQuery *
query);
124 static gboolean
event(GstBaseSink *element, GstEvent *
event);
GstVideoSinkClass parent_class
QGstVideoRenderer(QGstreamerVideoSink *sink)
bool proposeAllocation(GstQuery *query)
void gstEvent(GstEvent *event)
GstFlowReturn render(GstBuffer *buffer)
RotationAngle
The angle of the clockwise rotation that should be applied to a video frame before displaying.
The QVideoSink class represents a generic sink for video data.
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizei GLenum GLboolean sink
QSvgRenderer * renderer
[0]