pub trait DecodedHandle {
    // Required methods
    fn dyn_picture_mut(&self) -> RefMut<'_, dyn DynHandle>;
    fn timestamp(&self) -> u64;
    fn display_resolution(&self) -> Resolution;
    fn is_ready(&self) -> bool;
    fn sync(&self) -> StatelessBackendResult<()>;
}
Expand description

The handle type used by the stateless decoder backend. The only requirement from implementors is that they give access to the underlying handle and that they can be (cheaply) cloned.

Required Methods§

source

fn dyn_picture_mut(&self) -> RefMut<'_, dyn DynHandle>

source

fn timestamp(&self) -> u64

Returns the timestamp of the picture.

source

fn display_resolution(&self) -> Resolution

Returns the display resolution at the time this handle was decoded.

source

fn is_ready(&self) -> bool

Returns true if this handle has been completely decoded.

source

fn sync(&self) -> StatelessBackendResult<()>

Wait until this handle has been completely rendered.

Implementors§