VideoTransferFunction.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].
For a non-linear value L' in the range [0..1], conversion to the linear L is in general performed with a power function like:
L = L' ^ gammaDepending on func, different formulas might be applied. Some formulas encode a linear segment in the lower range.
Parameters
func | a #GstVideoTransferFunction |
val | a value |
Returns
the gamma decoded value of val