Skip to main content

yuv_limited_to_rgb

Function yuv_limited_to_rgb 

Source
pub fn yuv_limited_to_rgb(
    y: u8,
    cb: u8,
    cr: u8,
    matrix: VideoTransferMatrix,
) -> [u8; 3]
Expand description

Convert one studio-range Y’CbCr sample to 8-bit RGB using the selected transfer matrix. The integer form intentionally preserves the decoder’s existing BT.601 rounding convention while adding the corresponding BT.709 coefficients.