Struct cros_codecs::utils::vaapi::DecodedHandle
source · [−]pub struct DecodedHandle {
inner: Rc<RefCell<GenericBackendHandle>>,
timestamp: u64,
pub display_order: Option<u64>,
}
Expand description
A decoded frame handle.
Fields
inner: Rc<RefCell<GenericBackendHandle>>
The actual object backing the handle.
timestamp: u64
The timestamp of the input buffer that produced this frame.
display_order: Option<u64>
A monotonically increasing counter that denotes the display order of this handle in comparison with other handles.
Implementations
sourceimpl DecodedHandle
impl DecodedHandle
Trait Implementations
sourceimpl Clone for DecodedHandle
impl Clone for DecodedHandle
sourceimpl DecodedHandle for DecodedHandle
impl DecodedHandle for DecodedHandle
type BackendHandle = GenericBackendHandle
type BackendHandle = GenericBackendHandle
The type of the handle used by the backend.
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.
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.
Auto Trait Implementations
impl !RefUnwindSafe for DecodedHandle
impl !Send for DecodedHandle
impl !Sync for DecodedHandle
impl Unpin for DecodedHandle
impl !UnwindSafe for DecodedHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more