Detailed Description
The QVideoEncoderControl class provides access to the settings of a media service that performs video encoding.
If a QMediaService supports encoding video data it will implement QVideoEncoderControl. 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 QVideoEncoderControl is org.qt-project.qt.videoencodercontrol/5.0 as defined in QVideoEncoderControl_iid.
Member Function Documentation
QVideoEncoderControl::QVideoEncoderControl(QObject * parent = 0) [protected]
Create a new video encoder control object with the given parent.
QVideoEncoderControl::~QVideoEncoderControl() [virtual]
Destroys a video encoder control.
QVariant QVideoEncoderControl::encodingOption(const QString & codec, const QString & option) const [pure virtual]
Returns the value of a video codec option.
See also setEncodingOption().
void QVideoEncoderControl::setEncodingOption(const QString & codec, const QString & option, const QVariant & value) [pure virtual]
Sets the value of a codec specific option.
See also encodingOption().
void QVideoEncoderControl::setVideoSettings(const QVideoEncoderSettings & settings) [pure virtual]
Sets the selected video encoder settings.
See also videoSettings().
QStringList QVideoEncoderControl::supportedEncodingOptions(const QString & codec) const [pure virtual]
Returns a list of supported encoding options for a video codec.
The names and types of the options in the list is system dependent.
QList<qreal> QVideoEncoderControl::supportedFrameRates(const QVideoEncoderSettings & settings, bool * continuous = 0) const [pure virtual]
Returns a list of supported frame rates.
If non null video settings parameter is passed, the returned list is reduced to frame rates supported with partial settings like video codec or video resolution applied.
If the encoder supports arbitrary frame rates within the supported range, *continuous is set to true, otherwise *continuous is set to false.
See also QVideoEncoderSettings::frameRate().
QList<QSize> QVideoEncoderControl::supportedResolutions(const QVideoEncoderSettings & settings, bool * continuous = 0) const [pure virtual]
Returns a list of supported resolutions.
If non null video settings parameter is passed, the returned list is reduced to resolution supported with partial settings like video codec or frame rate applied.
If the encoder supports arbitrary resolutions within the supported resolutions range, *continuous is set to true, otherwise *continuous is set to false.
See also QVideoEncoderSettings::resolution().
QStringList QVideoEncoderControl::supportedVideoCodecs() const [pure virtual]
Returns the list of supported video codecs.
QString QVideoEncoderControl::videoCodecDescription(const QString & codec) const [pure virtual]
Returns a description of a video codec.
QVideoEncoderSettings QVideoEncoderControl::videoSettings() const [pure virtual]
Returns the video encoder settings.
The returned value may be different tha passed to QVideoEncoderControl::setVideoSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.
See also setVideoSettings().