#[repr(C)]pub struct OmDecoder_t {Show 18 fields
pub dimensions_count: u64,
pub io_size_merge: u64,
pub io_size_max: u64,
pub lut_chunk_length: u64,
pub lut_start: u64,
pub number_of_chunks: u64,
pub dimensions: *const u64,
pub chunks: *const u64,
pub read_offset: *const u64,
pub read_count: *const u64,
pub cube_dimensions: *const u64,
pub cube_offset: *const u64,
pub scale_factor: f32,
pub add_offset: f32,
pub data_type: u8,
pub compression: u8,
pub bytes_per_element: u8,
pub bytes_per_element_compressed: u8,
}
Fields§
§dimensions_count: u64
Number of dimensions
io_size_merge: u64
Combine smaller IO reads to a single larger read. If consecutive reads are smaller than io_size_merge
they might be merged. Default should be 512 bytes.
io_size_max: u64
The maximum IO size before IO operations are split up. Default 64k. If data is in memory, this can be set higher.
lut_chunk_length: u64
Each 64 LUT entries are compressed into a LUT chunk. The LUT chunk length returns the size in byte how large a maximum compressed size for a LUT chunk is. 0 for version 1/2 files that do not compress LUT.
lut_start: u64
The offset position where the LUT should start
number_of_chunks: u64
uint64_t of data chunks in this file. This value is computed in the initialisation.
dimensions: *const u64
The dimensions of the data array. The last dimension is the “fast” dimension meaning the elements are sequential in memory
chunks: *const u64
The chunk lengths for each dimension
read_offset: *const u64
The read offset to start reading data in each dimension
read_count: *const u64
How many elements in each dimension to read
cube_dimensions: *const u64
The dimensions of the target array. This can be the same as read_count
, but it is also possible to read into a larger array
cube_offset: *const u64
The offset for each dimension if data is read into a larger array.
scale_factor: f32
A scalefactor to convert floats to integers
add_offset: f32
An offset to convert floats to integers while scaling
data_type: u8
The data type of the data
compression: u8
The compression type of the data
bytes_per_element: u8
The size of the elements in bytes
bytes_per_element_compressed: u8
The size of the elements in bytes after compression, e.g. Int16 could be used to scale floats
Trait Implementations§
Source§impl Clone for OmDecoder_t
impl Clone for OmDecoder_t
Source§fn clone(&self) -> OmDecoder_t
fn clone(&self) -> OmDecoder_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more