|
OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_mem.h>
Public Member Functions | |
| mem_fixed_allocator () | |
| ~mem_fixed_allocator () | |
| template<typename T> | |
| void | pre_alloc_data (size_t num_ele, ui32 pre_size) |
| template<typename T> | |
| void | pre_alloc_obj (size_t num_ele) |
| void | alloc () |
| void | restart () |
| template<typename T> | |
| T * | post_alloc_data (size_t num_ele, ui32 pre_size) |
| template<typename T> | |
| T * | post_alloc_obj (size_t num_ele) |
Private Member Functions | |
| template<typename T, int N> | |
| void | pre_alloc_local (size_t num_ele, ui32 pre_size, size_t &sz) |
| template<typename T, int N> | |
| T * | post_alloc_local (size_t num_ele, ui32 pre_size, size_t &avail_sz, void *&avail_p) |
Private Attributes | |
| void * | store |
| void * | avail_data |
| void * | avail_obj |
| size_t | size_data |
| size_t | size_obj |
| size_t | avail_size_obj |
| size_t | avail_size_data |
| size_t | allocated_data |
| bool | preallocation |
Definition at line 57 of file ojph_mem.h.
|
inline |
Definition at line 60 of file ojph_mem.h.
References allocated_data, restart(), and store.
|
inline |
Definition at line 65 of file ojph_mem.h.
References store.
|
inline |
Definition at line 82 of file ojph_mem.h.
References allocated_data, avail_data, avail_obj, avail_size_data, avail_size_obj, preallocation, size_data, size_obj, and store.
|
inline |
Definition at line 111 of file ojph_mem.h.
References avail_data, avail_size_data, and post_alloc_local().
Referenced by ojph::local::codeblock::finalize_alloc(), ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), and ojph::local::tile::finalize_alloc().
|
inlineprivate |
Definition at line 137 of file ojph_mem.h.
References ojph::align_ptr(), ojph::calc_aligned_size(), and preallocation.
Referenced by post_alloc_data(), and post_alloc_obj().
|
inline |
Definition at line 118 of file ojph_mem.h.
References avail_obj, avail_size_obj, and post_alloc_local().
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), ojph::local::tile::finalize_alloc(), and ojph::local::tile_comp::finalize_alloc().
|
inline |
Definition at line 71 of file ojph_mem.h.
References pre_alloc_local(), and size_data.
Referenced by ojph::local::codeblock::pre_alloc(), ojph::local::resolution::pre_alloc(), ojph::local::subband::pre_alloc(), and ojph::local::tile::pre_alloc().
|
inlineprivate |
Definition at line 126 of file ojph_mem.h.
References ojph::calc_aligned_size(), and preallocation.
Referenced by pre_alloc_data(), and pre_alloc_obj().
|
inline |
Definition at line 77 of file ojph_mem.h.
References pre_alloc_local(), and size_obj.
Referenced by ojph::local::resolution::pre_alloc(), ojph::local::subband::pre_alloc(), ojph::local::tile::pre_alloc(), and ojph::local::tile_comp::pre_alloc().
|
inline |
Definition at line 103 of file ojph_mem.h.
References avail_data, avail_obj, avail_size_data, avail_size_obj, preallocation, size_data, and size_obj.
Referenced by mem_fixed_allocator().
|
private |
Definition at line 154 of file ojph_mem.h.
Referenced by alloc(), and mem_fixed_allocator().
|
private |
Definition at line 152 of file ojph_mem.h.
Referenced by alloc(), post_alloc_data(), and restart().
|
private |
Definition at line 152 of file ojph_mem.h.
Referenced by alloc(), post_alloc_obj(), and restart().
|
private |
Definition at line 153 of file ojph_mem.h.
Referenced by alloc(), post_alloc_data(), and restart().
|
private |
Definition at line 153 of file ojph_mem.h.
Referenced by alloc(), post_alloc_obj(), and restart().
|
private |
Definition at line 155 of file ojph_mem.h.
Referenced by alloc(), post_alloc_local(), pre_alloc_local(), and restart().
|
private |
Definition at line 153 of file ojph_mem.h.
Referenced by alloc(), pre_alloc_data(), and restart().
|
private |
Definition at line 153 of file ojph_mem.h.
Referenced by alloc(), pre_alloc_obj(), and restart().
|
private |
Definition at line 152 of file ojph_mem.h.
Referenced by alloc(), mem_fixed_allocator(), and ~mem_fixed_allocator().