VideoTransferFunction.isEquivalent

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.

struct VideoTransferFunction
static
bool
isEquivalent

Parameters

fromFunc gstvideo.types.VideoTransferFunction

#GstVideoTransferFunction to convert from

fromBpp uint

bits per pixel to convert from

toFunc gstvideo.types.VideoTransferFunction

#GstVideoTransferFunction to convert into

toBpp uint

bits per pixel to convert into

Return Value

Type: bool

TRUE if from_func and to_func can be considered equivalent.