pub struct Av1Decoder { /* private fields */ }Expand description
AV1 decoder.
Implementations§
Source§impl Av1Decoder
impl Av1Decoder
Sourcepub fn new(config: DecoderConfig) -> CodecResult<Self>
pub fn new(config: DecoderConfig) -> CodecResult<Self>
Sourcepub fn current_frame_header(&self) -> Option<&FrameHeader>
pub fn current_frame_header(&self) -> Option<&FrameHeader>
Get the current frame header if available.
Sourcepub fn current_sequence_header(&self) -> Option<&SequenceHeader>
pub fn current_sequence_header(&self) -> Option<&SequenceHeader>
Get the current sequence header if available.
Sourcepub fn loop_filter_params(&self) -> &LoopFilterParams
pub fn loop_filter_params(&self) -> &LoopFilterParams
Get the current loop filter parameters.
Sourcepub fn cdef_params(&self) -> &CdefParams
pub fn cdef_params(&self) -> &CdefParams
Get the current CDEF parameters.
Sourcepub fn quantization_params(&self) -> &QuantizationParams
pub fn quantization_params(&self) -> &QuantizationParams
Get the current quantization parameters.
Sourcepub const fn frame_count(&self) -> u64
pub const fn frame_count(&self) -> u64
Get decoded frame count.
Trait Implementations§
Source§impl Debug for Av1Decoder
impl Debug for Av1Decoder
Source§impl VideoDecoder for Av1Decoder
impl VideoDecoder for Av1Decoder
Source§fn send_packet(&mut self, data: &[u8], pts: i64) -> CodecResult<()>
fn send_packet(&mut self, data: &[u8], pts: i64) -> CodecResult<()>
Send a compressed packet to the decoder. Read more
Source§fn receive_frame(&mut self) -> CodecResult<Option<VideoFrame>>
fn receive_frame(&mut self) -> CodecResult<Option<VideoFrame>>
Receive a decoded frame. Read more
Source§fn output_format(&self) -> Option<PixelFormat>
fn output_format(&self) -> Option<PixelFormat>
Get decoder output format.
Auto Trait Implementations§
impl Freeze for Av1Decoder
impl RefUnwindSafe for Av1Decoder
impl Send for Av1Decoder
impl Sync for Av1Decoder
impl Unpin for Av1Decoder
impl UnsafeUnpin for Av1Decoder
impl UnwindSafe for Av1Decoder
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