Expand description
A VA context for a particular Display
.
Fields
display: Rc<Display>
id: c_uint
Implementations
sourceimpl Context
impl Context
sourcepub(crate) fn new(
display: Rc<Display>,
config: &Config,
coded_width: i32,
coded_height: i32,
surfaces: Option<&Vec<Surface>>,
progressive: bool
) -> Result<Rc<Self>>
pub(crate) fn new(
display: Rc<Display>,
config: &Config,
coded_width: i32,
coded_height: i32,
surfaces: Option<&Vec<Surface>>,
progressive: bool
) -> Result<Rc<Self>>
Creates a Context by wrapping around a vaCreateContext
call. This is just a helper for
Display::create_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>
pub fn create_buffer(self: &Rc<Self>, type_: BufferType) -> Result<Buffer>
Create a new buffer of type type_
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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