GstVideo.VideoMasteringDisplayInfo¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
display_primaries |
r/w |
the xy coordinates of primaries in the CIE 1931 color space. the index 0 contains red, 1 is for green and 2 is for blue. each value is normalized to 50000 (meaning that in unit of 0.00002) |
|
max_display_mastering_luminance |
r/w |
the maximum value of display luminance in unit of 0.0001 candelas per square metre (cd/m^2 and nit) |
|
min_display_mastering_luminance |
r/w |
the minimum value of display luminance in unit of 0.0001 candelas per square metre (cd/m^2 and nit) |
|
white_point |
r/w |
the xy coordinates of white point in the CIE 1931 color space. each value is normalized to 50000 (meaning that in unit of 0.00002) |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstVideo.VideoMasteringDisplayInfo¶
Mastering display color volume information defined by SMPTE ST 2086 (a.k.a static HDR metadata).
New in version 1.18.
- classmethod from_string(mastering)[source]¶
- Parameters:
mastering (
str) – aGst.StructurerepresentingGstVideo.VideoMasteringDisplayInfo- Returns:
Trueif minfo was filled with mastering- minfo:
- Return type:
(
bool, minfo:GstVideo.VideoMasteringDisplayInfo)
Extract
GstVideo.VideoMasteringDisplayInfofrom masteringNew in version 1.18.
- add_to_caps(caps)[source]¶
- Parameters:
- Returns:
Trueif self was successfully set to caps- Return type:
Set string representation of self to caps
New in version 1.18.
- from_caps(caps)[source]¶
- Parameters:
- Returns:
Trueif caps hasGstVideo.VideoMasteringDisplayInfoand could be parsed- Return type:
Parse caps and update self
New in version 1.18.
- is_equal(other)[source]¶
- Parameters:
other (
GstVideo.VideoMasteringDisplayInfo) – aGstVideo.VideoMasteringDisplayInfo- Returns:
Trueif self and other are equal.- Return type:
Checks equality between self and other.
New in version 1.18.