pub struct Decoder<TReader: Read + Seek> { /* private fields */ }Implementations§
Source§impl<TReader: Read + Seek> Decoder<TReader>
impl<TReader: Read + Seek> Decoder<TReader>
pub fn new( reader: TReader, num_threads: usize, ) -> Result<Decoder<TReader>, DecodeError>
pub fn width(self: &Decoder<TReader>) -> usize
pub fn height(self: &Decoder<TReader>) -> usize
pub fn framerate(self: &Decoder<TReader>) -> u32
pub fn reset(self: &mut Decoder<TReader>) -> Result<(), Error>
pub fn advance_delta<FV>(
self: &mut Decoder<TReader>,
delta: f64,
onvideo: &mut FV,
) -> Result<bool, Error>where
FV: FnMut(&VideoFrame),
pub fn advance_frame<FV>(
self: &mut Decoder<TReader>,
onvideo: &mut FV,
) -> Result<bool, Error>where
FV: FnMut(&VideoFrame),
Auto Trait Implementations§
impl<TReader> Freeze for Decoder<TReader>where
TReader: Freeze,
impl<TReader> !RefUnwindSafe for Decoder<TReader>
impl<TReader> Send for Decoder<TReader>where
TReader: Send,
impl<TReader> Sync for Decoder<TReader>where
TReader: Sync,
impl<TReader> Unpin for Decoder<TReader>where
TReader: Unpin,
impl<TReader> !UnwindSafe for Decoder<TReader>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more