pub enum J2kRateTarget {
BitsPerPixel(f64),
Bytes(u64),
PsnrDb(f64),
}Expand description
Rate target for stable lossy JPEG 2000 encoding.
Variants§
BitsPerPixel(f64)
Target total codestream bits per image pixel.
Bytes(u64)
Target total codestream byte size.
PsnrDb(f64)
Target decoded peak signal-to-noise ratio in dB.
Trait Implementations§
Source§impl Clone for J2kRateTarget
impl Clone for J2kRateTarget
Source§fn clone(&self) -> J2kRateTarget
fn clone(&self) -> J2kRateTarget
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 moreimpl Copy for J2kRateTarget
Source§impl Debug for J2kRateTarget
impl Debug for J2kRateTarget
Source§impl PartialEq for J2kRateTarget
impl PartialEq for J2kRateTarget
Source§fn eq(&self, other: &J2kRateTarget) -> bool
fn eq(&self, other: &J2kRateTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for J2kRateTarget
Auto Trait Implementations§
impl Freeze for J2kRateTarget
impl RefUnwindSafe for J2kRateTarget
impl Send for J2kRateTarget
impl Sync for J2kRateTarget
impl Unpin for J2kRateTarget
impl UnsafeUnpin for J2kRateTarget
impl UnwindSafe for J2kRateTarget
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