Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGstreamerMediaEncoder Class Reference

#include <qgstreamermediaencoder_p.h>

+ Inheritance diagram for QGstreamerMediaEncoder:
+ Collaboration diagram for QGstreamerMediaEncoder:

Public Member Functions

 QGstreamerMediaEncoder (QMediaRecorder *parent)
 
virtual ~QGstreamerMediaEncoder ()
 
bool isLocationWritable (const QUrl &sink) const override
 
qint64 duration () const override
 
void record (QMediaEncoderSettings &settings) override
 
void pause () override
 
void resume () override
 
void stop () override
 
void setMetaData (const QMediaMetaData &) override
 
QMediaMetaData metaData () const override
 
void setCaptureSession (QPlatformMediaCaptureSession *session)
 
QGstElement getEncoder ()
 
- Public Member Functions inherited from QPlatformMediaRecorder
virtual ~QPlatformMediaRecorder ()
 
virtual QMediaRecorder::RecorderState state () const
 
QMediaRecorder::Error error () const
 
QString errorString () const
 
QUrl outputLocation () const
 
virtual void setOutputLocation (const QUrl &location)
 
QUrl actualLocation () const
 
void clearActualLocation ()
 
void clearError ()
 
QIODeviceoutputDevice () const
 
void setOutputDevice (QIODevice *device)
 

Private Member Functions

bool processBusMessage (const QGstreamerMessage &message) override
 

Additional Inherited Members

- Protected Member Functions inherited from QPlatformMediaRecorder
 QPlatformMediaRecorder (QMediaRecorder *parent)
 
void stateChanged (QMediaRecorder::RecorderState state)
 
void durationChanged (qint64 position)
 
void actualLocationChanged (const QUrl &location)
 
void updateError (QMediaRecorder::Error error, const QString &errorString)
 
void metaDataChanged ()
 
QMediaRecordermediaRecorder ()
 
QString findActualLocation (const QMediaEncoderSettings &settings) const
 

Detailed Description

Definition at line 33 of file qgstreamermediaencoder_p.h.

Constructor & Destructor Documentation

◆ QGstreamerMediaEncoder()

QGstreamerMediaEncoder::QGstreamerMediaEncoder ( QMediaRecorder * parent)
explicit

◆ ~QGstreamerMediaEncoder()

QGstreamerMediaEncoder::~QGstreamerMediaEncoder ( )
virtual

Definition at line 41 of file qgstreamermediaencoder.cpp.

References QGstPointerImpl::QGstObjectWrapper< GstType >::isNull(), QGstPipeline::removeMessageFilter(), and QGstElement::setStateSync().

+ Here is the call graph for this function:

Member Function Documentation

◆ duration()

qint64 QGstreamerMediaEncoder::duration ( ) const
overridevirtual

Reimplemented from QPlatformMediaRecorder.

Definition at line 113 of file qgstreamermediaencoder.cpp.

Referenced by pause(), and stop().

+ Here is the caller graph for this function:

◆ getEncoder()

QGstElement QGstreamerMediaEncoder::getEncoder ( )
inline

Definition at line 53 of file qgstreamermediaencoder_p.h.

◆ isLocationWritable()

bool QGstreamerMediaEncoder::isLocationWritable ( const QUrl & sink) const
overridevirtual

Implements QPlatformMediaRecorder.

Definition at line 50 of file qgstreamermediaencoder.cpp.

◆ metaData()

QMediaMetaData QGstreamerMediaEncoder::metaData ( ) const
overridevirtual

Reimplemented from QPlatformMediaRecorder.

Definition at line 386 of file qgstreamermediaencoder.cpp.

Referenced by setMetaData().

+ Here is the caller graph for this function:

◆ pause()

void QGstreamerMediaEncoder::pause ( )
overridevirtual

Reimplemented from QPlatformMediaRecorder.

Definition at line 332 of file qgstreamermediaencoder.cpp.

References QGstPipeline::dumpGraph(), duration(), QPlatformMediaRecorder::durationChanged(), QMediaRecorder::PausedState, QMediaRecorder::RecordingState, QPlatformMediaRecorder::state(), QPlatformMediaRecorder::stateChanged(), and QTimer::stop().

+ Here is the call graph for this function:

◆ processBusMessage()

bool QGstreamerMediaEncoder::processBusMessage ( const QGstreamerMessage & message)
overrideprivatevirtual

Implements QGstreamerBusMessageFilter.

Definition at line 61 of file qgstreamermediaencoder.cpp.

References debug, QString::fromUtf8(), QUniqueHandle< HandleTraits >::get(), QGstreamerMessage::message(), QGstObject::name(), processBusMessage(), qCDebug, QMediaRecorder::ResourceError, QGstreamerMessage::source(), stop(), QGstreamerMessage::structure(), QGstreamerMessage::type(), and QPlatformMediaRecorder::updateError().

Referenced by processBusMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ record()

◆ resume()

void QGstreamerMediaEncoder::resume ( )
overridevirtual

Reimplemented from QPlatformMediaRecorder.

Definition at line 342 of file qgstreamermediaencoder.cpp.

References QGstPipeline::dumpGraph(), QMediaRecorder::PausedState, QMediaRecorder::RecordingState, QTimer::start(), QPlatformMediaRecorder::state(), and QPlatformMediaRecorder::stateChanged().

+ Here is the call graph for this function:

◆ setCaptureSession()

void QGstreamerMediaEncoder::setCaptureSession ( QPlatformMediaCaptureSession * session)

Definition at line 391 of file qgstreamermediaencoder.cpp.

References QObject::connect(), QEventLoop::exec(), QGstPipeline::installMessageFilter(), QPlatformMediaRecorder::mediaRecorder(), QEventLoop::quit(), QMediaRecorder::recorderStateChanged(), QGstPipeline::removeMessageFilter(), QGstObject::set(), and stop().

Referenced by QGstreamerMediaCapture::setMediaRecorder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMetaData()

void QGstreamerMediaEncoder::setMetaData ( const QMediaMetaData & metaData)
overridevirtual

Reimplemented from QPlatformMediaRecorder.

Definition at line 379 of file qgstreamermediaencoder.cpp.

References metaData().

+ Here is the call graph for this function:

◆ stop()

void QGstreamerMediaEncoder::stop ( )
overridevirtual

Implements QPlatformMediaRecorder.

Definition at line 351 of file qgstreamermediaencoder.cpp.

References duration(), QPlatformMediaRecorder::durationChanged(), qCDebug, QGstElement::sendEos(), QPlatformMediaRecorder::state(), QTimer::stop(), QMediaRecorder::StoppedState, and QGstreamerMediaCapture::unlinkEncoder().

Referenced by processBusMessage(), and setCaptureSession().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: