pub struct ImageInfo {
pub width: usize,
pub height: usize,
pub x_offset: usize,
pub y_offset: usize,
pub pixel_format: PixelFormat,
pub image_size: usize,
}
Expand description
Image meta information.
Fields§
§width: usize
Width of the image.
height: usize
Height of the image.
x_offset: usize
X offset in pixels from the whole image origin. Some devices have capability of sending multiple extracted image regions, this fields used for the purpose.
y_offset: usize
Y offset in pixels from the whole image origin. Some devices have capability of sending multiple extracted image regions, this fields used for the purpose.
pixel_format: PixelFormat
PixelFormat
of the image.
image_size: usize
Size of image in bytes.
Trait Implementations§
source§impl PartialEq<ImageInfo> for ImageInfo
impl PartialEq<ImageInfo> for ImageInfo
impl Eq for ImageInfo
impl StructuralEq for ImageInfo
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations§
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
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