upipe/ubuf_block_mem.h header reference
Upipe ubuf manager for block formats with umem storage More
Header inclusion
Members
Function
- struct ubuf_mgr * ubuf_block_mem_mgr_alloc(uint16_t ubuf_pool_depth, uint16_t shared_pool_depth, struct umem_mgr *umem_mgr, int align, int align_offset)
Description
Upipe ubuf manager for block formats with umem storage
Members detail
This macro is declared in upipe/ubuf_block_mem.h source file, line 31.
struct ubuf_mgr * ubuf_block_mem_mgr_alloc(uint16_t ubuf_pool_depth, uint16_t shared_pool_depth, struct umem_mgr *umem_mgr, int align, int align_offset)
This function is declared in upipe/ubuf_block_mem.h source file, line 60.
This function allocates a new instance of the ubuf manager for block formats using umem.
Parameters list:
- ubuf_pool_depth: maximum number of ubuf structures in the pool
- shared_pool_depth: maximum number of shared structures in the pool
- umem_mgr: memory allocator to use for buffers
- align: default alignment in octets (if set to -1, a default sensible value is used)
- align_offset: offset of the aligned octet, in octets (may be negative)
The return value is pointer to manager, or NULL in case of error