Skip to main content

EncoderConfig

Struct EncoderConfig 

Source
pub struct EncoderConfig {
Show 38 fields pub profile: Profile, pub sample_rate: u32, pub native_sample_rate: Option<u32>, pub channels: u16, pub channel_mask: u32, pub num_coupling_channels: u16, pub bitrate: u32, pub pcm_word_size: u16, pub frame_length: Option<u16>, pub output_format: OutputFormat, pub bandwidth: Option<u32>, pub dual_mono: bool, pub use_tns: bool, pub noise_filling: bool, pub full_bandwidth: bool, pub private_bit: bool, pub copyright_bit: bool, pub original_copy_bit: bool, pub no_stereo_preprocessing: bool, pub use_mps: bool, pub mps_tree_config: Option<i32>, pub complex_prediction: bool, pub bit_reservoir_size: Option<i32>, pub inverse_quantization: InverseQuantizationMode, pub enable_esbr: Option<bool>, pub high_quality_esbr: bool, pub pvc: bool, pub harmonic_sbr: bool, pub inter_tes: bool, pub usac_mode: UsacCodecMode, pub usac_frame_length_index: UsacFrameLengthIndex, pub random_access_interval_ms: i32, pub stream_id: u16, pub use_delay_adjustment: bool, pub write_program_config_element: bool, pub measured_loudness: Option<f64>, pub sample_peak_level: Option<f32>, pub drc: Option<EncoderDrcConfig>,
}

Fields§

§profile: Profile§sample_rate: u32§native_sample_rate: Option<u32>§channels: u16§channel_mask: u32§num_coupling_channels: u16§bitrate: u32§pcm_word_size: u16§frame_length: Option<u16>§output_format: OutputFormat§bandwidth: Option<u32>§dual_mono: bool§use_tns: bool§noise_filling: bool§full_bandwidth: bool§private_bit: bool§copyright_bit: bool§original_copy_bit: bool§no_stereo_preprocessing: bool§use_mps: bool§mps_tree_config: Option<i32>§complex_prediction: bool§bit_reservoir_size: Option<i32>§inverse_quantization: InverseQuantizationMode§enable_esbr: Option<bool>§high_quality_esbr: bool§pvc: bool§harmonic_sbr: bool§inter_tes: bool§usac_mode: UsacCodecMode§usac_frame_length_index: UsacFrameLengthIndex§random_access_interval_ms: i32§stream_id: u16§use_delay_adjustment: bool§write_program_config_element: bool§measured_loudness: Option<f64>§sample_peak_level: Option<f32>§drc: Option<EncoderDrcConfig>

Trait Implementations§

Source§

impl Clone for EncoderConfig

Source§

fn clone(&self) -> EncoderConfig

Returns a duplicate 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 EncoderConfig

Source§

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

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

impl Default for EncoderConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.