Struct av_metrics::video::PlanarMetrics
source · 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<PlanarMetrics> for PlanarMetrics
impl PartialEq<PlanarMetrics> for PlanarMetrics
source§fn eq(&self, other: &PlanarMetrics) -> bool
fn eq(&self, other: &PlanarMetrics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PlanarMetrics
impl StructuralPartialEq for PlanarMetrics
Auto Trait Implementations§
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