Struct ffmpeg_next::software::resampling::context::Context
source · pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
sourcepub fn get(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32
) -> Result<Self, Error>
pub fn get( src_format: Sample, src_channel_layout: ChannelLayout, src_rate: u32, dst_format: Sample, dst_channel_layout: ChannelLayout, dst_rate: u32 ) -> Result<Self, Error>
Create a resampler with the given definitions.
sourcepub fn get_with(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32,
options: Dictionary<'_>
) -> Result<Self, Error>
pub fn get_with( src_format: Sample, src_channel_layout: ChannelLayout, src_rate: u32, dst_format: Sample, dst_channel_layout: ChannelLayout, dst_rate: u32, options: Dictionary<'_> ) -> Result<Self, Error>
Create a resampler with the given definitions and custom options dictionary.
sourcepub fn input(&self) -> &Definition
pub fn input(&self) -> &Definition
Get the input definition.
sourcepub fn output(&self) -> &Definition
pub fn output(&self) -> &Definition
Get the output definition.