#[repr(u8)]pub enum PixelAspectRatio {
TwoOneA = 0,
TwoOneB = 1,
TwoOneC = 5,
TwoOneD = 6,
FiveOne = 2,
ThreeOneA = 3,
ThreeOneB = 4,
OneOneA = 7,
OneOneB = 8,
OneOneC = 9,
None = 255,
}
Expand description
Represents the height-to-width pixel ratio.
P1 | Pixel Aspect Ratio (Vertical:Horizontal) |
---|---|
Omitted | 2:1 (default) |
0, 1 | 2:1 |
2 | 5:1 |
3, 4 | 3:1 |
5, 6 | 2:1 |
7, 8, 9 | 1:1 |
Variants§
TwoOneA = 0
TwoOneB = 1
TwoOneC = 5
TwoOneD = 6
FiveOne = 2
ThreeOneA = 3
ThreeOneB = 4
OneOneA = 7
OneOneB = 8
OneOneC = 9
None = 255
Implementations§
Source§impl PixelAspectRatio
impl PixelAspectRatio
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new PixelAspectRatio selector.
Trait Implementations§
Source§impl Clone for PixelAspectRatio
impl Clone for PixelAspectRatio
Source§fn clone(&self) -> PixelAspectRatio
fn clone(&self) -> PixelAspectRatio
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PixelAspectRatio
impl Debug for PixelAspectRatio
Source§impl Default for PixelAspectRatio
impl Default for PixelAspectRatio
Source§fn default() -> PixelAspectRatio
fn default() -> PixelAspectRatio
Returns the “default value” for a type. Read more
Source§impl Display for PixelAspectRatio
impl Display for PixelAspectRatio
Source§impl From<&PixelAspectRatio> for char
impl From<&PixelAspectRatio> for char
Source§fn from(val: &PixelAspectRatio) -> Self
fn from(val: &PixelAspectRatio) -> Self
Converts to this type from the input type.
Source§impl From<&PixelAspectRatio> for u8
impl From<&PixelAspectRatio> for u8
Source§fn from(val: &PixelAspectRatio) -> Self
fn from(val: &PixelAspectRatio) -> Self
Converts to this type from the input type.
Source§impl From<PixelAspectRatio> for char
impl From<PixelAspectRatio> for char
Source§fn from(val: PixelAspectRatio) -> Self
fn from(val: PixelAspectRatio) -> Self
Converts to this type from the input type.
Source§impl From<PixelAspectRatio> for u8
impl From<PixelAspectRatio> for u8
Source§fn from(val: PixelAspectRatio) -> Self
fn from(val: PixelAspectRatio) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PixelAspectRatio
impl PartialEq for PixelAspectRatio
impl Copy for PixelAspectRatio
impl StructuralPartialEq for PixelAspectRatio
Auto Trait Implementations§
impl Freeze for PixelAspectRatio
impl RefUnwindSafe for PixelAspectRatio
impl Send for PixelAspectRatio
impl Sync for PixelAspectRatio
impl Unpin for PixelAspectRatio
impl UnwindSafe for PixelAspectRatio
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