[][src]Function libaom_sys::aom_img_alloc_with_border

pub unsafe extern "C" fn aom_img_alloc_with_border(
    img: *mut aom_image_t,
    fmt: aom_img_fmt_t,
    d_w: c_uint,
    d_h: c_uint,
    align: c_uint,
    size_align: c_uint,
    border: c_uint
) -> *mut aom_image_t

Open a descriptor, allocating storage for the underlying image with a border

Returns a descriptor for storing an image of the given format and its borders. 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). \param[in] size_align Alignment, in pixels, of the image width and height. \param[in] border A border that is padded on four sides of the image.

\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.