Function rsmpeg::avutil::get_sample_fmt_name [−][src]
pub fn get_sample_fmt_name(sample_fmt: AVSampleFormat) -> Option<&'static CStr>
Expand description
Return the name of given sample_fmt, or None
if sample_fmt is not
recognized.
assert_eq!( CString::new("flt").ok().as_deref(), get_sample_fmt_name(AVSampleFormat_AV_SAMPLE_FMT_FLT) );