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, (ci - offseti) / scalei will scale the component ci to the range 0.0 .. 1.0.

The reverse operation (ci * scalei) + offseti 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