pub struct LevelRange {
pub luma_min: u16,
pub luma_max: u16,
pub chroma_min: u16,
pub chroma_max: u16,
}Expand description
Level range for a given color range and bit depth.
Fields§
§luma_min: u16Minimum luma value.
luma_max: u16Maximum luma value.
chroma_min: u16Minimum chroma value.
chroma_max: u16Maximum chroma value.
Implementations§
Source§impl LevelRange
impl LevelRange
Sourcepub fn new(range: ColorRange, depth: BitDepth) -> Self
pub fn new(range: ColorRange, depth: BitDepth) -> Self
Create a level range for the given color range and bit depth.
Sourcepub fn chroma_span(&self) -> u16
pub fn chroma_span(&self) -> u16
Chroma span (max - min).
Trait Implementations§
Source§impl Clone for LevelRange
impl Clone for LevelRange
Source§fn clone(&self) -> LevelRange
fn clone(&self) -> LevelRange
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 LevelRange
impl Debug for LevelRange
Source§impl PartialEq for LevelRange
impl PartialEq for LevelRange
impl Copy for LevelRange
impl Eq for LevelRange
impl StructuralPartialEq for LevelRange
Auto Trait Implementations§
impl Freeze for LevelRange
impl RefUnwindSafe for LevelRange
impl Send for LevelRange
impl Sync for LevelRange
impl Unpin for LevelRange
impl UnsafeUnpin for LevelRange
impl UnwindSafe for LevelRange
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more