pub struct RDPoint {
pub codec: String,
pub quality_setting: f64,
pub bpp: f64,
pub quality: f64,
pub encode_time_ms: Option<f64>,
pub image: Option<String>,
}Expand description
A point on a rate-distortion curve.
Fields§
§codec: StringCodec identifier.
quality_setting: f64Quality setting used.
bpp: f64Bits per pixel (rate).
quality: f64Quality metric value (higher = better, e.g., SSIMULACRA2). For DSSIM, negate before adding.
encode_time_ms: Option<f64>Optional encode time in milliseconds.
image: Option<String>Optional image name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RDPoint
impl<'de> Deserialize<'de> for RDPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RDPoint
impl RefUnwindSafe for RDPoint
impl Send for RDPoint
impl Sync for RDPoint
impl Unpin for RDPoint
impl UnwindSafe for RDPoint
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