Function sws_setColorspaceDetails

pub unsafe extern "C" fn sws_setColorspaceDetails(
    c: *mut SwsContext,
    inv_table: *const i32,
    srcRange: i32,
    table: *const i32,
    dstRange: i32,
    brightness: i32,
    contrast: i32,
    saturation: i32,
) -> i32
Expand description

@param c the scaling context @param dstRange flag indicating the while-black range of the output (1=jpeg / 0=mpeg) @param srcRange flag indicating the while-black range of the input (1=jpeg / 0=mpeg) @param table the yuv2rgb coefficients describing the output yuv space, normally ff_yuv2rgb_coeffs[x] @param inv_table the yuv2rgb coefficients describing the input yuv space, normally ff_yuv2rgb_coeffs[x] @param brightness 16.16 fixed point brightness correction @param contrast 16.16 fixed point contrast correction @param saturation 16.16 fixed point saturation correction

@return A negative error code on error, non negative otherwise. If LIBSWSCALE_VERSION_MAJOR < 7, returns -1 if not supported.