[−][src]Struct ac_ffmpeg::codec::bsf::BitstreamFilter
A bitstream filter.
Filter operation
- Push a packet to the filter.
- Take all packets from the filter until you get None.
- If there are more packets to be processed, continue with 1.
- Flush the filter.
- 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(¶ms)
.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
impl RefUnwindSafe for BitstreamFilter
impl Unpin for BitstreamFilter
impl UnwindSafe for BitstreamFilter
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>,