Struct AVAudioResampleContext

Source
#[repr(C)]
pub struct AVAudioResampleContext {
Show 44 fields pub av_class: *const AVClass, pub in_channel_layout: u64, pub in_sample_fmt: AVSampleFormat, pub in_sample_rate: c_int, pub out_channel_layout: u64, pub out_sample_fmt: AVSampleFormat, pub out_sample_rate: c_int, pub internal_sample_fmt: AVSampleFormat, pub mix_coeff_type: AVMixCoeffType, pub center_mix_level: f64, pub surround_mix_level: f64, pub lfe_mix_level: f64, pub normalize_mix_level: c_int, pub force_resampling: c_int, pub filter_size: c_int, pub phase_shift: c_int, pub linear_interp: c_int, pub cutoff: f64, pub filter_type: AVResampleFilterType, pub kaiser_beta: c_int, pub dither_method: AVResampleDitherMethod, pub in_channels: c_int, pub out_channels: c_int, pub resample_channels: c_int, pub downmix_needed: c_int, pub upmix_needed: c_int, pub mixing_needed: c_int, pub resample_needed: c_int, pub in_convert_needed: c_int, pub out_convert_needed: c_int, pub in_copy_needed: c_int, pub in_buffer: *mut AudioData, pub resample_out_buffer: *mut AudioData, pub out_buffer: *mut AudioData, pub out_fifo: *mut AVAudioFifo, pub ac_in: *mut AudioConvert, pub ac_out: *mut AudioConvert, pub resample: *mut ResampleContext, pub am: *mut AudioMix, pub matrix_encoding: AVMatrixEncoding, pub mix_matrix: *mut f64, pub use_channel_map: c_int, pub remap_point: RemapPoint, pub ch_map_info: ChannelMapInfo,
}

Fields§

§av_class: *const AVClass

< AVClass for logging and AVOptions

§in_channel_layout: u64

< input channel layout

§in_sample_fmt: AVSampleFormat

< input sample format

§in_sample_rate: c_int

< input sample rate

§out_channel_layout: u64

< output channel layout

§out_sample_fmt: AVSampleFormat

< output sample format

§out_sample_rate: c_int

< output sample rate

§internal_sample_fmt: AVSampleFormat

< internal sample format

§mix_coeff_type: AVMixCoeffType

< mixing coefficient type

§center_mix_level: f64

< center mix level

§surround_mix_level: f64

< surround mix level

§lfe_mix_level: f64

< lfe mix level

§normalize_mix_level: c_int

< enable mix level normalization

§force_resampling: c_int

< force resampling

§filter_size: c_int

< length of each FIR filter in the resampling filterbank relative to the cutoff frequency

§phase_shift: c_int

< log2 of the number of entries in the resampling polyphase filterbank

§linear_interp: c_int

< if 1 then the resampling FIR filter will be linearly interpolated

§cutoff: f64

< resampling cutoff frequency. 1.0 corresponds to half the output sample rate

§filter_type: AVResampleFilterType

< resampling filter type

§kaiser_beta: c_int

< beta value for Kaiser window (only applicable if filter_type == AV_FILTER_TYPE_KAISER)

§dither_method: AVResampleDitherMethod

< dither method

§in_channels: c_int

< number of input channels

§out_channels: c_int

< number of output channels

§resample_channels: c_int

< number of channels used for resampling

§downmix_needed: c_int

< downmixing is needed

§upmix_needed: c_int

< upmixing is needed

§mixing_needed: c_int

< either upmixing or downmixing is needed

§resample_needed: c_int

< resampling is needed

§in_convert_needed: c_int

< input sample format conversion is needed

§out_convert_needed: c_int

< output sample format conversion is needed

§in_copy_needed: c_int

< input data copy is needed

§in_buffer: *mut AudioData

< buffer for converted input

§resample_out_buffer: *mut AudioData

< buffer for output from resampler

§out_buffer: *mut AudioData

< buffer for converted output

§out_fifo: *mut AVAudioFifo

< FIFO for output samples

§ac_in: *mut AudioConvert

< input sample format conversion context

§ac_out: *mut AudioConvert

< output sample format conversion context

§resample: *mut ResampleContext

< resampling context

§am: *mut AudioMix

< channel mixing context

§matrix_encoding: AVMatrixEncoding

< matrixed stereo encoding

§mix_matrix: *mut f64

mix matrix only used if avresample_set_matrix() is called before avresample_open()

§use_channel_map: c_int§remap_point: RemapPoint§ch_map_info: ChannelMapInfo

Trait Implementations§

Source§

impl Clone for AVAudioResampleContext

Source§

fn clone(&self) -> AVAudioResampleContext

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AVAudioResampleContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for AVAudioResampleContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.