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 PySide2.QtMultimedia.QImageEncoderSettings

PySide2.QtMultimedia.QImageEncoderSettings(other)

param other

PySide2.QtMultimedia.QImageEncoderSettings

Constructs a null image encoder settings object.

Constructs a copy of the image encoder settings object other .

PySide2.QtMultimedia.QImageEncoderSettings.codec()
Return type

str

Returns the image codec.

See also

setCodec()

PySide2.QtMultimedia.QImageEncoderSettings.encodingOption(option)
Parameters

option – str

Return type

object

Returns the value of encoding option .

PySide2.QtMultimedia.QImageEncoderSettings.encodingOptions()
Return type

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

otherPySide2.QtMultimedia.QImageEncoderSettings

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

otherPySide2.QtMultimedia.QImageEncoderSettings

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

PySide2.QtCore.QSize

Returns the resolution of the encoded image.

See also

setResolution()

PySide2.QtMultimedia.QImageEncoderSettings.setCodec(arg__1)
Parameters

arg__1 – str

Sets the image codec .

See also

codec()

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

  • 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

options

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__1PySide2.QtCore.QSize

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
  • width – int

  • height – int

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

This is an overloaded function.