pub struct H265Decoder { /* private fields */ }Expand description
H.265 / HEVC Annex B streaming decoder.
Trait Implementations§
Source§impl Debug for H265Decoder
impl Debug for H265Decoder
Source§impl Decoder for H265Decoder
impl Decoder for H265Decoder
Source§fn send_packet(&mut self, packet: &Packet) -> Result<()>
fn send_packet(&mut self, packet: &Packet) -> Result<()>
Feed one compressed packet. May or may not produce a frame immediately —
call
receive_frame in a loop afterwards.Source§fn receive_frame(&mut self) -> Result<Frame>
fn receive_frame(&mut self) -> Result<Frame>
Pull the next decoded frame, if any. Returns
Error::NeedMore when the
decoder needs another packet.Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Signal end-of-stream. After this,
receive_frame will drain buffered
frames and eventually return Error::Eof.Source§fn receive_arena_frame(&mut self) -> Result<Arc<FrameInner>, Error>
fn receive_arena_frame(&mut self) -> Result<Arc<FrameInner>, Error>
Pull the next decoded frame as an arena-backed
arena::sync::Frame. Read moreSource§fn reset(&mut self) -> Result<(), Error>
fn reset(&mut self) -> Result<(), Error>
Discard all carry-over state so the decoder can resume from a new
bitstream position without producing stale output. Called by the
player after a container seek. Read more
Source§fn set_execution_context(&mut self, _ctx: &ExecutionContext)
fn set_execution_context(&mut self, _ctx: &ExecutionContext)
Advisory: announce the runtime environment (today: a thread budget
for codec-internal parallelism). Called at most once, before the
first
send_packet. Default no-op; codecs that want to run
slice-/GOP-/tile-parallel override this to capture the budget.
Ignoring the hint is always safe — callers must still work with
a decoder that runs serial.Auto Trait Implementations§
impl Freeze for H265Decoder
impl RefUnwindSafe for H265Decoder
impl Send for H265Decoder
impl Sync for H265Decoder
impl Unpin for H265Decoder
impl UnsafeUnpin for H265Decoder
impl UnwindSafe for H265Decoder
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