pub struct PixelLevelAdjuster { /* private fields */ }Expand description
Pixel level adjustment for different video standards
Implementations§
Source§impl PixelLevelAdjuster
impl PixelLevelAdjuster
Sourcepub fn new(video_standard: VideoStandard) -> Self
pub fn new(video_standard: VideoStandard) -> Self
Create adjuster for video standard
Sourcepub fn with_levels(black_level: u8, white_level: u8) -> Self
pub fn with_levels(black_level: u8, white_level: u8) -> Self
Create with custom levels
Sourcepub fn bit_to_pixel(&self, bit: bool) -> u8
pub fn bit_to_pixel(&self, bit: bool) -> u8
Adjust bit to pixel level
Sourcepub fn black_level(&self) -> u8
pub fn black_level(&self) -> u8
Get black level
Sourcepub fn white_level(&self) -> u8
pub fn white_level(&self) -> u8
Get white level
Auto Trait Implementations§
impl Freeze for PixelLevelAdjuster
impl RefUnwindSafe for PixelLevelAdjuster
impl Send for PixelLevelAdjuster
impl Sync for PixelLevelAdjuster
impl Unpin for PixelLevelAdjuster
impl UnsafeUnpin for PixelLevelAdjuster
impl UnwindSafe for PixelLevelAdjuster
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