Trait cros_codecs::decoders::DecodedHandle
source · [−]pub trait DecodedHandle: Clone {
type BackendHandle;
fn handle_rc(&self) -> &Rc<RefCell<Self::BackendHandle>>;
fn display_order(&self) -> Option<u64>;
fn set_display_order(&mut self, display_order: u64);
fn timestamp(&self) -> u64;
fn display_resolution(&self) -> Resolution;
fn handle(&self) -> Ref<'_, Self::BackendHandle> { ... }
fn handle_mut(&self) -> RefMut<'_, Self::BackendHandle> { ... }
}
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 Associated Types
sourcetype BackendHandle
type BackendHandle
The type of the handle used by the backend.
Required Methods
sourcefn handle_rc(&self) -> &Rc<RefCell<Self::BackendHandle>>
fn handle_rc(&self) -> &Rc<RefCell<Self::BackendHandle>>
Returns a reference to the container of the backend handle.
sourcefn display_order(&self) -> Option<u64>
fn display_order(&self) -> Option<u64>
Returns the display order for the picture backed by this handle, if set by the decoder.
sourcefn set_display_order(&mut self, display_order: u64)
fn set_display_order(&mut self, display_order: u64)
Sets the display order for the picture backend by this handle
sourcefn display_resolution(&self) -> Resolution
fn display_resolution(&self) -> Resolution
Returns the display resolution at the time this handle was decoded.
Provided Methods
sourcefn handle(&self) -> Ref<'_, Self::BackendHandle>
fn handle(&self) -> Ref<'_, Self::BackendHandle>
Returns a shared reference to the backend handle.
sourcefn handle_mut(&self) -> RefMut<'_, Self::BackendHandle>
fn handle_mut(&self) -> RefMut<'_, Self::BackendHandle>
Returns a mutable reference to the backend handle.