VideoTransferFunction

Namespace for VideoTransferFunction enum

Members

Static functions

decode
double decode(gstvideo.types.VideoTransferFunction func, double val)

Convert val to its gamma decoded value. This is the inverse operation of gstvideo.global.videoColorTransferEncode.

encode
double encode(gstvideo.types.VideoTransferFunction func, double val)

Convert val to its gamma encoded value.

fromIso
gstvideo.types.VideoTransferFunction fromIso(uint value)

Converts the value to the #GstVideoTransferFunction The transfer characteristics (TransferCharacteristics) value is defined by "ISO/IEC 23001-8 Section 7.2 Table 3" and "ITU-T H.273 Table 3". "H.264 Table E-4" and "H.265 Table E.4" share the identical values.

isEquivalent
bool isEquivalent(gstvideo.types.VideoTransferFunction fromFunc, uint fromBpp, gstvideo.types.VideoTransferFunction toFunc, uint toBpp)

Returns whether from_func and to_func are equivalent. There are cases (e.g. BT601, BT709, and BT2020_10) where several functions are functionally identical. In these cases, when doing conversion, we should consider them as equivalent. Also, BT2020_12 is the same as the aforementioned three for less than 12 bits per pixel.

toIso
uint toIso(gstvideo.types.VideoTransferFunction func)

Converts #GstVideoTransferFunction to the "transfer characteristics" (TransferCharacteristics) value defined by "ISO/IEC 23001-8 Section 7.2 Table 3" and "ITU-T H.273 Table 3". "H.264 Table E-4" and "H.265 Table E.4" share the identical values.