[−][src]Function mmal_sys::mmal_pool_resize
pub unsafe extern "C" fn mmal_pool_resize(
pool: *mut MMAL_POOL_T,
headers: c_uint,
payload_size: u32
) -> Type
Resize a pool of MMAL_BUFFER_HEADER_T. This allows modifying either the number of allocated buffers, the payload size or both at the same time.
@param pool Pointer to the pool @param headers New number of buffer headers to be allocated in the pool. It is not valid to pass zero for the number of buffers. @param payload_size Size of the payload buffer that will be allocated in each of the buffer headers. If this is set to 0, all payload buffers shall be released. @return MMAL_SUCCESS or an error on failure.