Expand description
Physical EXIF orientation baking — rotate / flip any pixel view or buffer.
Supports all 8 dihedral orientations (Identity, FlipH, FlipV, Rotate180,
Transpose, Rotate90, Rotate270, Transverse) across all pixel widths
(1, 2, 3, 4, 6, 8, 12, 16+ B/px) with SIMD register transposes (pxn_x86,
rgb3_x86, pxn_neon, and WASM SIMD128 4×4) under #![forbid(unsafe_code)].
Functions§
- apply_
orientation - Apply
orientationtosrc, returning a freshly allocated tightly packedPixelBuf. - apply_
orientation_ banded - Apply explicit
orientationto aBandedBuf, returning a freshly allocatedBandedBufpartitioned according tosizingwithOrientation::Identitymetadata and zero full-frame contiguous allocation. - apply_
orientation_ banded_ into - Apply
orientationfromsrcinto pre-allocateddstBandedBufwith zero heap allocation and full SIMD tile transposes across every(src_band, dst_band)intersection. - apply_
orientation_ banded_ into_ with_ pulse - Apply
orientationfromsrcinto pre-allocateddstBandedBufwith optional cooperative cancellation and progress viapulse(passNonewhen not needed). - apply_
orientation_ banded_ with_ pulse - Apply explicit
orientationto aBandedBufwith optional cooperative cancellation and progress viapulse(passNonewhen not needed). - apply_
orientation_ into - Apply
orientationtosrc, writing into caller-provideddstwith zero heap allocation. - apply_
orientation_ into_ with_ pulse - Apply
orientationtosrc, writing into caller-provideddstwith zero heap allocation and optional cooperative cancellation/progress viapulse(passNonewhen not needed). - apply_
orientation_ owned - Apply explicit
orientationto an ownedPixelBuf, returningbufzero-copy onOrientation::Identityand always emittingOrientation::Identitymetadata on the result (matchingapply_orientation). - apply_
orientation_ owned_ with_ pulse - Apply explicit
orientationto an ownedPixelBufwith optional cooperative cancellation and row progress viapulse(passNonewhen not needed). - apply_
orientation_ with_ pulse - Apply
orientationtosrc, returning a freshly allocated tightly packedPixelBuf, with optional cooperative cancellation and row progress viapulse(passNonewhen not needed). - bake_
orientation - Physically bake
src.orientation()into pixels, returning a tightly packedPixelBufwithOrientation::Identity. - bake_
orientation_ banded - Physically bake
src.orientation()into aBandedBufpartitioned according tosizing(BandSizing::MaxBandBytesorBandSizing::RowsPerBand) withOrientation::Identityon the result. - bake_
orientation_ owned - Physically bake
buf.orientation()into pixels, returningbufzero-copy whenbuf.orientation() == Orientation::Identityand clearing the resulting orientation toOrientation::Identity.