Trait cros_codecs::decoders::DecodedHandle
source · 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§
fn dyn_picture_mut(&self) -> RefMut<'_, dyn DynHandle>
sourcefn display_resolution(&self) -> Resolution
fn display_resolution(&self) -> Resolution
Returns the display resolution at the time this handle was decoded.
sourcefn sync(&self) -> StatelessBackendResult<()>
fn sync(&self) -> StatelessBackendResult<()>
Wait until this handle has been completely rendered.