av_image_copy_to_buffer

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

extern (C) @nogc nothrow
int
av_image_copy_to_buffer
(
ubyte* dst
,,
ref const(ubyte*)[4] src_data
,
ref const(int)[4] src_linesize
,,
int width
,
int height
,
int align_
)

Meta