|
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 75 of file ojph_mem.h.
|
inline |
Definition at line 78 of file ojph_mem.h.
References allocated_data, restart(), and store.
|
inline |
Definition at line 83 of file ojph_mem.h.
References store.
|
inline |
Definition at line 100 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 129 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 155 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 136 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 89 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 144 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 95 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 121 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 172 of file ojph_mem.h.
Referenced by alloc(), and mem_fixed_allocator().
|
private |
Definition at line 170 of file ojph_mem.h.
Referenced by alloc(), post_alloc_data(), and restart().
|
private |
Definition at line 170 of file ojph_mem.h.
Referenced by alloc(), post_alloc_obj(), and restart().
|
private |
Definition at line 171 of file ojph_mem.h.
Referenced by alloc(), post_alloc_data(), and restart().
|
private |
Definition at line 171 of file ojph_mem.h.
Referenced by alloc(), post_alloc_obj(), and restart().
|
private |
Definition at line 173 of file ojph_mem.h.
Referenced by alloc(), post_alloc_local(), pre_alloc_local(), and restart().
|
private |
Definition at line 171 of file ojph_mem.h.
Referenced by alloc(), pre_alloc_data(), and restart().
|
private |
Definition at line 171 of file ojph_mem.h.
Referenced by alloc(), pre_alloc_obj(), and restart().
|
private |
Definition at line 170 of file ojph_mem.h.
Referenced by alloc(), mem_fixed_allocator(), and ~mem_fixed_allocator().