VideoTransferFunction.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.
Parameters
fromFunc | #GstVideoTransferFunction to convert from |
fromBpp | bits per pixel to convert from |
toFunc | #GstVideoTransferFunction to convert into |
toBpp | bits per pixel to convert into |
Returns
TRUE if from_func and to_func can be considered equivalent.