Function compute_distortion

Source
fn compute_distortion<T: Pixel>(
    fi: &FrameInvariants<T>,
    ts: &TileStateMut<'_, T>,
    bsize: BlockSize,
    is_chroma_block: bool,
    tile_bo: TileBlockOffset,
    luma_only: bool,
) -> ScaledDistortion