pub enum Resolution {
R480i,
R480p,
R576i,
R576p,
R720p,
R1080i,
R1080p,
R2160p,
R4320p,
Unknown,
}Expand description
Video resolution.
Variants§
R480i
480i (720x480 interlaced) — NTSC DVD
R480p
480p (720x480 progressive)
R576i
576i (720x576 interlaced) — PAL DVD
R576p
576p (720x576 progressive)
R720p
720p (1280x720 progressive) — some Blu-rays
R1080i
1080i (1920x1080 interlaced) — broadcast, some BD
R1080p
1080p (1920x1080 progressive) — standard Blu-ray
R2160p
2160p (3840x2160 progressive) — 4K UHD Blu-ray
R4320p
4320p (7680x4320 progressive) — 8K, future-proof
Unknown
Unknown resolution
Implementations§
Source§impl Resolution
impl Resolution
Sourcepub fn from_video_format(vf: u8) -> Self
pub fn from_video_format(vf: u8) -> Self
Parse from MPLS video_format byte.
Sourcepub fn from_height(h: u32) -> Self
pub fn from_height(h: u32) -> Self
Parse from pixel height (e.g. from MKV track).
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a duplicate 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 Resolution
impl Debug for Resolution
Source§impl Display for Resolution
impl Display for Resolution
Source§impl FromStr for Resolution
impl FromStr for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl Copy for Resolution
impl Eq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.