VideoTransferFunction.encode

Convert val to its gamma encoded value.

For a linear value L in the range [0..1], conversion to the non-linear (gamma encoded) L' is in general performed with a power function like:

L' = L ^ (1 / gamma)

Depending on func, different formulas might be applied. Some formulas encode a linear segment in the lower range.

struct VideoTransferFunction
static
double
encode

Parameters

func gstvideo.types.VideoTransferFunction

a #GstVideoTransferFunction

val double

a value

Return Value

Type: double

the gamma encoded value of val