QImageEncoderSettings

The QImageEncoderSettings class provides a set of image encoder settings. More

Inheritance diagram of PySide2.QtMultimedia.QImageEncoderSettings

Synopsis

Functions

Detailed Description

A 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() function.

QImageEncoderSettings imageSettings;
imageSettings.setCodec("image/jpeg");
imageSettings.setResolution(1600, 1200);

imageCapture->setEncodingSettings(imageSettings);
class QImageEncoderSettings

QImageEncoderSettings(other)

param other

QImageEncoderSettings

Constructs a null image encoder settings object.

Constructs a copy of the image encoder settings object other .

PySide2.QtMultimedia.QImageEncoderSettings.codec()
Return type

unicode

Returns the image codec.

See also

setCodec()

PySide2.QtMultimedia.QImageEncoderSettings.encodingOption(option)
Parameters

option – unicode

Return type

object

Returns the value of encoding option .

PySide2.QtMultimedia.QImageEncoderSettings.encodingOptions()
Return type

QVariantMap

Returns the all the encoding options as QVariantMap .

PySide2.QtMultimedia.QImageEncoderSettings.isNull()
Return type

bool

Identifies if a image encoder settings object is uninitalized.

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

PySide2.QtMultimedia.QImageEncoderSettings.__ne__(other)
Parameters

otherQImageEncoderSettings

Return type

bool

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

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

PySide2.QtMultimedia.QImageEncoderSettings.__eq__(other)
Parameters

otherQImageEncoderSettings

Return type

bool

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

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

PySide2.QtMultimedia.QImageEncoderSettings.quality()
Return type

EncodingQuality

Returns the image encoding quality.

See also

setQuality()

PySide2.QtMultimedia.QImageEncoderSettings.resolution()
Return type

QSize

Returns the resolution of the encoded image.

See also

setResolution()

PySide2.QtMultimedia.QImageEncoderSettings.setCodec(arg__1)
Parameters

arg__1 – unicode

Sets the image codec .

See also

codec()

PySide2.QtMultimedia.QImageEncoderSettings.setEncodingOption(option, value)
Parameters
  • option – unicode

  • value – object

Set the encoding option value .

The supported set and meaning of encoding options are system and selected codec specific.

PySide2.QtMultimedia.QImageEncoderSettings.setEncodingOptions(options)
Parameters

optionsQVariantMap

Replace all the encoding options with options .

The supported set and meaning of encoding options are system and selected codec specific.

PySide2.QtMultimedia.QImageEncoderSettings.setQuality(quality)
Parameters

qualityEncodingQuality

Sets the image encoding quality .

See also

quality()

PySide2.QtMultimedia.QImageEncoderSettings.setResolution(arg__1)
Parameters

arg__1QSize

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.

See also

resolution()

PySide2.QtMultimedia.QImageEncoderSettings.setResolution(width, height)
Parameters
  • widthint

  • heightint

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

This is an overloaded function.