Home · All Classes · All Functions ·

QVideoEncoderSettings Class Reference

The QVideoEncoderSettings class provides a set of video encoder settings. More...

    #include <QVideoEncoderSettings>

This class is under development and is subject to change.


Public Functions

QVideoEncoderSettings ()
QVideoEncoderSettings ( const QVideoEncoderSettings & other )
~QVideoEncoderSettings ()
int bitRate () const
QString codec () const
QtMedia::EncodingMode encodingMode () const
qreal frameRate () const
bool isNull () const
QtMedia::EncodingQuality quality () const
QSize resolution () const
void setBitRate ( int value )
void setCodec ( const QString & codec )
void setEncodingMode ( QtMedia::EncodingMode mode )
void setFrameRate ( qreal rate )
void setQuality ( QtMedia::EncodingQuality quality )
void setResolution ( const QSize & resolution )
void setResolution ( int width, int height )
bool operator!= ( const QVideoEncoderSettings & other ) const
QVideoEncoderSettings & operator= ( const QVideoEncoderSettings & other )
bool operator== ( const QVideoEncoderSettings & other ) const

Detailed Description

The QVideoEncoderSettings class provides a set of video encoder settings.

A video encoder settings object is used to specify the video encoder settings used by QMediaRecorder. Video encoder settings are selected by constructing a QVideoEncoderSettings object, setting the desired properties and then passing it to a QMediaRecorder instance using the QMediaRecorder::setEncodingSettings() function.

    QVideoEncoderSettings videoSettings;
    videoSettings.setCodec("video/mpeg2");
    videoSettings.setResolution(640, 480);

    recorder->setEncodingSettings(audioSettings, videoSettings);

See also QMediaRecorder and QVideoEncoderControl.


Member Function Documentation

QVideoEncoderSettings::QVideoEncoderSettings ()

Constructs a null video encoder settings object.

QVideoEncoderSettings::QVideoEncoderSettings ( const QVideoEncoderSettings & other )

Constructs a copy of the video encoder settings object other.

QVideoEncoderSettings::~QVideoEncoderSettings ()

Destroys a video encoder settings object.

int QVideoEncoderSettings::bitRate () const

Returns bit rate of the encoded video stream.

See also setBitRate().

QString QVideoEncoderSettings::codec () const

Returns the video codec.

See also setCodec().

QtMedia::EncodingMode QVideoEncoderSettings::encodingMode () const

Returns the video encoding mode.

See also setEncodingMode() and QtMedia::EncodingMode.

qreal QVideoEncoderSettings::frameRate () const

Returns the video frame rate.

See also setFrameRate().

bool QVideoEncoderSettings::isNull () const

Identifies if a video encoder settings object is uninitalized.

Returns true if the settings are null, and false if they are not.

QtMedia::EncodingQuality QVideoEncoderSettings::quality () const

Returns the video encoding quality.

See also setQuality().

QSize QVideoEncoderSettings::resolution () const

Returns the resolution of the encoded video.

See also setResolution().

void QVideoEncoderSettings::setBitRate ( int value )

Sets the bit rate of the encoded video stream to value.

See also bitRate().

void QVideoEncoderSettings::setCodec ( const QString & codec )

Sets the video codec.

See also codec().

void QVideoEncoderSettings::setEncodingMode ( QtMedia::EncodingMode mode )

Sets the video encoding mode.

See also encodingMode() and QtMedia::EncodingMode.

void QVideoEncoderSettings::setFrameRate ( qreal rate )

Sets the video frame rate.

A value of 0 indicates the encoder should make an optimal choice based on what is available from the video source and the limitations of the codec.

See also frameRate().

void QVideoEncoderSettings::setQuality ( QtMedia::EncodingQuality quality )

Sets the video encoding quality.

See also quality().

void QVideoEncoderSettings::setResolution ( const QSize & resolution )

Sets the resolution of the encoded video.

An empty QSize indicates the encoder should make an optimal choice based on what is available from the video source and the limitations of the codec.

See also resolution().

void QVideoEncoderSettings::setResolution ( int width, int height )

Sets the width and height of the resolution of the encoded video.

This is an overloaded function.

bool QVideoEncoderSettings::operator!= ( const QVideoEncoderSettings & other ) const

Determines if other is of equal value to a video encoder settings object.

Returns true if the settings objects are not of equal value, and true if they are of equal value.

QVideoEncoderSettings & QVideoEncoderSettings::operator= ( const QVideoEncoderSettings & other )

Assigns the value of other to a video encoder settings object.

bool QVideoEncoderSettings::operator== ( const QVideoEncoderSettings & other ) const

Determines if other is of equal value to a video encoder settings object.

Returns true if the settings objects are of equal value, and true if they are not of equal value.


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