CopperSpice API  1.7.4
QVideoEncoderSettingsControl Class Referenceabstract

Provides access to the settings of a media service that performs video encoding. More...

Inheritance diagram for QVideoEncoderSettingsControl:
QMediaControl QObject

Public Methods

virtual ~QVideoEncoderSettingsControl ()
 
virtual void setVideoSettings (const QVideoEncoderSettings &settings) = 0
 
virtual QList< qrealsupportedFrameRates (const QVideoEncoderSettings &settings, bool *continuous=nullptr) const = 0
 
virtual QList< QSizesupportedResolutions (const QVideoEncoderSettings &settings, bool *continuous=nullptr) const = 0
 
virtual QStringList supportedVideoCodecs () const = 0
 
virtual QString videoCodecDescription (const QString &codecName) const = 0
 
virtual QVideoEncoderSettings videoSettings () const = 0
 
- Public Methods inherited from QMediaControl
 ~QMediaControl ()
 
- Public Methods inherited from QObject
 QObject (QObject *parent=nullptr)
 
 ~QObject ()
 
bool blockSignals (bool block)
 
const QList< QObject * > & children () const
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QStringdynamicPropertyNames () const
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
template<typename T >
findChild (const QString &childName=QString ()) const
 
template<class T >
QList< T > findChildren (const QRegularExpression &regExp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<class T >
QList< T > findChildren (const QString &childName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
bool inherits (const QString &className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
QObject * parent () const
 
template<class T = QVariant>
property (const QString &name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const QString &name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
QThreadthread () const
 

Protected Methods

 QVideoEncoderSettingsControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QMediaControl
 QMediaControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signalMethod) const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signalMethod) const
 
bool isSignalConnected (const QMetaMethod &signalMethod) const
 
int receivers (const QString &signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 
- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Methods inherited from QObject
static bool connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ())
 
static bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, std::nullptr_t, const QObject *receiver, std::nullptr_t)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...))
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod)
 
static QMetaObjectstaticMetaObject ()
 
static QString tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QVideoEncoderSettingsControl class provides access to the settings of a media service that performs video encoding. If a QMediaService supports encoding video data it will implement QVideoEncoderSettingsControl. This control provides information about the limits of restricted video encoder options and allows the selection of a set of video encoder settings as specified in a QVideoEncoderSettings object.

The functionality provided by this control is exposed to application code through the QMediaRecorder class.

The interface name of QVideoEncoderSettingsControl is "com.copperspice.CS.videoEncoderSettingsControl/1.0" as defined in QVideoEncoderSettingsControl_iid.

See also
QMediaRecorder, QVideoEncoderSettings, QMediaService::requestControl()

Constructor & Destructor Documentation

QVideoEncoderSettingsControl::~QVideoEncoderSettingsControl ( )
virtual

Destroys a video encoder settings control.

QVideoEncoderSettingsControl::QVideoEncoderSettingsControl ( QObject parent = nullptr)
explicitprotected

Create a new video encoder settings control object with the given parent.

Method Documentation

void QVideoEncoderSettingsControl::setVideoSettings ( const QVideoEncoderSettings settings)
pure virtual

Sets the selected video encoder settings.

QList< qreal > QVideoEncoderSettingsControl::supportedFrameRates ( const QVideoEncoderSettings settings = QVideoEncoderSettings(),
bool *  continuous = nullptr 
) const
pure virtual

Returns a list of supported frame rates.

If settings is not empty the returned list will only contain resolutions matching the given settings. If the encoder supports arbitrary frame rates within the supported range, then continuous is set to true otherwise it is set to false.

See also
QVideoEncoderSettings::frameRate()
QList< QSize > QVideoEncoderSettingsControl::supportedResolutions ( const QVideoEncoderSettings settings = QVideoEncoderSettings(),
bool *  continuous = nullptr 
) const
pure virtual

Returns a list of supported video resolutions.

If settings is not empty the returned list will only contain resolutions matching the given settings. If the encoder supports arbitrary resolutions within the supported resolutions range, then continuous is set to true otherwise it is set to false.

See also
QVideoEncoderSettings::resolution()
QStringList QVideoEncoderSettingsControl::supportedVideoCodecs ( ) const
pure virtual

Returns the list of supported video codecs.

QString QVideoEncoderSettingsControl::videoCodecDescription ( const QString codecName) const
pure virtual

Returns a description of a video codecName.

QVideoEncoderSettings QVideoEncoderSettingsControl::videoSettings ( ) const
pure virtual

Returns the video encoder settings. The returned value may not match the parameter which was passed to QAudioEncoderSettingsControl::setVideoSettings() which can happen if the settings were incomplete.