is_equivalent


Description:

[ Version ( since = "1.18" ) ]
public bool is_equivalent (uint from_bpp, TransferFunction to_func, uint to_bpp)

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:

from_bpp

bits per pixel to convert from

to_func

TransferFunction to convert into

to_bpp

bits per pixel to convert into

from_func

TransferFunction to convert from

Returns:

TRUE if from_func and to_func can be considered equivalent.