pub struct Orientation {
pub rotation: Rotation,
pub mirror: bool,
}Expand description
How to show a decoded picture upright: mirror it left to right when
mirror is set, then turn it clockwise by rotation.
The two together reach every orientation a container or an image can
declare: the eight of the Exif Orientation tag, every display matrix
whose angle is a multiple of 90 degrees, a Matroska projection’s pose. A binding
converts its source’s own statement to this one; FFmpeg’s display matrix
mirrors after it rotates, and counter-clockwise.
Fields§
§rotation: RotationClockwise rotation, applied after the mirror.
mirror: boolWhether the stored picture is mirrored left to right before it turns.
Implementations§
Source§impl Orientation
impl Orientation
Trait Implementations§
Source§impl Clone for Orientation
impl Clone for Orientation
impl Copy for Orientation
Source§impl Debug for Orientation
impl Debug for Orientation
Source§impl Default for Orientation
impl Default for Orientation
impl Eq for Orientation
Source§impl Hash for Orientation
impl Hash for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnsafeUnpin for Orientation
impl UnwindSafe for Orientation
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