av_image_get_buffer_size() can be used to compute the required size
for the buffer to fill.
@param dst a buffer into which picture data will be copied
@param dst_size the size in bytes of dst
@param src_data pointers containing the source image data
@param src_linesize linesizes for the image in src_data
@param pix_fmt the pixel format of the source image
@param width the width of the source image in pixels
@param height the height of the source image in pixels
@param align the assumed linesize alignment for dst
@return the number of bytes written to dst, or a negative value
(error code) on error
Copy image data from an image into a buffer.
av_image_get_buffer_size() can be used to compute the required size for the buffer to fill.
@param dst a buffer into which picture data will be copied @param dst_size the size in bytes of dst @param src_data pointers containing the source image data @param src_linesize linesizes for the image in src_data @param pix_fmt the pixel format of the source image @param width the width of the source image in pixels @param height the height of the source image in pixels @param align the assumed linesize alignment for dst @return the number of bytes written to dst, or a negative value (error code) on error