pub struct RangeScaling {
pub y_offset: f64,
pub y_swing: f64,
pub c_swing: f64,
}Expand description
Quantization swings (out of 255) for a YCbCr range: the luma black offset and
the luma/chroma excursions. Full range is 0 / 255 / 255; limited (studio)
range is 16 / 219 / 224.
Fields§
§y_offset: f64Luma black level (0 for full range, 16 for limited).
y_swing: f64Luma excursion (255 for full range, 219 for limited).
c_swing: f64Chroma excursion (255 for full range, 224 for limited).
Trait Implementations§
Source§impl Clone for RangeScaling
impl Clone for RangeScaling
Source§fn clone(&self) -> RangeScaling
fn clone(&self) -> RangeScaling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RangeScaling
Source§impl Debug for RangeScaling
impl Debug for RangeScaling
Source§impl PartialEq for RangeScaling
impl PartialEq for RangeScaling
Source§fn eq(&self, other: &RangeScaling) -> bool
fn eq(&self, other: &RangeScaling) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RangeScaling
Auto Trait Implementations§
impl Freeze for RangeScaling
impl RefUnwindSafe for RangeScaling
impl Send for RangeScaling
impl Sync for RangeScaling
impl Unpin for RangeScaling
impl UnsafeUnpin for RangeScaling
impl UnwindSafe for RangeScaling
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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