comparison avcodec.h @ 4889:beeb03aad909 libavcodec

patch so that the deprecated items show up correctly when building doxygen docs patch by mark cox melbournemark plus ffmpeg minus devel chez gmail dot com
author benoit
date Wed, 02 May 2007 09:13:47 +0000
parents b23051d2a676
children 7f2863536c79
comparison
equal deleted inserted replaced
4888:185f5e4feb72 4889:beeb03aad909
2147 2147
2148 /** 2148 /**
2149 * AVPaletteControl 2149 * AVPaletteControl
2150 * This structure defines a method for communicating palette changes 2150 * This structure defines a method for communicating palette changes
2151 * between and demuxer and a decoder. 2151 * between and demuxer and a decoder.
2152 * This is totally broken, palette changes should be sent as AVPackets. 2152 *
2153 * @deprecated Use AVPacket to send palette changes instead.
2154 * This is totally broken.
2153 */ 2155 */
2154 #define AVPALETTE_SIZE 1024 2156 #define AVPALETTE_SIZE 1024
2155 #define AVPALETTE_COUNT 256 2157 #define AVPALETTE_COUNT 256
2156 typedef struct AVPaletteControl { 2158 typedef struct AVPaletteControl {
2157 2159
2462 void av_resample_close(struct AVResampleContext *c); 2464 void av_resample_close(struct AVResampleContext *c);
2463 2465
2464 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) 2466 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
2465 /* YUV420 format is assumed ! */ 2467 /* YUV420 format is assumed ! */
2466 2468
2469 /**
2470 * @deprecated Use the software scaler (swscale) instead.
2471 */
2467 struct ImgReSampleContext attribute_deprecated; 2472 struct ImgReSampleContext attribute_deprecated;
2468 2473
2474 /**
2475 * @deprecated Use the software scaler (swscale) instead.
2476 */
2469 typedef struct ImgReSampleContext ImgReSampleContext attribute_deprecated; 2477 typedef struct ImgReSampleContext ImgReSampleContext attribute_deprecated;
2470 2478
2479 /**
2480 * @deprecated Use the software scaler (swscale) instead.
2481 */
2471 attribute_deprecated ImgReSampleContext *img_resample_init(int output_width, int output_height, 2482 attribute_deprecated ImgReSampleContext *img_resample_init(int output_width, int output_height,
2472 int input_width, int input_height); 2483 int input_width, int input_height);
2473 2484
2485 /**
2486 * @deprecated Use the software scaler (swscale) instead.
2487 */
2474 attribute_deprecated ImgReSampleContext *img_resample_full_init(int owidth, int oheight, 2488 attribute_deprecated ImgReSampleContext *img_resample_full_init(int owidth, int oheight,
2475 int iwidth, int iheight, 2489 int iwidth, int iheight,
2476 int topBand, int bottomBand, 2490 int topBand, int bottomBand,
2477 int leftBand, int rightBand, 2491 int leftBand, int rightBand,
2478 int padtop, int padbottom, 2492 int padtop, int padbottom,
2479 int padleft, int padright); 2493 int padleft, int padright);
2480 2494
2481 2495 /**
2496 * @deprecated Use the software scaler (swscale) instead.
2497 */
2482 attribute_deprecated void img_resample(ImgReSampleContext *s, 2498 attribute_deprecated void img_resample(ImgReSampleContext *s,
2483 AVPicture *output, const AVPicture *input); 2499 AVPicture *output, const AVPicture *input);
2484 2500
2501 /**
2502 * @deprecated Use the software scaler (swscale) instead.
2503 */
2485 attribute_deprecated void img_resample_close(ImgReSampleContext *s); 2504 attribute_deprecated void img_resample_close(ImgReSampleContext *s);
2486 2505
2487 #endif 2506 #endif
2488 2507
2489 /** 2508 /**
2602 */ 2621 */
2603 int img_get_alpha_info(const AVPicture *src, 2622 int img_get_alpha_info(const AVPicture *src,
2604 int pix_fmt, int width, int height); 2623 int pix_fmt, int width, int height);
2605 2624
2606 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) 2625 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
2607 /* convert among pixel formats */ 2626 /**
2627 * convert among pixel formats
2628 * @deprecated Use the software scaler (swscale) instead.
2629 */
2608 attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt, 2630 attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt,
2609 const AVPicture *src, int pix_fmt, 2631 const AVPicture *src, int pix_fmt,
2610 int width, int height); 2632 int width, int height);
2611 #endif 2633 #endif
2612 2634
3044 /* for static data only */ 3066 /* for static data only */
3045 3067
3046 /** 3068 /**
3047 * Frees all static arrays and resets their pointers to 0. 3069 * Frees all static arrays and resets their pointers to 0.
3048 * Call this function to release all statically allocated tables. 3070 * Call this function to release all statically allocated tables.
3071 *
3072 * @deprecated. Code which uses av_free_static is broken/missdesigned
3073 * and should correctly use static arrays
3074 *
3049 */ 3075 */
3050 attribute_deprecated void av_free_static(void); 3076 attribute_deprecated void av_free_static(void);
3051 3077
3052 /** 3078 /**
3053 * Allocation of static arrays. 3079 * Allocation of static arrays.
3054 * 3080 *
3055 * @warning Do not use for normal allocation. 3081 * @warning Do not use for normal allocation.
3056 * 3082 *
3057 * @param[in] size The amount of memory you need in bytes. 3083 * @param[in] size The amount of memory you need in bytes.
3058 * @return block of memory of the requested size 3084 * @return block of memory of the requested size
3085 * @deprecated. Code which uses av_mallocz_static is broken/missdesigned
3086 * and should correctly use static arrays
3059 */ 3087 */
3060 attribute_deprecated void *av_mallocz_static(unsigned int size); 3088 attribute_deprecated void *av_mallocz_static(unsigned int size);
3061 3089
3062 /** 3090 /**
3063 * Copy image 'src' to 'dst'. 3091 * Copy image 'src' to 'dst'.
3076 */ 3104 */
3077 int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, 3105 int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt,
3078 int padtop, int padbottom, int padleft, int padright, int *color); 3106 int padtop, int padbottom, int padleft, int padright, int *color);
3079 3107
3080 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) 3108 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
3109 /**
3110 * @deprecated Use the software scaler (swscale) instead.
3111 */
3081 attribute_deprecated void img_copy(AVPicture *dst, const AVPicture *src, 3112 attribute_deprecated void img_copy(AVPicture *dst, const AVPicture *src,
3082 int pix_fmt, int width, int height); 3113 int pix_fmt, int width, int height);
3083 3114
3115 /**
3116 * @deprecated Use the software scaler (swscale) instead.
3117 */
3084 attribute_deprecated int img_crop(AVPicture *dst, const AVPicture *src, 3118 attribute_deprecated int img_crop(AVPicture *dst, const AVPicture *src,
3085 int pix_fmt, int top_band, int left_band); 3119 int pix_fmt, int top_band, int left_band);
3086 3120
3121 /**
3122 * @deprecated Use the software scaler (swscale) instead.
3123 */
3087 attribute_deprecated int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, 3124 attribute_deprecated int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt,
3088 int padtop, int padbottom, int padleft, int padright, int *color); 3125 int padtop, int padbottom, int padleft, int padright, int *color);
3089 #endif 3126 #endif
3090 3127
3091 extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v); 3128 extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v);