GstVideo.VideoColorimetry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
matrix |
r/w |
the color matrix. Used to convert between Y’PbPr and non-linear RGB (R’G’B’) |
|
primaries |
r/w |
color primaries. used to convert between R’G’B’ and CIE XYZ |
|
range |
r/w |
the color range. This is the valid range for the samples. It is used to convert the samples to Y’PbPr values. |
|
transfer |
r/w |
the transfer function. used to convert between R’G’B’ and RGB |
Methods¶
|
|
|
|
|
|
|
|
|
Details¶
- class GstVideo.VideoColorimetry¶
Structure describing the color info.
- from_string(color)[source]¶
- Parameters:
color (
str
) – a colorimetry string- Returns:
True
if color points to valid colorimetry info.- Return type:
Parse the colorimetry string and update self with the parsed values.
- is_equal(other)[source]¶
- Parameters:
other (
GstVideo.VideoColorimetry
) – anotherGstVideo.VideoColorimetry
- Returns:
True
if self and other are equal.- Return type:
Compare the 2 colorimetry sets for equality
New in version 1.6.
- is_equivalent(bitdepth, other, other_bitdepth)[source]¶
- Parameters:
bitdepth (
int
) – bitdepth of a format associated with selfother (
GstVideo.VideoColorimetry
) – anotherGstVideo.VideoColorimetry
other_bitdepth (
int
) – bitdepth of a format associated with other
- Returns:
True
if self and other are equivalent.- Return type:
Compare the 2 colorimetry sets for functionally equality
New in version 1.22.