pub enum PixelFormat {
Mono8,
Bgr8,
Other(u32),
}Expand description
Minimal pixel format representation.
Vimba’s pixel format space is enormous (PFNC codes); we explicitly map
only the formats our pipeline currently cares about and pass everything
else through as PixelFormat::Other so the consumer can interpret it.
Variants§
Mono8
8-bit mono, one byte per pixel (VmbPixelFormatMono8 = 0x0108_0001).
Bgr8
8-bit BGR, three bytes per pixel (VmbPixelFormatBgr8 = 0x0218_0015).
Other(u32)
Anything else — the consumer must interpret the raw PFNC code.
Implementations§
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelFormat
impl Debug for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
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