18#include <private/qtmultimediaglobal_p.h>
19#include <private/qmultimediautils_p.h>
22#include <QtCore/qobject.h>
23#include <QtCore/qiodevice.h>
24#include <QtCore/private/qringbuffer_p.h>
25#include <QtCore/qatomic.h>
26#include <QtCore/qmutex.h>
29#include <gst/app/gstappsrc.h>
62 void streamDestroyed();
67 bool isStreamValid()
const;
69 static gboolean on_seek_data(GstAppSrc *
element, guint64 arg0, gpointer userdata);
70 static void on_enough_data(GstAppSrc *
element, gpointer userdata);
71 static void on_need_data(GstAppSrc *
element,
uint arg0, gpointer userdata);
83 bool m_sequential =
true;
84 bool m_suspended =
false;
85 bool m_noMoreData =
false;
86 GstAppStreamType m_streamType = GST_APP_STREAM_TYPE_RANDOM_ACCESS;
90 QAtomicInteger<unsigned int> m_dataRequestSize = 0;
91 int streamedSamples = 0;
void bytesProcessed(int bytes)
bool setup(QIODevice *stream=nullptr, qint64 offset=0)
void setAudioFormat(const QAudioFormat &f)
static QMaybe< QGstAppSource * > create(QObject *parent=nullptr)
QGstElement element() const
void write(const char *data, qsizetype size)
void setExternalAppSrc(QGstAppSrc)
bool canAcceptMoreData() const
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset