[][src]Function stainless_ffmpeg_sys::av_image_copy_to_buffer

pub unsafe extern "C" fn av_image_copy_to_buffer(
    dst: *mut u8,
    dst_size: c_int,
    src_data: *const *const u8,
    src_linesize: *const c_int,
    pix_fmt: AVPixelFormat,
    width: c_int,
    height: c_int,
    align: c_int
) -> c_int

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