Enum Decoder
pub enum Decoder<R: Read>
Variants
-
Y4m(Decoder<R>)
Implementations
impl<R: Read> Decoder<R>
fn get_video_details(&self) -> Result<VideoDetails>Errors
- If using a Vapoursynth script that contains an unsupported video format.
fn read_video_frame<T: Pixel>(&mut self, video_details: &VideoDetails) -> Result<Frame<T>>Errors
- If a frame cannot be read.
Auto Trait Implementations
impl<R> Freeze for Decoder<R>
where
Decoder<R>: Freeze,
impl<R> RefUnwindSafe for Decoder<R>
where
Decoder<R>: RefUnwindSafe,
impl<R> Send for Decoder<R>
where
Decoder<R>: Send,
impl<R> Sync for Decoder<R>
where
Decoder<R>: Sync,
impl<R> Unpin for Decoder<R>
where
Decoder<R>: Unpin,
impl<R> UnsafeUnpin for Decoder<R>
where
Decoder<R>: UnsafeUnpin,
impl<R> UnwindSafe for Decoder<R>
where
Decoder<R>: UnwindSafe,
Blanket Implementations
impl<T> Any for Decoder<R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Decoder<R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Decoder<R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Decoder<R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for Decoder<R>
impl<T> Pointable for Decoder<R>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into<U> for Decoder<R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Decoder<R>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Decoder<R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>