Function av_channel_name

Source
pub unsafe extern "C" fn av_channel_name(
    buf: *mut i8,
    buf_size: usize,
    channel: i32,
) -> i32
Expand description

Get a human readable string in an abbreviated form describing a given channel. This is the inverse function of @ref av_channel_from_string().

@param buf pre-allocated buffer where to put the generated string @param buf_size size in bytes of the buffer. @param channel the AVChannel whose name to get @return amount of bytes needed to hold the output string, or a negative AVERROR on failure. If the returned value is bigger than buf_size, then the string was truncated.