Mercurial > libavcore.hg
comparison imgutils.h @ 23:478992775cf8 libavcore
Reimplement ff_img_copy_plane() as av_image_copy_plane() in libavcore,
and deprecate the old function.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 21:23:45 +0000 |
parents | 0899fc09d43c |
children | c063c88b1309 |
comparison
equal
deleted
inserted
replaced
22:0899fc09d43c | 23:478992775cf8 |
---|---|
76 */ | 76 */ |
77 int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height, | 77 int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height, |
78 uint8_t *ptr, const int linesizes[4]); | 78 uint8_t *ptr, const int linesizes[4]); |
79 | 79 |
80 /** | 80 /** |
81 * Copy image plane from src to dst. | |
82 * That is, copy "height" number of lines of "bytewidth" bytes each. | |
83 * The first byte of each successive line is separated by *_linesize | |
84 * bytes. | |
85 * | |
86 * @param dst_linesize linesize for the image plane in dst | |
87 * @param src_linesize linesize for the image plane in src | |
88 */ | |
89 void av_image_copy_plane(uint8_t *dst, int dst_linesize, | |
90 const uint8_t *src, int src_linesize, | |
91 int bytewidth, int height); | |
92 | |
93 /** | |
81 * Check if the given dimension of an image is valid, meaning that all | 94 * Check if the given dimension of an image is valid, meaning that all |
82 * bytes of the image can be addressed with a signed int. | 95 * bytes of the image can be addressed with a signed int. |
83 * | 96 * |
84 * @param w the width of the picture | 97 * @param w the width of the picture |
85 * @param h the height of the picture | 98 * @param h the height of the picture |