Function colorutils_rs::linear_to_bgr
source · pub fn linear_to_bgr(
src: &[f32],
src_stride: u32,
dst: &mut [u8],
dst_stride: u32,
width: u32,
height: u32,
transfer_function: TransferFunction,
)Expand description
This function converts Linear BGR to Gamma BGR. This is much more effective than naive direct transformation
§Arguments
src- A slice contains Linear BGR datasrc_stride- Bytes per row for src data.dst- A mutable slice to receive BGR datadst_stride- Bytes per row for dst datawidth- Image widthheight- Image heighttransfer_function- Transfer function from gamma to linear space. If you don’t have specific pickSrgb