Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4623:e541c0dd35dd | 4624:6a900f539e2c |
|---|---|
| 3006 void *av_mallocz_static(unsigned int size); | 3006 void *av_mallocz_static(unsigned int size); |
| 3007 | 3007 |
| 3008 /** | 3008 /** |
| 3009 * Copy image 'src' to 'dst'. | 3009 * Copy image 'src' to 'dst'. |
| 3010 */ | 3010 */ |
| 3011 void img_copy(AVPicture *dst, const AVPicture *src, | 3011 void av_picture_copy(AVPicture *dst, const AVPicture *src, |
| 3012 int pix_fmt, int width, int height); | 3012 int pix_fmt, int width, int height); |
| 3013 | 3013 |
| 3014 /** | 3014 /** |
| 3015 * Crop image top and left side | 3015 * Crop image top and left side |
| 3016 */ | 3016 */ |
| 3017 int img_crop(AVPicture *dst, const AVPicture *src, | 3017 int av_picture_crop(AVPicture *dst, const AVPicture *src, |
| 3018 int pix_fmt, int top_band, int left_band); | 3018 int pix_fmt, int top_band, int left_band); |
| 3019 | 3019 |
| 3020 /** | 3020 /** |
| 3021 * Pad image | 3021 * Pad image |
| 3022 */ | 3022 */ |
| 3023 int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, | 3023 int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, |
| 3024 int padtop, int padbottom, int padleft, int padright, int *color); | 3024 int padtop, int padbottom, int padleft, int padright, int *color); |
| 3025 | |
| 3026 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) | |
| 3027 attribute_deprecated void img_copy(AVPicture *dst, const AVPicture *src, | |
| 3028 int pix_fmt, int width, int height); | |
| 3029 | |
| 3030 attribute_deprecated int img_crop(AVPicture *dst, const AVPicture *src, | |
| 3031 int pix_fmt, int top_band, int left_band); | |
| 3032 | |
| 3033 attribute_deprecated int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, | |
| 3034 int padtop, int padbottom, int padleft, int padright, int *color); | |
| 3035 #endif | |
| 3025 | 3036 |
| 3026 extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v); | 3037 extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v); |
| 3027 | 3038 |
| 3028 /* error handling */ | 3039 /* error handling */ |
| 3029 #if EINVAL > 0 | 3040 #if EINVAL > 0 |
