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>.
|
#include <qgstreamermediaencoder_p.h>
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 () |
QIODevice * | outputDevice () 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 () |
QMediaRecorder * | mediaRecorder () |
QString | findActualLocation (const QMediaEncoderSettings &settings) const |
Definition at line 33 of file qgstreamermediaencoder_p.h.
|
explicit |
|
virtual |
Definition at line 41 of file qgstreamermediaencoder.cpp.
References QGstPointerImpl::QGstObjectWrapper< GstType >::isNull(), QGstPipeline::removeMessageFilter(), and QGstElement::setStateSync().
|
overridevirtual |
Reimplemented from QPlatformMediaRecorder.
Definition at line 113 of file qgstreamermediaencoder.cpp.
Referenced by pause(), and stop().
|
inline |
Definition at line 53 of file qgstreamermediaencoder_p.h.
|
overridevirtual |
Implements QPlatformMediaRecorder.
Definition at line 50 of file qgstreamermediaencoder.cpp.
|
overridevirtual |
Reimplemented from QPlatformMediaRecorder.
Definition at line 386 of file qgstreamermediaencoder.cpp.
Referenced by setMetaData().
|
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().
|
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().
|
overridevirtual |
Implements QPlatformMediaRecorder.
Definition at line 256 of file qgstreamermediaencoder.cpp.
References QPlatformMediaRecorder::actualLocationChanged(), QGstBin::add, applyMetaDataToTagSetter(), QGstreamerMediaCapture::audioInput(), QGstreamerMediaCapture::camera(), createEncodingProfile(), QGstBin::createFromFactory(), QGstElement::createFromFactory(), QDir::currentPath(), QGstPipeline::dumpGraph(), QPlatformMediaRecorder::durationChanged(), QFile::encodeName(), QUrl::fromLocalFile(), QMediaStorageLocation::generateFileName(), QGstElement::getRequestPad(), QPlatformVideoSource::isActive(), QGstPointerImpl::QGstObjectWrapper< GstType >::isNull(), QGstreamerMediaCapture::linkEncoder(), QGstPipeline::modifyPipelineWhileNotRunning(), QStandardPaths::MoviesLocation, QStandardPaths::MusicLocation, QGstObject::object(), QPlatformMediaRecorder::outputLocation(), Q_ASSERT, qCDebug, qLinkGstElements, qWarning, QMediaRecorder::RecordingState, QMediaRecorder::ResourceError, QGstObject::set(), settings, QTimer::start(), QPlatformMediaRecorder::state(), QPlatformMediaRecorder::stateChanged(), QMediaRecorder::StoppedState, QGstElement::syncStateWithParent(), toLocalFile(), QMediaFormat::Unspecified, and QPlatformMediaRecorder::updateError().
|
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().
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().
|
overridevirtual |
Reimplemented from QPlatformMediaRecorder.
Definition at line 379 of file qgstreamermediaencoder.cpp.
References metaData().
|
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().