SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
posix_memalign.cpp
Go to the documentation of this file.
1 #include <cassert>
2 #include <cstdlib>
3 
4 using namespace std;
5 
6 namespace CVD {
7 
8 namespace Internal {
9 
10 void * aligned_alloc(size_t count, size_t alignment){
11  void * mem = NULL;
12  const int alloc_err = posix_memalign(&mem, alignment, count);
13  assert(alloc_err == 0);
14  return mem;
15 }
16 
17 void aligned_free(void * memory){
18  free(memory);
19 }
20 
21 } // namespace Internal
22 
23 } // namespace CVD
void * aligned_alloc(size_t count, size_t alignment)
Definition: aligned_mem.h:41
Definition: abs.h:24
void aligned_free(void *memory)