avpicture_alloc

Allocate memory for the pixels of a picture and setup the AVPicture fields for it.

Call avpicture_free() to free it.

@param picture the picture structure to be filled in @param pix_fmt the pixel format of the picture @param width the width of the picture @param height the height of the picture @return zero if successful, a negative error code otherwise

@see av_image_alloc(), avpicture_fill()

extern (C)
int
avpicture_alloc

Meta