Mercurial > libavcodec.hg
comparison avcodec.h @ 4537:f3b85d4ee26b libavcodec
remove imgresample and convert with the next version bump
| author | michael |
|---|---|
| date | Sat, 17 Feb 2007 11:55:57 +0000 |
| parents | 9bf957e669f0 |
| children | c0bf618fbe7e |
comparison
equal
deleted
inserted
replaced
| 4536:0430aafe6f01 | 4537:f3b85d4ee26b |
|---|---|
| 2402 struct AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff); | 2402 struct AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff); |
| 2403 int av_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx); | 2403 int av_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx); |
| 2404 void av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance); | 2404 void av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance); |
| 2405 void av_resample_close(struct AVResampleContext *c); | 2405 void av_resample_close(struct AVResampleContext *c); |
| 2406 | 2406 |
| 2407 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) | |
| 2407 /* YUV420 format is assumed ! */ | 2408 /* YUV420 format is assumed ! */ |
| 2408 | 2409 |
| 2409 struct ImgReSampleContext; | 2410 struct ImgReSampleContext attribute_deprecated; |
| 2410 | 2411 |
| 2411 typedef struct ImgReSampleContext ImgReSampleContext; | 2412 typedef struct ImgReSampleContext ImgReSampleContext attribute_deprecated; |
| 2412 | 2413 |
| 2413 ImgReSampleContext *img_resample_init(int output_width, int output_height, | 2414 attribute_deprecated ImgReSampleContext *img_resample_init(int output_width, int output_height, |
| 2414 int input_width, int input_height); | 2415 int input_width, int input_height); |
| 2415 | 2416 |
| 2416 ImgReSampleContext *img_resample_full_init(int owidth, int oheight, | 2417 attribute_deprecated ImgReSampleContext *img_resample_full_init(int owidth, int oheight, |
| 2417 int iwidth, int iheight, | 2418 int iwidth, int iheight, |
| 2418 int topBand, int bottomBand, | 2419 int topBand, int bottomBand, |
| 2419 int leftBand, int rightBand, | 2420 int leftBand, int rightBand, |
| 2420 int padtop, int padbottom, | 2421 int padtop, int padbottom, |
| 2421 int padleft, int padright); | 2422 int padleft, int padright); |
| 2422 | 2423 |
| 2423 | 2424 |
| 2424 void img_resample(ImgReSampleContext *s, | 2425 attribute_deprecated void img_resample(ImgReSampleContext *s, |
| 2425 AVPicture *output, const AVPicture *input); | 2426 AVPicture *output, const AVPicture *input); |
| 2426 | 2427 |
| 2427 void img_resample_close(ImgReSampleContext *s); | 2428 attribute_deprecated void img_resample_close(ImgReSampleContext *s); |
| 2429 | |
| 2430 #endif | |
| 2428 | 2431 |
| 2429 /** | 2432 /** |
| 2430 * Allocate memory for a picture. Call avpicture_free to free it. | 2433 * Allocate memory for a picture. Call avpicture_free to free it. |
| 2431 * | 2434 * |
| 2432 * @param picture the picture to be filled in. | 2435 * @param picture the picture to be filled in. |
| 2466 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ | 2469 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ |
| 2467 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ | 2470 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ |
| 2468 int img_get_alpha_info(const AVPicture *src, | 2471 int img_get_alpha_info(const AVPicture *src, |
| 2469 int pix_fmt, int width, int height); | 2472 int pix_fmt, int width, int height); |
| 2470 | 2473 |
| 2474 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) | |
| 2471 /* convert among pixel formats */ | 2475 /* convert among pixel formats */ |
| 2472 int img_convert(AVPicture *dst, int dst_pix_fmt, | 2476 attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt, |
| 2473 const AVPicture *src, int pix_fmt, | 2477 const AVPicture *src, int pix_fmt, |
| 2474 int width, int height); | 2478 int width, int height); |
| 2479 #endif | |
| 2475 | 2480 |
| 2476 /* deinterlace a picture */ | 2481 /* deinterlace a picture */ |
| 2477 int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, | 2482 int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, |
| 2478 int pix_fmt, int width, int height); | 2483 int pix_fmt, int width, int height); |
| 2479 | 2484 |
