Enum turbojpeg::TransformOp
source · #[non_exhaustive]#[repr(u32)]pub enum TransformOp {
None = 0,
Hflip = 1,
Vflip = 2,
Transpose = 3,
Transverse = 4,
Rot90 = 5,
Rot180 = 6,
Rot270 = 7,
}
Expand description
Transform operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None = 0
No transformation (noop).
Hflip = 1
Flip (mirror) image horizontally.
This transform is imperfect if there are any partial MCU blocks on the right edge (see
Transform::perfect
.)
Vflip = 2
Flip (mirror) image vertically.
This transform is imperfect if there are any partial MCU blocks on the bottom edge (see
Transform::perfect
.)
Transpose = 3
Transpose image (flip/mirror along upper left to lower right axis).
This transform is always perfect.
Transverse = 4
Transverse transpose image (flip/mirror along upper right to lower left axis).
This transform is imperfect if there are any partial MCU blocks in the image (see
Transform::perfect
.)
Rot90 = 5
Rotate image clockwise by 90 degrees.
This transform is imperfect if there are any partial MCU blocks on the bottom edge (see
Transform::perfect
.)
Rot180 = 6
Rotate image 180 degrees.
This transform is imperfect if there are any partial MCU blocks in the image (see
Transform::perfect
.)
Rot270 = 7
Rotate image counter-clockwise by 90 degrees.
This transform is imperfect if there are any partial MCU blocks on the right edge (see
Transform::perfect
.)
Trait Implementations§
source§impl Clone for TransformOp
impl Clone for TransformOp
source§fn clone(&self) -> TransformOp
fn clone(&self) -> TransformOp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransformOp
impl Debug for TransformOp
source§impl Default for TransformOp
impl Default for TransformOp
source§impl Hash for TransformOp
impl Hash for TransformOp
source§impl Ord for TransformOp
impl Ord for TransformOp
source§fn cmp(&self, other: &TransformOp) -> Ordering
fn cmp(&self, other: &TransformOp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for TransformOp
impl PartialEq for TransformOp
source§fn eq(&self, other: &TransformOp) -> bool
fn eq(&self, other: &TransformOp) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransformOp
impl PartialOrd for TransformOp
source§fn partial_cmp(&self, other: &TransformOp) -> Option<Ordering>
fn partial_cmp(&self, other: &TransformOp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more