Home · All Classes · All Functions ·

QVideoEncoderControl Class Reference

The QVideoEncoderControl class provides access to the settings of a media service that performs video encoding. More...

    #include <QVideoEncoderControl>

This class is under development and is subject to change.

Inherits QMediaControl.


Public Functions

virtual ~QVideoEncoderControl ()
virtual QVariant encodingOption ( const QString & codec, const QString & option ) const = 0
virtual void setEncodingOption ( const QString & codec, const QString & option, const QVariant & value ) = 0
virtual void setVideoSettings ( const QVideoEncoderSettings & settings ) = 0
virtual QStringList supportedEncodingOptions ( const QString & codec ) const = 0
virtual QList<qreal> supportedFrameRates ( const QVideoEncoderSettings & settings, bool * continuous = 0 ) const = 0
virtual QList<QSize> supportedResolutions ( const QVideoEncoderSettings & settings, bool * continuous = 0 ) const = 0
virtual QStringList supportedVideoCodecs () const = 0
virtual QString videoCodecDescription ( const QString & codec ) const = 0
virtual QVideoEncoderSettings videoSettings () const = 0

Protected Functions

QVideoEncoderControl ( QObject * parent = 0 )

Macros

QVideoEncoderControl_iid

Additional Inherited Members


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 com.nokia.Qt.QVideoEncoderControl/1.0 as defined in QVideoEncoderControl_iid.

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


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 selected video encoder settings.

See also setVideoSettings().


Macro Documentation

QVideoEncoderControl_iid

com.nokia.Qt.QVideoEncoderControl/1.0

Defines the interface name of the QVideoEncoderControl class.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.2