#[repr(i32)]pub enum ImageFormat {
RAW8 = 0,
RAW16 = 1,
RGB24 = 2,
MONO8 = 3,
}Variants§
RAW8 = 0
8bit raw data, 1 pixel 1 byte, value range[0, 255]
RAW16 = 1
16bit raw data, 1 pixel 2 bytes, value range[0, 65535]
RGB24 = 2
RGB888 color data, 1 pixel 3 bytes, value range[0, 255] (only color camera)
MONO8 = 3
8bit monochrome data, convert the Bayer Filter Array to monochrome data. 1 pixel 1 byte, value range[0, 255] (only color camera)
Implementations§
Source§impl ImageFormat
impl ImageFormat
pub fn bytes_per_pixel(&self) -> usize
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
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 ImageFormat
impl Debug for ImageFormat
Source§impl From<_POAImgFormat> for ImageFormat
impl From<_POAImgFormat> for ImageFormat
Source§fn from(value: _POAImgFormat) -> Self
fn from(value: _POAImgFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl Into<_POAImgFormat> for ImageFormat
impl Into<_POAImgFormat> for ImageFormat
Source§fn into(self) -> _POAImgFormat
fn into(self) -> _POAImgFormat
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
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