pub struct MetaBitmap(/* private fields */);Expand description
Bitmap information
This metadata contains a bitmap image in the given format and size. It is typically used for cursor images or other small images that are better transferred inline.
Implementations§
Source§impl MetaBitmap
impl MetaBitmap
pub fn as_raw(&self) -> &spa_meta_bitmap
Sourcepub fn format(&self) -> VideoFormat
pub fn format(&self) -> VideoFormat
Bitmap video format
Sourcepub fn offset(&self) -> u32
pub fn offset(&self) -> u32
Offset of bitmap data in this structure.
Use bitmap_data to access the data.
pub fn is_valid(&self) -> bool
Sourcepub fn bitmap_data(&self) -> Option<&[u8]>
pub fn bitmap_data(&self) -> Option<&[u8]>
Returns a slice with the bitmap data if this bitmap is valid and offset points to memory after this structure.
Trait Implementations§
Source§impl Debug for MetaBitmap
impl Debug for MetaBitmap
Auto Trait Implementations§
impl Freeze for MetaBitmap
impl RefUnwindSafe for MetaBitmap
impl Send for MetaBitmap
impl Sync for MetaBitmap
impl Unpin for MetaBitmap
impl UnwindSafe for MetaBitmap
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