pub struct AudioEncoderSettings {Show 14 fields
pub sample_rate: i32,
pub channel_layout: u64,
pub channel_count: i32,
pub sample_fmt: AVSampleFormat,
pub thread_count: Option<i32>,
pub thread_type: Option<i32>,
pub bitrate: Option<i64>,
pub buffer_size: Option<i64>,
pub rc_min_rate: Option<i64>,
pub rc_max_rate: Option<i64>,
pub rc_buffer_size: Option<i32>,
pub codec_specific_options: Option<Dictionary>,
pub flags: Option<i32>,
pub flags2: Option<i32>,
}
Fields§
§sample_rate: i32
§channel_layout: u64
§channel_count: i32
§sample_fmt: AVSampleFormat
§thread_count: Option<i32>
§thread_type: Option<i32>
§bitrate: Option<i64>
§buffer_size: Option<i64>
§rc_min_rate: Option<i64>
§rc_max_rate: Option<i64>
§rc_buffer_size: Option<i32>
§codec_specific_options: Option<Dictionary>
§flags: Option<i32>
§flags2: Option<i32>
Implementations§
Source§impl AudioEncoderSettings
impl AudioEncoderSettings
pub fn builder( sample_rate: i32, channel_layout: u64, channel_count: i32, sample_fmt: AVSampleFormat, ) -> AudioEncoderBuilder
Trait Implementations§
Source§impl Clone for AudioEncoderSettings
impl Clone for AudioEncoderSettings
Source§fn clone(&self) -> AudioEncoderSettings
fn clone(&self) -> AudioEncoderSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioEncoderSettings
impl Debug for AudioEncoderSettings
Source§impl Default for AudioEncoderSettings
impl Default for AudioEncoderSettings
Source§impl From<AudioEncoderSettings> for EncoderSettings
impl From<AudioEncoderSettings> for EncoderSettings
Source§fn from(settings: AudioEncoderSettings) -> Self
fn from(settings: AudioEncoderSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioEncoderSettings
impl RefUnwindSafe for AudioEncoderSettings
impl Send for AudioEncoderSettings
impl !Sync for AudioEncoderSettings
impl Unpin for AudioEncoderSettings
impl UnwindSafe for AudioEncoderSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more