upipe/udict_inline.h header reference
Upipe inline manager of dictionary of attributes More
Header inclusion
Members
Function
- struct udict_mgr * udict_inline_mgr_alloc(uint16_t udict_pool_depth, struct umem_mgr *umem_mgr, int min_size, int extra_size)
Description
This manager stores all attributes inline inside a single umem block. This is designed in order to minimize calls to memory allocators, and to transmit dictionaries over streams.
Members detail
This macro is declared in upipe/udict_inline.h source file, line 34.
struct udict_mgr * udict_inline_mgr_alloc(uint16_t udict_pool_depth, struct umem_mgr *umem_mgr, int min_size, int extra_size)
This function is declared in upipe/udict_inline.h source file, line 56.
This function allocates a new instance of the inline udict manager.
Parameter list:
- udict_pool_depth: maximum number of udict structures in the pool
- umem_mgr: memory allocator to use for buffers
- min_size: minimum allocated space for the udict (if set to -1, a default sensible value is used)
- extra_size: extra space added when the udict needs to be resized (if set to -1, a default sensible value is used)
The return value is pointer to manager, or NULL in case of error