pub struct TestImage { /* private fields */ }Expand description
A deterministic test image with contiguous (tightly-packed) rows.
Implementations§
Source§impl TestImage
impl TestImage
Sourcepub fn rgba8_gradient(width: u32, height: u32) -> Self
pub fn rgba8_gradient(width: u32, height: u32) -> Self
An RGBA8 image whose channels vary with position, so any row/column transposition shows up as a pixel diff.
Sourcepub fn rgb8_gradient(width: u32, height: u32) -> Self
pub fn rgb8_gradient(width: u32, height: u32) -> Self
An RGB8 image with the same gradient pattern.
Sourcepub fn rgba8_gradient_seeded(width: u32, height: u32, seed: u8) -> Self
pub fn rgba8_gradient_seeded(width: u32, height: u32, seed: u8) -> Self
An RGBA8 gradient offset by seed, so distinct same-size frames (for
animation tests) differ in content and a frame-ordering bug is visible.
Sourcepub fn rgb8_gradient_seeded(width: u32, height: u32, seed: u8) -> Self
pub fn rgb8_gradient_seeded(width: u32, height: u32, seed: u8) -> Self
An opaque RGB8 gradient offset by seed: distinct frames for codecs
whose animations carry no partial transparency (GIF).
Auto Trait Implementations§
impl Freeze for TestImage
impl RefUnwindSafe for TestImage
impl Send for TestImage
impl Sync for TestImage
impl Unpin for TestImage
impl UnsafeUnpin for TestImage
impl UnwindSafe for TestImage
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