Function av_image_copy_to_buffer
pub unsafe extern "C" fn av_image_copy_to_buffer(
dst: *mut u8,
dst_size: i32,
src_data: *const *const u8,
src_linesize: *const i32,
pix_fmt: i32,
width: i32,
height: i32,
align: i32,
) -> i32
Expand description
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