chore[mpp_mem]: Add mpp_realloc_size

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I896b4132e0fded153ee4d932b9c011bf3ba41c16
This commit is contained in:
Herman Chen 2024-08-29 17:53:01 +08:00
parent 2988a0c499
commit 295aa22639

View File

@ -31,15 +31,18 @@
#define mpp_malloc_size(type, size) \
(type*)mpp_osal_malloc(__FUNCTION__, size)
#define mpp_calloc_size(type, size) \
(type*)mpp_osal_calloc(__FUNCTION__, size)
#define mpp_calloc(type, count) \
(type*)mpp_osal_calloc(__FUNCTION__, sizeof(type) * (count))
#define mpp_calloc_size(type, size) \
(type*)mpp_osal_calloc(__FUNCTION__, size)
#define mpp_realloc(ptr, type, count) \
(type*)mpp_osal_realloc(__FUNCTION__, ptr, sizeof(type) * (count))
#define mpp_realloc_size(ptr, type, size) \
(type*)mpp_osal_realloc(__FUNCTION__, ptr, size)
#define mpp_free(ptr) \
mpp_osal_free(__FUNCTION__, ptr)