pub struct Input<T: Send + Sync> { /* private fields */ }
Expand description
Represents an input stream.
Implementations§
Source§impl<T: Read + Send + Sync> Input<T>
impl<T: Read + Send + Sync> Input<T>
Sourcepub fn new(input: T) -> Result<Self, FfmpegError>
pub fn new(input: T) -> Result<Self, FfmpegError>
Creates a new Input
instance with default options.
Sourcepub fn with_options(
input: T,
options: &mut InputOptions<impl FnMut() -> bool>,
) -> Result<Self, FfmpegError>
pub fn with_options( input: T, options: &mut InputOptions<impl FnMut() -> bool>, ) -> Result<Self, FfmpegError>
Creates a new Input
instance with custom options.
Sourcepub fn seekable(input: T) -> Result<Self, FfmpegError>where
T: Seek,
pub fn seekable(input: T) -> Result<Self, FfmpegError>where
T: Seek,
Creates a new Input
instance with seekable options.
Sourcepub fn seekable_with_options(
input: T,
options: InputOptions<impl FnMut() -> bool>,
) -> Result<Self, FfmpegError>where
T: Seek,
pub fn seekable_with_options(
input: T,
options: InputOptions<impl FnMut() -> bool>,
) -> Result<Self, FfmpegError>where
T: Seek,
Creates a new Input
instance with seekable options.
Source§impl<T: Send + Sync> Input<T>
impl<T: Send + Sync> Input<T>
Sourcepub const fn as_ptr(&self) -> *const AVFormatContext
pub const fn as_ptr(&self) -> *const AVFormatContext
Returns a constant pointer to the input stream.
Sourcepub const fn as_mut_ptr(&mut self) -> *mut AVFormatContext
pub const fn as_mut_ptr(&mut self) -> *mut AVFormatContext
Returns a mutable pointer to the input stream.
Sourcepub const fn streams_mut(&mut self) -> Streams<'_>
pub const fn streams_mut(&mut self) -> Streams<'_>
Returns a mutable reference to the streams of the input stream.
Sourcepub fn receive_packet(&mut self) -> Result<Option<Packet>, FfmpegError>
pub fn receive_packet(&mut self) -> Result<Option<Packet>, FfmpegError>
Receives a packet from the input stream.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Input<T>
impl<T> RefUnwindSafe for Input<T>where
T: RefUnwindSafe,
impl<T> !Sync for Input<T>
impl<T> Unpin for Input<T>
impl<T> UnwindSafe for Input<T>where
T: UnwindSafe,
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