Function rsmpeg::ffi::av_get_sample_fmt_string[][src]

pub unsafe extern "C" fn av_get_sample_fmt_string(
    buf: *mut i8,
    buf_size: i32,
    sample_fmt: i32
) -> *mut i8
Expand description

Generate a string corresponding to the sample format with sample_fmt, or a header if sample_fmt is negative.

@param buf the buffer where to write the string @param buf_size the size of buf @param sample_fmt the number of the sample format to print the corresponding info string, or a negative value to print the corresponding header. @return the pointer to the filled buffer or NULL if sample_fmt is unknown or in case of other errors