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 = \frac{maxbits}{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 = \text{floor}(\log_{2}(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§const fn clone_from(&mut self, source: &Self)
const 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
Source§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
$ref
keyword. Read more