Defined in avcodec.h
Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.
int avpicture_get_size(int pix_fmt, int width, int height);
int pix_fmt
The given picture format. The picture format is one of the PixelFormat values.
int width
The width of the image.
int height
The height of the image.