The QVideoEncoderSettingsControl class provides access to the settings of a media service that performs video encoding. 更多...
头: | #include <QVideoEncoderSettingsControl> |
qmake: | QT += multimedia |
继承: | QMediaControl |
virtual | ~QVideoEncoderSettingsControl () |
virtual void | setVideoSettings (const QVideoEncoderSettings & settings ) = 0 |
virtual QList<qreal> | supportedFrameRates (const QVideoEncoderSettings & settings , bool * continuous = Q_NULLPTR) const = 0 |
virtual QList<QSize> | supportedResolutions (const QVideoEncoderSettings & settings , bool * continuous = Q_NULLPTR) const = 0 |
virtual QStringList | supportedVideoCodecs () const = 0 |
virtual QString | videoCodecDescription (const QString & codec ) const = 0 |
virtual QVideoEncoderSettings | videoSettings () const = 0 |
QVideoEncoderSettingsControl (QObject * parent = Q_NULLPTR) |
QVideoEncoderSettingsControl_iid |
The QVideoEncoderSettingsControl class provides access to the settings of a media service that performs video encoding.
若 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 对象。
The functionality provided by this control is exposed to application code through the QMediaRecorder 类。
接口名称对于
QVideoEncoderSettingsControl
is
org.qt-project.qt.videoencodersettingscontrol/5.0
作为定义在
QVideoEncoderSettingsControl_iid
.
另请参阅 QMediaRecorder , QVideoEncoderSettings ,和 QMediaService::requestControl ().
[protected]
QVideoEncoderSettingsControl::
QVideoEncoderSettingsControl
(
QObject
*
parent
= Q_NULLPTR)
Create a new video encoder settings control object with the given parent .
[虚拟]
QVideoEncoderSettingsControl::
~QVideoEncoderSettingsControl
()
Destroys a video encoder settings control.
[pure virtual]
void
QVideoEncoderSettingsControl::
setVideoSettings
(const
QVideoEncoderSettings
&
settings
)
Sets the selected video encoder settings .
另请参阅 videoSettings ().
[pure virtual]
QList
<
qreal
> QVideoEncoderSettingsControl::
supportedFrameRates
(const
QVideoEncoderSettings
&
settings
,
bool
*
continuous
= Q_NULLPTR) const
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 被设为 true,否则 * continuous 被设为 false。
另请参阅 QVideoEncoderSettings::frameRate ().
[pure virtual]
QList
<
QSize
> QVideoEncoderSettingsControl::
supportedResolutions
(const
QVideoEncoderSettings
&
settings
,
bool
*
continuous
= Q_NULLPTR) const
返回支持的分辨率列表。
If non null video settings parameter is passed, the returned list is reduced to resolution supported with partial settings like video codec or 帧速率 applied.
若编码器支持所支持的分辨率范围内的任意分辨率,* continuous 被设为 true,否则 * continuous 被设为 false。
另请参阅 QVideoEncoderSettings::resolution ().
[pure virtual]
QStringList
QVideoEncoderSettingsControl::
supportedVideoCodecs
() const
Returns the list of supported video codecs.
[pure virtual]
QString
QVideoEncoderSettingsControl::
videoCodecDescription
(const
QString
&
codec
) const
Returns a description of a video codec .
[pure virtual]
QVideoEncoderSettings
QVideoEncoderSettingsControl::
videoSettings
() const
Returns the video encoder settings.
返回值可能异于传递给 QVideoEncoderSettingsControl::setVideoSettings () 若设定包含默认 (或未定义) 参数。在此情况下,若已解析未定义参数,应返回它们。
另请参阅 setVideoSettings ().
org.qt-project.qt.videoencodersettingscontrol/5.0
定义接口名为 QVideoEncoderSettingsControl 类。