[][src]Function ffmpeg_sys_next::av_get_pix_fmt

pub unsafe extern "C" fn av_get_pix_fmt(name: *const c_char) -> AVPixelFormat

Return the pixel format corresponding to name.

If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for "gray16", then for "gray16le".

Finally if no pixel format has been found, returns AV_PIX_FMT_NONE.