Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QVideoEncoderSettings Class Reference

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

 #include <QVideoEncoderSettings>

This class was introduced in Qt Mobility 1.0.

Public Functions

QVideoEncoderSettings ()
QVideoEncoderSettings ( const QVideoEncoderSettings & other )
~QVideoEncoderSettings ()
int bitRate () const
QString codec () const
QtMultimediaKit::EncodingMode encodingMode () const
qreal frameRate () const
bool isNull () const
QtMultimediaKit::EncodingQuality quality () const
QSize resolution () const
void setBitRate ( int value )
void setCodec ( const QString & codec )
void setEncodingMode ( QtMultimediaKit::EncodingMode mode )
void setFrameRate ( qreal rate )
void setQuality ( QtMultimediaKit::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.

This function was introduced in Qt Mobility 1.0.

QVideoEncoderSettings::~QVideoEncoderSettings ()

Destroys a video encoder settings object.

int QVideoEncoderSettings::bitRate () const

Returns bit rate of the encoded video stream in bits per second.

This function was introduced in Qt Mobility 1.0.

See also setBitRate().

QString QVideoEncoderSettings::codec () const

Returns the video codec.

This function was introduced in Qt Mobility 1.0.

See also setCodec().

QtMultimediaKit::EncodingMode QVideoEncoderSettings::encodingMode () const

Returns the video encoding mode.

This function was introduced in Qt Mobility 1.0.

See also setEncodingMode() and QtMultimediaKit::EncodingMode.

qreal QVideoEncoderSettings::frameRate () const

Returns the video frame rate.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

QtMultimediaKit::EncodingQuality QVideoEncoderSettings::quality () const

Returns the video encoding quality.

This function was introduced in Qt Mobility 1.0.

See also setQuality().

QSize QVideoEncoderSettings::resolution () const

Returns the resolution of the encoded video.

This function was introduced in Qt Mobility 1.0.

See also setResolution().

void QVideoEncoderSettings::setBitRate ( int value )

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

This function was introduced in Qt Mobility 1.0.

See also bitRate().

void QVideoEncoderSettings::setCodec ( const QString & codec )

Sets the video codec.

This function was introduced in Qt Mobility 1.0.

See also codec().

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

Sets the video encoding mode.

If QtMultimediaKit::ConstantQualityEncoding is set, the quality encoding parameter is used and bit rate is ignored, otherwise the bitrate is used.

The rest of encoding settings are respected regardless of encoding mode.

This function was introduced in Qt Mobility 1.0.

See also encodingMode() and QtMultimediaKit::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.

This function was introduced in Qt Mobility 1.0.

See also frameRate().

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

Sets the video encoding quality.

Setting the video quality parameter allows backend to choose the balanced set of encoding parameters to achieve the desired quality level.

The quality settings parameter is only used in the constant quality encoding mode. The quality settings parameter is only used in the constant quality encoding mode.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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 false if they are of equal value.

This function was introduced in Qt Mobility 1.0.

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

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

This function was introduced in Qt Mobility 1.0.

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 false if they are not of equal value.

This function was introduced in Qt Mobility 1.0.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  5. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 50
  4. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  5. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.2
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web