Struct cros_libva::Context
source · pub struct Context { /* private fields */ }Expand description
A VA context for a particular Display.
Implementations§
source§impl Context
impl Context
sourcepub fn display(&self) -> &Rc<Display>
pub fn display(&self) -> &Rc<Display>
Returns a shared reference to the Display used by this context.
sourcepub fn create_buffer(
self: &Rc<Self>,
type_: BufferType,
) -> Result<Buffer, VaError>
pub fn create_buffer( self: &Rc<Self>, type_: BufferType, ) -> Result<Buffer, VaError>
Create a new buffer of type type_.
sourcepub fn create_enc_coded(
self: &Rc<Self>,
size: usize,
) -> Result<EncCodedBuffer, VaError>
pub fn create_enc_coded( self: &Rc<Self>, size: usize, ) -> Result<EncCodedBuffer, VaError>
Create a new buffer of type type_.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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