pub struct J2kLossyEncodeReport {
pub target: Option<J2kRateTarget>,
pub quality_layers: u16,
pub quantization_scale: f32,
pub actual_bytes: u64,
pub actual_bits_per_pixel: f64,
pub psnr_db: Option<f64>,
pub ht_rate_granularity_bytes: Option<u64>,
}Expand description
Metrics reported by stable lossy JPEG 2000 encoding.
Fields§
§target: Option<J2kRateTarget>Requested effective rate target.
quality_layers: u16Number of cumulative quality layers emitted.
quantization_scale: f32Final native irreversible quantization scale.
actual_bytes: u64Total encoded codestream bytes.
actual_bits_per_pixel: f64Total codestream bits per image pixel.
psnr_db: Option<f64>Decoded PSNR in dB when CPU validation was requested.
ht_rate_granularity_bytes: Option<u64>HTJ2K rate granularity in bytes when HT block coding is used.
Trait Implementations§
Source§impl Clone for J2kLossyEncodeReport
impl Clone for J2kLossyEncodeReport
Source§fn clone(&self) -> J2kLossyEncodeReport
fn clone(&self) -> J2kLossyEncodeReport
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 moreSource§impl Debug for J2kLossyEncodeReport
impl Debug for J2kLossyEncodeReport
Source§impl PartialEq for J2kLossyEncodeReport
impl PartialEq for J2kLossyEncodeReport
impl StructuralPartialEq for J2kLossyEncodeReport
Auto Trait Implementations§
impl Freeze for J2kLossyEncodeReport
impl RefUnwindSafe for J2kLossyEncodeReport
impl Send for J2kLossyEncodeReport
impl Sync for J2kLossyEncodeReport
impl Unpin for J2kLossyEncodeReport
impl UnsafeUnpin for J2kLossyEncodeReport
impl UnwindSafe for J2kLossyEncodeReport
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