2
3
4
5
9#include "esp_idf_version.h"
10#include "esp_heap_caps.h"
12#define ESP_H264_MEM_INTERNAL MALLOC_CAP_INTERNAL
13#define ESP_H264_MEM_SPIRAM MALLOC_CAP_SPIRAM
14#define ALIGN_UP(num, align) (((num) + ((align) - 1
)) & ~((align) - 1
))
17
18
19#define esp_h264_free heap_caps_free
27
28
29
30
31
32
33
34
35
36
37
38
39void *
esp_h264_aligned_calloc(uint32_t alignment, uint32_t n, uint32_t size, uint32_t *actual_size, uint32_t caps);
42
43
44
45
46
47
48
49
50
51
52
53void *
esp_h264_calloc_prefer(uint32_t n, uint32_t size, uint32_t *actual_size, uint32_t caps1, uint32_t caps2);
void * esp_h264_aligned_calloc(uint32_t alignment, uint32_t n, uint32_t size, uint32_t *actual_size, uint32_t caps)
Allocate an aligned chunk of memory which has the given capabilities.
Definition: esp_h264_alloc.c:13
void * esp_h264_calloc_prefer(uint32_t n, uint32_t size, uint32_t *actual_size, uint32_t caps1, uint32_t caps2)
Allocate a chunk of memory as preference in decreasing order. And helper function for calloc a cache ...
Definition: esp_h264_alloc.c:27