Mercurial > libavcore.hg
diff imgutils.h @ 24:c063c88b1309 libavcore
Move av_picture_data_copy() to libavcore, and rename it
av_image_copy().
author | stefano |
---|---|
date | Tue, 07 Sep 2010 21:23:55 +0000 |
parents | 478992775cf8 |
children | 63d8168fa16a |
line wrap: on
line diff
--- a/imgutils.h Tue Sep 07 21:23:45 2010 +0000 +++ b/imgutils.h Tue Sep 07 21:23:55 2010 +0000 @@ -91,6 +91,16 @@ int bytewidth, int height); /** + * Copy image in src_data to dst_data. + * + * @param dst_linesize linesizes for the image in dst_data + * @param src_linesize linesizes for the image in src_data + */ +void av_image_copy(uint8_t *dst_data[4], int dst_linesize[4], + const uint8_t *src_data[4], const int src_linesize[4], + enum PixelFormat pix_fmt, int width, int height); + +/** * Check if the given dimension of an image is valid, meaning that all * bytes of the image can be addressed with a signed int. *