Expand description
Memory management utilities — port of ojph_mem.h/cpp.
Provides aligned allocation, line buffers, and arena-style allocators that mirror the C++ OpenJPH memory model.
Structs§
- Aligned
Vec - A heap-allocated, contiguously-stored buffer with a guaranteed minimum byte
alignment (defaults to
BYTE_ALIGNMENT= 64, suitable for AVX-512). - Coded
Lists - A node in a singly-linked list of coded data buffers — port of
coded_lists. - Lifting
Buf - A line buffer reference used during wavelet lifting.
- LineBuf
- A single line (row) of sample data used throughout the wavelet and coding
pipeline — port of the C++
line_buf. - MemElastic
Allocator - An arena-style allocator that grows by appending large chunks.
- MemFixed
Allocator - A two-phase bump allocator for fixed-size, aligned sub-regions.
Enums§
- Line
BufData - Discriminated pointer to the actual sample data in a
LineBuf.
Constants§
- LFT_
32BIT - Flag: buffer elements are 32 bits wide.
- LFT_
64BIT - Flag: buffer elements are 64 bits wide.
- LFT_
INTEGER - Flag: buffer elements are integers (as opposed to float).
- LFT_
SIZE_ MASK - Mask that isolates the element-size field.
- LFT_
UNDEFINED - Flag: buffer type is undefined / not yet allocated.