GstVideo.VideoFormatInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
bits |
r/w |
The number of bits used to pack data items. This can be less than 8 when multiple pixels are stored in a byte. for values > 8 multiple bytes should be read according to the endianness flag before applying the shift and mask. |
|
depth |
[ |
r/w |
the depth in bits for each component |
description |
r/w |
use readable description of the format |
|
flags |
r/w |
||
format |
r/w |
||
h_sub |
[ |
r/w |
subsampling factor of the height for the component. Use GST_VIDEO_SUB_SCALE to scale a height. |
n_components |
r/w |
the number of components in the video format. |
|
n_planes |
r/w |
the number of planes for this format. The number of planes can be less than the amount of components when multiple components are packed into one plane. |
|
name |
r/w |
string representation of the format |
|
pack_func |
r/w |
an pack function for this format |
|
pack_lines |
r/w |
the amount of lines that will be packed |
|
pixel_stride |
[ |
r/w |
the pixel stride of each component. This is the amount of bytes to the pixel immediately to the right. When bits < 8, the stride is expressed in bits. For 24-bit RGB, this would be 3 bytes, for example, while it would be 4 bytes for RGBx or ARGB. |
plane |
[ |
r/w |
the plane number where a component can be found |
poffset |
[ |
r/w |
the offset in the plane where the first pixel of the components can be found. |
shift |
[ |
r/w |
the number of bits to shift away to get the component data |
tile_hs |
r/w |
The height of a tile, in bytes, represented as a shift. DEPREACTED, use tile_info[] array instead. |
|
tile_info |
r/w |
Information about the tiles for each of the planes. |
|
tile_mode |
r/w |
The tiling mode |
|
tile_ws |
r/w |
The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead. |
|
unpack_format |
r/w |
the format of the unpacked pixels. This format must have the |
|
unpack_func |
r/w |
an unpack function for this format |
|
w_sub |
[ |
r/w |
subsampling factor of the width for the component. Use GST_VIDEO_SUB_SCALE to scale a width. |
Methods¶
|
|
|
Details¶
- class GstVideo.VideoFormatInfo¶
Information for a video format.
- component(plane)[source]¶
- Parameters:
plane (
int
) – a plane number- Returns:
array used to store component numbers
- Return type:
components:
int
Fill components with the number of all the components packed in plane p for the format self. A value of -1 in components indicates that no more components are packed in the plane.
New in version 1.18.