Skip to main content

sws_test_format

Function sws_test_format 

Source
pub unsafe extern "C" fn sws_test_format(
    format: AVPixelFormat,
    output: c_int,
) -> c_int
Expand description

Test if a given pixel format is supported.

@param output If 0, test if compatible with the source/input frame; otherwise, with the destination/output frame. @param format The format to check.

@return A positive integer if supported, 0 otherwise.