pub struct PlanarMetrics {
pub y: f64,
pub u: f64,
pub v: f64,
pub avg: f64,
}
Expand description
Certain metrics return a value per plane. This struct contains the output for those metrics per plane, as well as a weighted average of the planes.
Fields§
§y: f64
Metric value for the Y plane.
u: f64
Metric value for the U/Cb plane.
v: f64
Metric value for the V/Cb plane.
avg: f64
Weighted average of the three planes.
Trait Implementations§
Source§impl Clone for PlanarMetrics
impl Clone for PlanarMetrics
Source§fn clone(&self) -> PlanarMetrics
fn clone(&self) -> PlanarMetrics
Returns a copy 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 PlanarMetrics
impl Debug for PlanarMetrics
Source§impl Default for PlanarMetrics
impl Default for PlanarMetrics
Source§fn default() -> PlanarMetrics
fn default() -> PlanarMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlanarMetrics
impl PartialEq for PlanarMetrics
impl Copy for PlanarMetrics
impl StructuralPartialEq for PlanarMetrics
Auto Trait Implementations§
impl Freeze for PlanarMetrics
impl RefUnwindSafe for PlanarMetrics
impl Send for PlanarMetrics
impl Sync for PlanarMetrics
impl Unpin for PlanarMetrics
impl UnwindSafe for PlanarMetrics
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