OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_mem.h>
Classes | |
struct | stores_list |
Public Member Functions | |
mem_elastic_allocator (ui32 chunk_size) | |
~mem_elastic_allocator () | |
void | get_buffer (ui32 needed_bytes, coded_lists *&p) |
Private Attributes | |
stores_list * | store |
stores_list * | cur_store |
size_t | total_allocated |
const ui32 | chunk_size |
Definition at line 177 of file ojph_mem.h.
|
inline |
Definition at line 184 of file ojph_mem.h.
References cur_store, store, and total_allocated.
|
inline |
Definition at line 188 of file ojph_mem.h.
References ojph::mem_elastic_allocator::stores_list::next_store, and store.
void ojph::mem_elastic_allocator::get_buffer | ( | ui32 | needed_bytes, |
coded_lists *& | p | ||
) |
Definition at line 95 of file ojph_mem.cpp.
References ojph::mem_elastic_allocator::stores_list::available, chunk_size, cur_store, ojph::mem_elastic_allocator::stores_list::data, ojph::mem_elastic_allocator::stores_list::eval_store_bytes(), ojph::mem_elastic_allocator::stores_list::next_store, ojph_max, store, and total_allocated.
Referenced by ojph::local::bb_expand_buf(), ojph::local::bb_read_chunk(), ojph::local::ojph_encode_codeblock(), and ojph::local::ojph_encode_codeblock_avx512().
|
private |
Definition at line 219 of file ojph_mem.h.
Referenced by get_buffer().
|
private |
Definition at line 217 of file ojph_mem.h.
Referenced by get_buffer(), and mem_elastic_allocator().
|
private |
Definition at line 217 of file ojph_mem.h.
Referenced by get_buffer(), mem_elastic_allocator(), and ~mem_elastic_allocator().
|
private |
Definition at line 218 of file ojph_mem.h.
Referenced by get_buffer(), and mem_elastic_allocator().