CVImageBufferLockExt

Trait CVImageBufferLockExt 

Source
pub trait CVImageBufferLockExt {
    // Required method
    fn lock(
        &self,
        flags: PixelBufferLockFlags,
    ) -> Result<PixelBufferLockGuard<'_>, SCError>;
}
Expand description

Extension trait for CVImageBuffer with lock guards Extension trait for locking pixel buffers

Required Methods§

Source

fn lock( &self, flags: PixelBufferLockFlags, ) -> Result<PixelBufferLockGuard<'_>, SCError>

Lock the buffer and provide a guard for safe access

§Errors

Returns an SCError if the lock operation fails.

Implementors§