VideoColorimetry

Structure describing the color info.

Members

Functions

fromString
bool fromString(string color)

Parse the colorimetry string and update cinfo with the parsed values.

isEqual
bool isEqual(gstvideo.video_colorimetry.VideoColorimetry other)

Compare the 2 colorimetry sets for equality

isEquivalent
bool isEquivalent(uint bitdepth, gstvideo.video_colorimetry.VideoColorimetry other, uint otherBitdepth)

Compare the 2 colorimetry sets for functionally equality

matches
bool matches(string color)

Check if the colorimetry information in info matches that of the string color.

toString_
string toString_()

Make a string representation of cinfo.

Variables

matrix
VideoColorMatrix matrix;

the color matrix. Used to convert between Y'PbPr and non-linear RGB (R'G'B')

primaries
VideoColorPrimaries primaries;

color primaries. used to convert between R'G'B' and CIE XYZ

range
VideoColorRange range;

the color range. This is the valid range for the samples. It is used to convert the samples to Y'PbPr values.

transfer
VideoTransferFunction transfer;

the transfer function. used to convert between R'G'B' and RGB