Mercurial > libavcodec.hg
diff avcodec.h @ 4624:6a900f539e2c libavcodec
Add the prefix "av_" to img_crop(), img_copy() and img_pad(), and rename "img"
to "picture" as suggested by Baptiste Coudurier.
author | takis |
---|---|
date | Sun, 04 Mar 2007 11:53:11 +0000 |
parents | e541c0dd35dd |
children | 1416371d4a6c |
line wrap: on
line diff
--- a/avcodec.h Sun Mar 04 02:59:11 2007 +0000 +++ b/avcodec.h Sun Mar 04 11:53:11 2007 +0000 @@ -3008,21 +3008,32 @@ /** * Copy image 'src' to 'dst'. */ -void img_copy(AVPicture *dst, const AVPicture *src, +void av_picture_copy(AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height); /** * Crop image top and left side */ -int img_crop(AVPicture *dst, const AVPicture *src, +int av_picture_crop(AVPicture *dst, const AVPicture *src, int pix_fmt, int top_band, int left_band); /** * Pad image */ -int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, +int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color); +#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) +attribute_deprecated void img_copy(AVPicture *dst, const AVPicture *src, + int pix_fmt, int width, int height); + +attribute_deprecated int img_crop(AVPicture *dst, const AVPicture *src, + int pix_fmt, int top_band, int left_band); + +attribute_deprecated int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, + int padtop, int padbottom, int padleft, int padright, int *color); +#endif + extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v); /* error handling */