[][src]Struct ac_ffmpeg::codec::bsf::BitstreamFilter

pub struct BitstreamFilter { /* fields omitted */ }

A bitstream filter.

Filter operation

  1. Push a packet to the filter.
  2. Take all packets from the filter until you get None.
  3. If there are more packets to be processed, continue with 1.
  4. Flush the filter.
  5. Take all packets from the filter until you get None.

Implementations

impl BitstreamFilter[src]

pub fn builder(name: &str) -> Result<BitstreamFilterBuilder, Error>[src]

Get a builder for a given bitstream filter.

Example

...

let filter = BitstreamFilter::builder("aac_adtstoasc")?
    .input_codec_parameters(&params)
    .build()?;

...

pub fn push(&mut self, packet: Packet) -> Result<(), Error>[src]

Push a given packet to the filter.

pub fn flush(&mut self) -> Result<(), Error>[src]

Flush the filter.

pub fn take(&mut self) -> Result<Option<Packet>, Error>[src]

Take the next packet from the bitstream filter.

Trait Implementations

impl Drop for BitstreamFilter[src]

impl Send for BitstreamFilter[src]

impl Sync for BitstreamFilter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.