pub enum ZfpCompressionMode {
Expert {
min_bits: u32,
max_bits: u32,
max_prec: u32,
min_exp: i32,
},
FixedRate {
rate: f64,
},
FixedPrecision {
precision: u32,
},
FixedAccuracy {
tolerance: f64,
},
Reversible,
}
Expand description
ZFP compression mode
Variants§
Expert
The most general mode, which can describe all four other modes
Fields
FixedRate
In fixed-rate mode, each d-dimensional compressed block of 4^d values
is stored using a fixed number of bits. This number of compressed bits
per block is amortized over the 4^d values to give a rate of
rate = max_bits / 4^d
in bits per value.
FixedPrecision
In fixed-precision mode, the number of bits used to encode a block may vary, but the number of bit planes (the precision) encoded for the transform coefficients is fixed.
FixedAccuracy
In fixed-accuracy mode, all transform coefficient bit planes up to a
minimum bit plane number are encoded. The smallest absolute bit plane
number is chosen such that minexp = floor(log2(tolerance))
.
Reversible
Lossless per-block compression that preserves integer and floating point bit patterns.
Trait Implementations§
Source§impl Clone for ZfpCompressionMode
impl Clone for ZfpCompressionMode
Source§fn clone(&self) -> ZfpCompressionMode
fn clone(&self) -> ZfpCompressionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZfpCompressionMode
impl Debug for ZfpCompressionMode
Source§impl<'de> Deserialize<'de> for ZfpCompressionMode
impl<'de> Deserialize<'de> for ZfpCompressionMode
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>,
Source§impl JsonSchema for ZfpCompressionMode
impl JsonSchema for ZfpCompressionMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for ZfpCompressionMode
impl RefUnwindSafe for ZfpCompressionMode
impl Send for ZfpCompressionMode
impl Sync for ZfpCompressionMode
impl Unpin for ZfpCompressionMode
impl UnwindSafe for ZfpCompressionMode
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)