pub struct Pipe2<'d, T: Instance> { /* private fields */ }Expand description
Handle to DCMIPP Pipe2 (ancillary, coplanar-only). Obtained from
Dcmipp::split.
Implementations§
Source§impl<'d, T: Instance> Pipe2<'d, T>
impl<'d, T: Instance> Pipe2<'d, T>
Sourcepub fn configure(&mut self, cfg: &Pipe2Config)
pub fn configure(&mut self, cfg: &Pipe2Config)
Configure Pipe2. Panics if cfg.output is multi-planar — Pipe2 only
supports single-plane pixel formats.
Sourcepub async fn capture(&mut self, buffer: *mut u8) -> Result<(), Error>
pub async fn capture(&mut self, buffer: *mut u8) -> Result<(), Error>
Arm a single-shot capture. buffer must be 16-byte aligned.
Sourcepub async fn wait_frame(&mut self) -> Result<u8, Error>
pub async fn wait_frame(&mut self) -> Result<u8, Error>
Wait for the next frame. Returns the buffer index (0 or 1).
Trait Implementations§
Auto Trait Implementations§
impl<'d, T> Freeze for Pipe2<'d, T>
impl<'d, T> RefUnwindSafe for Pipe2<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Pipe2<'d, T>
impl<'d, T> Sync for Pipe2<'d, T>where
T: Sync,
impl<'d, T> Unpin for Pipe2<'d, T>
impl<'d, T> !UnwindSafe for Pipe2<'d, T>
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