Function libaom_sys::aom_img_alloc

source ·
pub unsafe extern "C" fn aom_img_alloc(
    img: *mut aom_image_t,
    fmt: aom_img_fmt_t,
    d_w: c_uint,
    d_h: c_uint,
    align: c_uint
) -> *mut aom_image_t
Expand description

Open a descriptor, allocating storage for the underlying image

Returns a descriptor for storing an image of the given format. The storage for the image is allocated on the heap.

\param[in] img Pointer to storage for descriptor. If this parameter is NULL, the storage for the descriptor will be allocated on the heap. \param[in] fmt Format for the image \param[in] d_w Width of the image \param[in] d_h Height of the image \param[in] align Alignment, in bytes, of the image buffer and each row in the image (stride).

\return Returns a pointer to the initialized image descriptor. If the img parameter is non-null, the value of the img parameter will be returned.