[−][src]Struct ac_ffmpeg::codec::audio::AudioEncoder
Audio encoder.
Implementations
impl AudioEncoder[src]
pub fn from_codec_parameters(
codec_parameters: &AudioCodecParameters
) -> Result<AudioEncoderBuilder, Error>[src]
codec_parameters: &AudioCodecParameters
) -> Result<AudioEncoderBuilder, Error>
Create a new encoder builder from given codec parameters.
pub fn builder(codec: &str) -> Result<AudioEncoderBuilder, Error>[src]
Get encoder builder for a given codec.
pub fn samples_per_frame(&self) -> Option<usize>[src]
Number of samples per audio channel in an audio frame. Each encoded frame except the last one must contain exactly this number of samples. The method returns None if the number of samples per frame is not restricted.
Trait Implementations
impl Drop for AudioEncoder[src]
impl Encoder for AudioEncoder[src]
type CodecParameters = AudioCodecParameters
type Frame = AudioFrame
fn codec_parameters(&self) -> Self::CodecParameters[src]
fn try_push(&mut self, frame: AudioFrame) -> Result<(), CodecError>[src]
fn try_flush(&mut self) -> Result<(), CodecError>[src]
fn take(&mut self) -> Result<Option<Packet>, Error>[src]
fn push(&mut self, frame: Self::Frame) -> Result<(), Error>[src]
fn flush(&mut self) -> Result<(), Error>[src]
impl Send for AudioEncoder[src]
impl Sync for AudioEncoder[src]
Auto Trait Implementations
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,
pub 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.
pub 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>,