pub struct CustomImageLayout {
pub layout: SignedPlanarByteLayout,
pub rgb_offsets: [usize; 3],
pub alpha_offset: Option<usize>,
}Expand description
Interleaved image with independent channel offsets within each pixel.
Fields§
§layout: SignedPlanarByteLayoutDimensions, origin of the first logical pixel, signed strides and bit depth.
rgb_offsets: [usize; 3]Byte offsets from each pixel origin, in R, G, B order.
alpha_offset: Option<usize>Optional byte offset of alpha from each pixel origin.
Trait Implementations§
Source§impl Clone for CustomImageLayout
impl Clone for CustomImageLayout
impl Copy for CustomImageLayout
Source§impl Debug for CustomImageLayout
impl Debug for CustomImageLayout
impl Eq for CustomImageLayout
Source§impl PartialEq for CustomImageLayout
impl PartialEq for CustomImageLayout
impl StructuralPartialEq for CustomImageLayout
Auto Trait Implementations§
impl Forget for CustomImageLayout
impl Freeze for CustomImageLayout
impl Move for CustomImageLayout
impl RefUnwindSafe for CustomImageLayout
impl Send for CustomImageLayout
impl Sync for CustomImageLayout
impl Unpin for CustomImageLayout
impl UnsafeUnpin for CustomImageLayout
impl UnwindSafe for CustomImageLayout
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