QVideoEncoderSettingsControl Class

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 = nullptr) const = 0
virtual QList<QSize> supportedResolutions (const QVideoEncoderSettings & settings , bool * continuous = nullptr) const = 0
virtual QStringList supportedVideoCodecs () const = 0
virtual QString videoCodecDescription (const QString & codec ) const = 0
virtual QVideoEncoderSettings videoSettings () const = 0

靜態公共成員

const QMetaObject staticMetaObject

保護函數

QVideoEncoderSettingsControl (QObject * parent = 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 = 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 = 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 = 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 ().

宏文檔編製

QVideoEncoderSettingsControl_iid

org.qt-project.qt.videoencodersettingscontrol/5.0

定義接口名為 QVideoEncoderSettingsControl 類。