pub struct GrayFrame {
pub width: usize,
pub height: usize,
pub data: Vec<u8>,
}Expand description
A grayscale image used as input for perceptual hashing.
Pixels are stored in row-major order with values in [0, 255].
Fields§
§width: usizeImage width in pixels.
height: usizeImage height in pixels.
data: Vec<u8>Row-major grayscale pixel values.
Implementations§
Source§impl GrayFrame
impl GrayFrame
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GrayFrame
impl RefUnwindSafe for GrayFrame
impl Send for GrayFrame
impl Sync for GrayFrame
impl Unpin for GrayFrame
impl UnsafeUnpin for GrayFrame
impl UnwindSafe for GrayFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more