pub struct OwnedFrameBuffer { /* private fields */ }Expand description
FrameBuffer created from user-provided DMABUFs.
Implementations§
Source§impl OwnedFrameBuffer
impl OwnedFrameBuffer
Sourcepub fn is_contiguous(&self) -> bool
pub fn is_contiguous(&self) -> bool
Returns true if planes are contiguous within a single FD and ordered without gaps.
Trait Implementations§
Source§impl AsFrameBuffer for OwnedFrameBuffer
impl AsFrameBuffer for OwnedFrameBuffer
Source§unsafe fn ptr(&self) -> NonNull<libcamera_framebuffer_t>
unsafe fn ptr(&self) -> NonNull<libcamera_framebuffer_t>
Returns raw framebuffer used by libcamera. Read more
Source§fn metadata(&self) -> Option<Immutable<FrameMetadataRef<'_>>>
fn metadata(&self) -> Option<Immutable<FrameMetadataRef<'_>>>
Returns framebuffer metadata information. Read more
Source§fn planes(&self) -> Immutable<FrameBufferPlanesRef<'_>>
fn planes(&self) -> Immutable<FrameBufferPlanesRef<'_>>
Provides access to framebuffer data by exposing file descriptors, offsets and lengths of the planes.
User cookie associated with the buffer.
Set user cookie associated with the buffer.
Source§fn release_fence(&self) -> Option<Fence>
fn release_fence(&self) -> Option<Fence>
Releases the acquire fence associated with this framebuffer, if any. Read more
Source§fn request(&self) -> Option<RequestRef<'_>>
fn request(&self) -> Option<RequestRef<'_>>
Returns a non-owning view of the Request owning this framebuffer, if any.
Source§impl Debug for OwnedFrameBuffer
impl Debug for OwnedFrameBuffer
Source§impl Drop for OwnedFrameBuffer
impl Drop for OwnedFrameBuffer
impl Send for OwnedFrameBuffer
Auto Trait Implementations§
impl Freeze for OwnedFrameBuffer
impl RefUnwindSafe for OwnedFrameBuffer
impl !Sync for OwnedFrameBuffer
impl Unpin for OwnedFrameBuffer
impl UnwindSafe for OwnedFrameBuffer
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