pub struct StepResponse {
pub rise_frames: u32,
pub fall_frames: u32,
}Expand description
How many frames a captured response took to settle after a step up and after the matching step down (Plan 0037, ADR-0039).
The whole point of ADR-0035’s { attack, release } pair is that these two
differ; a scalar [smoothing] entry makes them equal by construction.
Fields§
§rise_frames: u32Frames from the step up until the frame settled at SETTLE_FRAC.
fall_frames: u32Frames from the step down until the frame settled at SETTLE_FRAC.
Implementations§
Source§impl StepResponse
impl StepResponse
Sourcepub fn ratio(self) -> f32
pub fn ratio(self) -> f32
fall / rise — the asymmetry, which is the number that reads.
This is a pixel-domain ratio, not a parameter-domain one. A scene’s
response to its own parameter is rarely linear, so the value differs from
the ratio of the [smoothing] constants themselves (ADR-0039); only its
distance from 1.0 is meaningful. A frame that never moved reports
0.0 rather than dividing by zero.
Trait Implementations§
Source§impl Clone for StepResponse
impl Clone for StepResponse
Source§fn clone(&self) -> StepResponse
fn clone(&self) -> StepResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StepResponse
impl Debug for StepResponse
Source§impl PartialEq for StepResponse
impl PartialEq for StepResponse
Source§fn eq(&self, other: &StepResponse) -> bool
fn eq(&self, other: &StepResponse) -> bool
self and other values to be equal, and is used by ==.impl Copy for StepResponse
impl Eq for StepResponse
impl StructuralPartialEq for StepResponse
Auto Trait Implementations§
impl Freeze for StepResponse
impl RefUnwindSafe for StepResponse
impl Send for StepResponse
impl Sync for StepResponse
impl Unpin for StepResponse
impl UnsafeUnpin for StepResponse
impl UnwindSafe for StepResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.