CopperSpice API
1.9.2
|
Provides a set of image encoder settings. More...
Public Methods | |
QImageEncoderSettings () | |
QImageEncoderSettings (const QImageEncoderSettings &other) | |
~QImageEncoderSettings () | |
QString | codec () const |
QVariant | encodingOption (const QString &option) const |
QVariantMap | encodingOptions () const |
bool | isNull () const |
bool | operator!= (const QImageEncoderSettings &other) const |
QImageEncoderSettings & | operator= (const QImageEncoderSettings &other) |
bool | operator== (const QImageEncoderSettings &other) const |
QMultimedia::EncodingQuality | quality () const |
QSize | resolution () const |
void | setCodec (const QString &codecName) |
void | setEncodingOption (const QString &option, const QVariant &value) |
void | setEncodingOptions (const QVariantMap &options) |
void | setQuality (QMultimedia::EncodingQuality quality) |
void | setResolution (const QSize &resolution) |
void | setResolution (int width, int height) |
The QImageEncoderSettings class provides a set of image encoder settings.
An image encoder settings object is used to specify the image encoder settings used by QCameraImageCapture. Image encoder settings are selected by constructing a QImageEncoderSettings object, setting the desired properties and then passing it to a QCameraImageCapture instance using the QCameraImageCapture::setImageSettings() method.
QImageEncoderSettings::QImageEncoderSettings | ( | ) |
Constructs a null image encoder settings object.
QImageEncoderSettings::QImageEncoderSettings | ( | const QImageEncoderSettings & | other | ) |
Constructs a copy of the image encoder settings object other.
QImageEncoderSettings::~QImageEncoderSettings | ( | ) |
Destroys this object.
QString QImageEncoderSettings::codec | ( | ) | const |
Returns the image codec.
Returns the value of encoding option.
QVariantMap QImageEncoderSettings::encodingOptions | ( | ) | const |
Returns the all the encoding options as QVariantMap.
bool QImageEncoderSettings::isNull | ( | ) | const |
Identifies if this image encoder settings object is uninitialized. Returns true if the settings are null and false if they are not.
bool QImageEncoderSettings::operator!= | ( | const QImageEncoderSettings & | other | ) | const |
Returns true if other is not equal to this object, otherwise returns false.
QImageEncoderSettings & QImageEncoderSettings::operator= | ( | const QImageEncoderSettings & | other | ) |
Copy assigns from other and returns a reference to this object.
bool QImageEncoderSettings::operator== | ( | const QImageEncoderSettings & | other | ) | const |
Returns true if other is equal to this object, otherwise returns false.
QMultimedia::EncodingQuality QImageEncoderSettings::quality | ( | ) | const |
Returns the image encoding quality.
QSize QImageEncoderSettings::resolution | ( | ) | const |
Returns the resolution of the encoded image.
void QImageEncoderSettings::setCodec | ( | const QString & | codecName | ) |
Sets the image to the given codecName.
Set the encoding option to value. The supported set and meaning of encoding options are system and selected codec specific.
void QImageEncoderSettings::setEncodingOptions | ( | const QVariantMap & | options | ) |
Replace all the encoding options with options. The supported set and meaning of encoding options are system and selected codec specific.
void QImageEncoderSettings::setQuality | ( | QMultimedia::EncodingQuality | quality | ) |
Sets the image encoding quality.
void QImageEncoderSettings::setResolution | ( | const QSize & | resolution | ) |
Sets the resolution of the encoded image. An empty QSize indicates the encoder should make an optimal choice based on what is available from the image source and the limitations of the codec.
void QImageEncoderSettings::setResolution | ( | int | width, |
int | height | ||
) |
Sets the width and height of the resolution of the encoded image.