AL_AllocatorVtable - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English

Supplies memory management functions for the AL_TAllocator type.

Table 1. Function Descriptions
Type Field Description
bool (*pfnDestroy)(AL_TAllocator*) pfnDestroy Releases resources associated with the allocator. This function relates to the allocator, not an allocated handle.
AL_HANDLE (*pfnAlloc)(AL_TAllocator*, size_t) pfnAlloc Allocates a handle of a given size. Returns NULL if allocation fails.
bool (*pfnFree)(AL_TAllocator*, AL_HANDLE) pfnFree Releases resources associated with a handle returned by pfnAlloc. Returns true, if successful and false otherwise.
AL_VADDR (*pfnGetVirtualAddr)(AL_TAllocator*, AL_HANDLE) pfnGetVirtualAddr Translates the given handle into a virtual address.
AL_PADDR (*pfnGetPhysicalAddr)(AL_TAllocator*, AL_HANDLE) pfnGetPhysicalAddr Translates the given handle into a physical address.
AL_HANDLE (*pfnAllocNamed)(AL_TAllocator*, size_t, char const* name) pfnAllocNamed Allocates a buffer with a given name. The name is intended for developer code and is not used internally to the VCU Encoder API or VCU Decoder API.