videolib.cvt_color.yuv2linear_yuv

yuv2linear_yuv(yuv, standard, range=None)[source]

Converts YUV to Linear YUV.

Parameters:
  • yuv (ndarray) – YUV array of shape (R, C, 3)

  • standard (Standard) – Color standard to which the data conforms.

  • range (Union[int, float, None]) – Range of pixel values (Default: None - inferred from standard).

Return type:

ndarray

Returns:

Linear YUV array of shape (R, C, 3)