[][src]Function ffmpeg_sys_next::av_image_get_buffer_size

pub unsafe extern "C" fn av_image_get_buffer_size(
    pix_fmt: AVPixelFormat,
    width: c_int,
    height: c_int,
    align: c_int
) -> c_int

Return the size in bytes of the amount of data required to store an image with the given parameters.

@param pix_fmt the pixel format of the image @param width the width of the image in pixels @param height the height of the image in pixels @param align the assumed linesize alignment @return the buffer size in bytes, a negative error code in case of failure