pub unsafe extern "C" fn sws_setColorspaceDetails(
c: *mut SwsContext,
inv_table: *const c_int,
srcRange: c_int,
table: *const c_int,
dstRange: c_int,
brightness: c_int,
contrast: c_int,
saturation: c_int,
) -> c_int展开描述
@param c the scaling context @param dstRange flag indicating the white-black range of the output (1=jpeg / 0=mpeg) @param srcRange flag indicating the white-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.