GstVideo.VideoMasteringDisplayInfo

Fields

Name

Type

Access

Description

display_primaries

[GstVideo.VideoMasteringDisplayInfoCoordinates]

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

int

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

int

r/w

the minimum value of display luminance in unit of 0.0001 candelas per square metre (cd/m^2 and nit)

white_point

GstVideo.VideoMasteringDisplayInfoCoordinates

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

from_string (mastering)

add_to_caps (caps)

from_caps (caps)

init ()

is_equal (other)

to_string ()

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)
Parameters:

mastering (str) – a Gst.Structure representing GstVideo.VideoMasteringDisplayInfo

Returns:

True if minfo was filled with mastering

minfo:

a GstVideo.VideoMasteringDisplayInfo

Return type:

(bool, minfo: GstVideo.VideoMasteringDisplayInfo)

Extract GstVideo.VideoMasteringDisplayInfo from mastering

New in version 1.18.

add_to_caps(caps)
Parameters:

caps (Gst.Caps) – a Gst.Caps

Returns:

True if self was successfully set to caps

Return type:

bool

Set string representation of self to caps

New in version 1.18.

from_caps(caps)
Parameters:

caps (Gst.Caps) – a Gst.Caps

Returns:

True if caps has GstVideo.VideoMasteringDisplayInfo and could be parsed

Return type:

bool

Parse caps and update self

New in version 1.18.

init()

Initialize self

New in version 1.18.

is_equal(other)
Parameters:

other (GstVideo.VideoMasteringDisplayInfo) – a GstVideo.VideoMasteringDisplayInfo

Returns:

True if self and other are equal.

Return type:

bool

Checks equality between self and other.

New in version 1.18.

to_string()
Returns:

a string representation of self

Return type:

str

Convert self to its string representation

New in version 1.18.