[−][src]Struct ac_ffmpeg::codec::audio::AudioEncoderBuilder
Builder for the audio encoder.
Implementations
impl AudioEncoderBuilder
[src]
pub fn set_option<V>(self, name: &str, value: V) -> Self where
V: ToString,
[src]
V: ToString,
Set an encoder option.
pub fn bit_rate(self, bit_rate: u64) -> Self
[src]
Set encoder bit rate. The default is 0 (i.e. automatic).
pub fn time_base(self, time_base: TimeBase) -> Self
[src]
Set encoder time base. The default time base is in microseconds.
pub fn sample_format(self, format: SampleFormat) -> Self
[src]
Set audio sample format.
pub fn sample_rate(self, rate: u32) -> Self
[src]
Set sampling rate.
pub fn channel_layout(self, layout: ChannelLayout) -> Self
[src]
Set channel layout.
pub fn build(self) -> Result<AudioEncoder, Error>
[src]
Build the encoder.
Trait Implementations
impl Drop for AudioEncoderBuilder
[src]
impl Send for AudioEncoderBuilder
[src]
impl Sync for AudioEncoderBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for AudioEncoderBuilder
impl Unpin for AudioEncoderBuilder
impl UnwindSafe for AudioEncoderBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,