#[repr(transparent)]pub struct Csc1Coef0(pub u32);Expand description
Color Space Conversion Coefficient Register 0
Tuple Fields§
§0: u32Implementations§
Source§impl Csc1Coef0
impl Csc1Coef0
Sourcepub const fn set_y_offset(&mut self, val: u16)
pub const fn set_y_offset(&mut self, val: u16)
Two’s compliment amplitude offset implicit in the Y data
Sourcepub const fn set_uv_offset(&mut self, val: u16)
pub const fn set_uv_offset(&mut self, val: u16)
Two’s compliment phase offset implicit for CbCr data
Sourcepub const fn c0(&self) -> u16
pub const fn c0(&self) -> u16
Two’s compliment Y multiplier coefficient. YUV=0x100 (1.000) YCbCr=0x12A (1.164)
Sourcepub const fn set_c0(&mut self, val: u16)
pub const fn set_c0(&mut self, val: u16)
Two’s compliment Y multiplier coefficient. YUV=0x100 (1.000) YCbCr=0x12A (1.164)
Sourcepub const fn set_bypass(&mut self, val: bool)
pub const fn set_bypass(&mut self, val: bool)
Bypass the CSC unit in the scaling engine
Sourcepub const fn ycbcr_mode(&self) -> YcbcrMode
pub const fn ycbcr_mode(&self) -> YcbcrMode
Set to 1 when performing YCbCr conversion to RGB
Sourcepub const fn set_ycbcr_mode(&mut self, val: YcbcrMode)
pub const fn set_ycbcr_mode(&mut self, val: YcbcrMode)
Set to 1 when performing YCbCr conversion to RGB
Trait Implementations§
impl Copy for Csc1Coef0
impl Eq for Csc1Coef0
impl StructuralPartialEq for Csc1Coef0
Auto Trait Implementations§
impl Freeze for Csc1Coef0
impl RefUnwindSafe for Csc1Coef0
impl Send for Csc1Coef0
impl Sync for Csc1Coef0
impl Unpin for Csc1Coef0
impl UnwindSafe for Csc1Coef0
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