=====avpicture_get_size=====
====Overview====
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);
====Parameters====
===pix_fmt===
int pix_fmt
The given picture format. The picture format is one of the [[ffmpeg:PixelFormat]] values.
===width===
int width
The width of the image.
===height===
int height
The height of the image.
====Return value====
Image data size in bytes.
----
Back to [[ffmpeg:ffmpeg]]