FrameFormat Class
Represents a collection of image format properties (e.g. FOURCC, width, height, stride, ...)
Constructor
FrameFormat(fourcc: str, bits_per_pixel: int = 0, width: int = 0, height: int = 0, stride: int = 0)
Parameters
Name | Description |
---|---|
fourcc
Required
|
Specifies the FOURCC character string. |
bits_per_pixel
|
The image format's bits per pixel (e.g. 8, 16, 24, 32, ...). Default value: 0
|
width
|
The image format's pixel width. Default value: 0
|
height
|
The image format's pixel height. Default value: 0
|
stride
|
The image format's pixel stride. Default value: 0
|
Attributes
bits_per_pixel
Gets the image format's bits per pixel value.
fourcc
Gets the image format's FOURCC value
height
Gets the image format's pixel height.
properties
A collection of properties and their values defined for this FrameFormat.
stride
Gets the image format's pixel stride.
width
Gets the image format's pixel width.