[][src]Function mmal_sys::mmal_format_extradata_alloc

pub unsafe extern "C" fn mmal_format_extradata_alloc(
    format: *mut MMAL_ES_FORMAT_T,
    size: c_uint
) -> Type

Allocate the extradata buffer in \ref MMAL_ES_FORMAT_T. This buffer will be freed automatically when the format is destroyed or another allocation is done.

@param format format structure for which the extradata buffer will be allocated @param size size of the extradata buffer to allocate @return MMAL_SUCCESS on success