Enum ChromaSiting
#[repr(u8)]pub enum ChromaSiting {
Left = 0,
Center = 1,
TopLeft = 2,
Top = 3,
BottomLeft = 4,
Bottom = 5,
}Expand description
Official chroma-siting metadata values.
Variants§
Left = 0
Chroma samples sit on left edge and centered vertically.
Center = 1
Chroma samples are centered horizontally and vertically.
TopLeft = 2
Chroma samples sit on top-left corner.
Top = 3
Chroma samples are centered horizontally on top edge.
BottomLeft = 4
Chroma samples sit on bottom-left corner.
Bottom = 5
Chroma samples are centered horizontally on bottom edge.
Implementations§
§impl ChromaSiting
impl ChromaSiting
pub fn parse(value: &str) -> Result<ChromaSiting, PixelFlowError>
pub fn parse(value: &str) -> Result<ChromaSiting, PixelFlowError>
Parses canonical chroma-siting metadata string.
Trait Implementations§
§impl Clone for ChromaSiting
impl Clone for ChromaSiting
§fn clone(&self) -> ChromaSiting
fn clone(&self) -> ChromaSiting
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 more§impl Debug for ChromaSiting
impl Debug for ChromaSiting
§impl PartialEq for ChromaSiting
impl PartialEq for ChromaSiting
impl Copy for ChromaSiting
impl Eq for ChromaSiting
impl StructuralPartialEq for ChromaSiting
Auto Trait Implementations§
impl Freeze for ChromaSiting
impl RefUnwindSafe for ChromaSiting
impl Send for ChromaSiting
impl Sync for ChromaSiting
impl Unpin for ChromaSiting
impl UnsafeUnpin for ChromaSiting
impl UnwindSafe for ChromaSiting
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