pub enum EncodedPixels {
Gray8(Image<u8>),
Gray16(Image<u16>),
Rgb24(Buf<u8, 3>),
}Expand description
The pixels of an image in one of the raw formats cppTango encodes images in, rows after rows: in the dimensions of an image, the width comes first and varies fastest, the way it does in an image attribute.
On the wire, such an image is its width and its height, both as big endian 16 bits integers, and then its pixels.
Variants§
Gray8(Image<u8>)
A DevEncoded::GRAY8 image, sharing the octets of the value.
Gray16(Image<u16>)
A DevEncoded::GRAY16 image, whose big endian pixels are converted.
Rgb24(Buf<u8, 3>)
A DevEncoded::RGB24 image, sharing the octets of the value, the three components
of a pixel being the first dimension, then the width, then the height.
Trait Implementations§
Source§impl Clone for EncodedPixels
impl Clone for EncodedPixels
Source§impl Debug for EncodedPixels
impl Debug for EncodedPixels
Source§impl PartialEq for EncodedPixels
impl PartialEq for EncodedPixels
impl StructuralPartialEq for EncodedPixels
Auto Trait Implementations§
impl Forget for EncodedPixels
impl Freeze for EncodedPixels
impl RefUnwindSafe for EncodedPixels
impl Send for EncodedPixels
impl Sync for EncodedPixels
impl Unpin for EncodedPixels
impl UnsafeUnpin for EncodedPixels
impl UnwindSafe for EncodedPixels
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