Video Settings¶
Enumerations for video format and display settings.
ColorFormat¶
- class avblocks.ColorFormat(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
IntEnumDefines constants for various color formats.
A color format is combination of color space, color depth, chroma sub-sampling, component layout and packing.
- BGR24 = 12¶
Composite B->G->R
- BGR32 = 11¶
Composite B->G->R
- BGR444 = 15¶
Composite B->G->R->A, 4 bit per component
- BGR555 = 14¶
Composite B->G->R->A, 5 bit per component, 1 bit per A
- BGR565 = 13¶
Composite B->G->R, 5 bit per B & R, 6 bit per G
- BGRA32 = 21¶
Composite B->G->R->A
- GRAY = 16¶
Luminance component only.
- NV12 = 2¶
- Type:
Planar Y, merged U->V (4
- Type:
2
- UYVY = 4¶
- Type:
Composite U->Y->V->Y (4
- Type:
2
- Unknown = 0¶
The color format is not specified or unknown.
- Y411 = 9¶
- Type:
Composite Y, U, V (4
- Type:
1
- Y41P = 10¶
- Type:
Composite Y, U, V (4
- Type:
1
- YUV411 = 5¶
- Type:
Planar Y, U, V (4
- Type:
1
- YUV420 = 6¶
- Type:
Planar Y, U, V (4
- Type:
2
- YUV420A = 17¶
Planar Y, U, V, Alpha
- YUV422 = 7¶
- Type:
Planar Y, U, V (4
- Type:
2
- YUV422A = 18¶
Planar Y, U, V, Alpha
- YUV444 = 8¶
- Type:
Planar Y, U, V (4
- Type:
4
- YUV444A = 19¶
Planar Y, U, V, Alpha
- YUY2 = 3¶
- Type:
Composite Y->U->Y->V (4
- Type:
2
- YV12 = 1¶
(note V,U order!)
- Type:
Planar Y, V, U (4
- Type:
2
- YVU9 = 20¶
The vertical subsampling interval is 4. The horizontal subsampling interval is also 4 This means that a single V and a single U sample are taken for each square block of 16 image pixels. Effectively this averages 9 bits per pixel (16 pixels => 16Y + 1V + 1U => 144bits => 9bits/pixel)
ScanType¶
- class avblocks.ScanType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
IntEnumDefines video interlace/scan types.
- BottomFieldFirst = 3¶
Interlaced video, where the dominant (first in time) field is the bottom field.
- Progressive = 1¶
Progressive (non-interlaced) video.
- TopFieldFirst = 2¶
Interlaced video, where the dominant (first in time) field is the top field.
- Unknown = 0¶
The interlace/scan type is not specified or not known.