#[repr(C)]pub struct OmEncoder_t {
pub dimensions: *const u64,
pub chunks: *const u64,
pub dimension_count: u64,
pub compress_callback: om_compress_callback_t,
pub compress_filter_callback: om_compress_filter_callback_t,
pub compress_copy_callback: om_compress_copy_callback_t,
pub scale_factor: f32,
pub add_offset: f32,
pub bytes_per_element: i8,
pub bytes_per_element_compressed: i8,
}Fields§
§dimensions: *const u64§chunks: *const u64§dimension_count: u64§compress_callback: om_compress_callback_tThe callback to decompress data
compress_filter_callback: om_compress_filter_callback_tThe filter function for each compressed block. E.g. a 2D delta coding.
compress_copy_callback: om_compress_copy_callback_tCopy and scale individual values from a chunk into the output array
scale_factor: f32§add_offset: f32An offset to convert floats to integers while scaling
bytes_per_element: i8Number of bytes for a single element of the data type
bytes_per_element_compressed: i8Number of bytes for a single element in the compressed stream. E.g. Int16 could be used to scale down floats
Trait Implementations§
Source§impl Clone for OmEncoder_t
impl Clone for OmEncoder_t
Source§fn clone(&self) -> OmEncoder_t
fn clone(&self) -> OmEncoder_t
Returns a duplicate of the value. Read more
1.0.0 · 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 OmEncoder_t
impl Debug for OmEncoder_t
impl Copy for OmEncoder_t
Auto Trait Implementations§
impl Freeze for OmEncoder_t
impl RefUnwindSafe for OmEncoder_t
impl !Send for OmEncoder_t
impl !Sync for OmEncoder_t
impl Unpin for OmEncoder_t
impl UnwindSafe for OmEncoder_t
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