PythonQt.Qt.QPixelFormat
QPixelFormat
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
In Qt there is a often a need to represent the layout of the pixels in a graphics buffer. Internally QPixelFormat stores everything in a 64 bit datastructure. This gives performance but also some limitations.
QPixelFormat can describe 5 color channels and 1 alpha channel, each can use 6 bits to describe the size of the color channel.
The position of the alpha channel is described with a separate enum. This is to make it possible to describe QImage formats like ARGB32, and also describe typical OpenGL formats like RBGA8888.
How pixels are suppose to be read is determined by the TypeInterpretation enum. It describes if color values are suppose to be read byte per byte, or if a pixel is suppose to be read as a complete int and then masked.
There is no support for describing YUV's macro pixels. Instead a list of YUV formats has been made. When a QPixelFormat is describing a YUV format, the bitsPerPixel value has been deduced by the YUV Layout enum. Also, the color channels should all be set to zero except the fifth color channel that should store the bitsPerPixel value.
Source: https://doc.qt.io/archives/qt-5.15/qpixelformat.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
Alpha |
attribute | Any |
(shared captured text) |
AlphaPosition |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
AlphaPremultiplied |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
AlphaUsage |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
AtBeginning |
attribute | Any |
(shared captured text) |
AtEnd |
attribute | Any |
(shared captured text) |
BGR |
attribute | Any |
(shared captured text) |
BigEndian |
attribute | Any |
(shared captured text) |
ByteOrder |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
CMYK |
attribute | Any |
(shared captured text) |
ColorModel |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
CurrentSystemEndian |
attribute | Any |
(shared captured text) |
FloatingPoint |
attribute | Any |
(shared captured text) |
Grayscale |
attribute | Any |
(shared captured text) |
HSL |
attribute | Any |
(shared captured text) |
HSV |
attribute | Any |
(shared captured text) |
IMC1 |
attribute | Any |
(shared captured text) |
IMC2 |
attribute | Any |
(shared captured text) |
IMC3 |
attribute | Any |
(shared captured text) |
IMC4 |
attribute | Any |
(shared captured text) |
IgnoresAlpha |
attribute | Any |
(shared captured text) |
Indexed |
attribute | Any |
(shared captured text) |
LittleEndian |
attribute | Any |
(shared captured text) |
NV12 |
attribute | Any |
(shared captured text) |
NV21 |
attribute | Any |
(shared captured text) |
NotPremultiplied |
attribute | Any |
(shared captured text) |
Premultiplied |
attribute | Any |
(shared captured text) |
RGB |
attribute | Any |
(shared captured text) |
TypeInterpretation |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
UYVY |
attribute | Any |
(shared captured text) |
UnsignedByte |
attribute | Any |
(shared captured text) |
UnsignedInteger |
attribute | Any |
(shared captured text) |
UnsignedShort |
attribute | Any |
(shared captured text) |
UsesAlpha |
attribute | Any |
(shared captured text) |
Y16 |
attribute | Any |
(shared captured text) |
Y8 |
attribute | Any |
(shared captured text) |
YUV |
attribute | Any |
(shared captured text) |
YUV411 |
attribute | Any |
(shared captured text) |
YUV420P |
attribute | Any |
(shared captured text) |
YUV420SP |
attribute | Any |
(shared captured text) |
YUV422 |
attribute | Any |
(shared captured text) |
YUV444 |
attribute | Any |
(shared captured text) |
YUVLayout |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
YUYV |
attribute | Any |
(shared captured text) |
YV12 |
attribute | Any |
(shared captured text) |
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
alphaPosition |
function | (self) -> Any |
Accessor function for alphaPosition. (shared captured text) |
alphaSize |
function | (self) -> int |
X.alphaSize() -> int (shared captured text) |
alphaUsage |
function | (self) -> Any |
Accessor function for alphaUsage. (shared captured text) |
bitsPerPixel |
function | (self) -> int |
X.bitsPerPixel() -> int (shared captured text) |
blackSize |
function | (self) -> int |
X.blackSize() -> int (shared captured text) |
blueSize |
function | (self) -> int |
X.blueSize() -> int (shared captured text) |
brightnessSize |
function | (self) -> int |
X.brightnessSize() -> int (shared captured text) |
byteOrder |
function | (self) -> Any |
The byte order is almost always set the byte order of the current system. (shared captured text) |
channelCount |
function | (self) -> int |
X.channelCount() -> int (shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
colorModel |
function | (self) -> Any |
Accessor function for getting the colorModel. (shared captured text) |
cyanSize |
function | (self) -> int |
X.cyanSize() -> int (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
greenSize |
function | (self) -> int |
X.greenSize() -> int (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
hueSize |
function | (self) -> int |
X.hueSize() -> int (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
lightnessSize |
function | (self) -> int |
X.lightnessSize() -> int (shared captured text) |
magentaSize |
function | (self) -> int |
X.magentaSize() -> int (shared captured text) |
premultiplied |
function | (self) -> Any |
Accessor function for the [AlphaPremultiplied](https://doc.qt.io/archives/qt-5.15/qpixelformat.html#AlphaPremultiplied-enum) enum. (shared captured text) |
redSize |
function | (self) -> int |
X.redSize() -> int (shared captured text) |
saturationSize |
function | (self) -> int |
X.saturationSize() -> int (shared captured text) |
subEnum |
function | (self) -> int |
X.subEnum() -> int (shared captured text) |
typeInterpretation |
function | (self) -> Any |
Accessor function for the type representation of a color channel or a pixel. (shared captured text) |
yellowSize |
function | (self) -> int |
X.yellowSize() -> int (shared captured text) |
yuvLayout |
function | (self) -> Any |
Accessor function for the [YUVLayout](https://doc.qt.io/archives/qt-5.15/qpixelformat.html#YUVLayout-enum). (shared captured text) |