VideoColorRange.offsets

void offsets(gstvideo.types.VideoColorRange range, gstvideo.video_format_info.VideoFormatInfo info, ref int[] offset, ref int[] scale)

Compute the offset and scale values for each component of info. For each component, (c[i] - offset[i]) / scale[i] will scale the component c[i] to the range [0.0 .. 1.0].

The reverse operation (c[i] * scale[i]) + offset[i] can be used to convert the component values in range [0.0 .. 1.0] back to their representation in info and range.

Parameters

rangea #GstVideoColorRange
infoa #GstVideoFormatInfo
offsetoutput offsets
scaleoutput scale