#[non_exhaustive]pub enum OrientationHint {
Preserve,
Correct,
CorrectAndTransform(Orientation),
ExactTransform(Orientation),
}Expand description
How the decoder should handle orientation during decode.
Replaces a simple with_orientation_hint(Orientation) with richer
semantics: the caller can request orientation correction plus
additional transforms, which the decoder can coalesce into a
single operation (e.g., JPEG lossless DCT rotation).
Pass to DecodeJob::with_orientation().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Preserve
Don’t touch orientation. Report intrinsic orientation in
ImageInfo::orientation.
Correct
Resolve EXIF/container orientation to Identity.
The decoder coalesces this with the decode operation when possible
(e.g., JPEG lossless DCT transform). The output ImageInfo will
report Orientation::Identity.
CorrectAndTransform(Orientation)
Resolve EXIF orientation, then apply an additional transform.
The decoder coalesces the combined operation when possible. For example, if EXIF says Rotate90 and the hint says Rotate180, the decoder applies Rotate270 in a single step.
ExactTransform(Orientation)
Ignore EXIF orientation. Apply exactly this transform.
The EXIF orientation is not consulted. The given transform is applied literally.
Trait Implementations§
Source§impl Clone for OrientationHint
impl Clone for OrientationHint
Source§fn clone(&self) -> OrientationHint
fn clone(&self) -> OrientationHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more