[−][src]Trait av_metrics::video::Decoder
A trait for allowing metrics to decode generic video formats.
Currently, y4m decoding support using the y4m
crate is built-in
to this crate. This trait is extensible so users may implement
their own decoders.
Required methods
fn read_video_frame<T: Pixel>(&mut self) -> Result<FrameInfo<T>, ()>
Read the next frame from the input video.
Expected to return Err
if the end of the video is reached.
fn read_specific_frame<T: Pixel>(
&mut self,
frame_number: usize
) -> Result<FrameInfo<T>, ()>
&mut self,
frame_number: usize
) -> Result<FrameInfo<T>, ()>
Read a specific frame from the input video
Expected to return Err
if the frame is not found.
fn get_bit_depth(&self) -> usize
Get the bit depth of the video.
fn get_video_details(&self) -> VideoDetails
Get the Video Details
Implementations on Foreign Types
impl<R: Read + Send + Sync> Decoder for Decoder<R>
[src]
fn get_video_details(&self) -> VideoDetails
[src]
fn read_video_frame<T: Pixel>(&mut self) -> Result<FrameInfo<T>, ()>
[src]
fn read_specific_frame<T: Pixel>(
&mut self,
frame_number: usize
) -> Result<FrameInfo<T>, ()>
[src]
&mut self,
frame_number: usize
) -> Result<FrameInfo<T>, ()>