Function rsmpeg::avutil::get_packed_sample_fmt [−][src]
pub fn get_packed_sample_fmt(
sample_fmt: AVSampleFormat
) -> Option<AVSampleFormat>
Expand description
Get the packed alternative form of the given sample format, return None
on
error.
i.e. AV_SAMPLE_FMT_S16P
=> AV_SAMPLE_FMT_S16
assert_eq!( Some(AVSampleFormat_AV_SAMPLE_FMT_S16), get_packed_sample_fmt(AVSampleFormat_AV_SAMPLE_FMT_S16P) );