| @@ -729,7 +729,13 @@ typedef struct RcOverride{ · 728 unmodified lines |
| 729 | 729 | #define CODEC_FLAG_PASS1 0x0200 ///< Use internal 2pass ratecontrol in first pass mode. |
| 730 | 730 | #define CODEC_FLAG_PASS2 0x0400 ///< Use internal 2pass ratecontrol in second pass mode. |
| 731 | 731 | #define CODEC_FLAG_GRAY 0x2000 ///< Only decode/encode grayscale. |
| 732 | | −#define CODEC_FLAG_EMU_EDGE 0x4000 ///< Don't draw edges. |
| 732 | +#if FF_API_EMU_EDGE |
| 733 | +/** |
| 734 | + * @deprecated edges are not used/required anymore. I.e. this flag is now always |
| 735 | + * set. |
| 736 | + */ |
| 737 | +#define CODEC_FLAG_EMU_EDGE 0x4000 |
| 738 | +#endif |
| 733 | 739 | #define CODEC_FLAG_PSNR 0x8000 ///< error[?] variables will be set during encoding. |
| 734 | 740 | #define CODEC_FLAG_TRUNCATED 0x00010000 /** Input bitstream might be truncated at a random |
| 735 | 741 | location instead of only at frame boundaries. */ |
| @@ -2152,9 +2158,6 @@ typedef struct AVCodecContext { · 1416 unmodified lines |
| 2152 | 2158 | * If AV_GET_BUFFER_FLAG_REF is set in flags then the frame may be reused |
| 2153 | 2159 | * (read and/or written to if it is writable) later by libavcodec. |
| 2154 | 2160 | * |
| 2155 | | − * If CODEC_FLAG_EMU_EDGE is not set in s->flags, the buffer must contain an |
| 2156 | | − * edge of the size returned by avcodec_get_edge_width() on all sides. |
| 2157 | | − * |
| 2158 | 2161 | * avcodec_align_dimensions2() should be used to find the required width and |
| 2159 | 2162 | * height, as they normally need to be rounded up to the next multiple of 16. |
| 2160 | 2163 | * |
| @@ -3738,14 +3741,20 @@ attribute_deprecated int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame · 1577 unmodified lines |
| 3738 | 3741 | */ |
| 3739 | 3742 | int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags); |
| 3740 | 3743 | |
| 3744 | +#if FF_API_EMU_EDGE |
| 3741 | 3745 | /** |
| 3742 | 3746 | * Return the amount of padding in pixels which the get_buffer callback must |
| 3743 | 3747 | * provide around the edge of the image for codecs which do not have the |
| 3744 | 3748 | * CODEC_FLAG_EMU_EDGE flag. |
| 3745 | 3749 | * |
| 3746 | 3750 | * @return Required padding in pixels. |
| 3751 | + * |
| 3752 | + * @deprecated CODEC_FLAG_EMU_EDGE is deprecated, so this function is no longer |
| 3753 | + * needed |
| 3747 | 3754 | */ |
| 3755 | +attribute_deprecated |
| 3748 | 3756 | unsigned avcodec_get_edge_width(void); |
| 3757 | +#endif |
| 3749 | 3758 | |
| 3750 | 3759 | /** |
| 3751 | 3760 | * Modify width and height values so that they will result in a memory |
| @@ -3753,8 +3762,6 @@ unsigned avcodec_get_edge_width(void); · 1 unmodified line |
| 3753 | 3762 | * padding. |
| 3754 | 3763 | * |
| 3755 | 3764 | * May only be used if a codec with CODEC_CAP_DR1 has been opened. |
| 3756 | | − * If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased |
| 3757 | | − * according to avcodec_get_edge_width() before. |
| 3758 | 3765 | */ |
| 3759 | 3766 | void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); |
| 3760 | 3767 | |
| @@ -3764,8 +3771,6 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); · 3 unmodified lines |
| 3764 | 3771 | * line sizes are a multiple of the respective linesize_align[i]. |
| 3765 | 3772 | * |
| 3766 | 3773 | * May only be used if a codec with CODEC_CAP_DR1 has been opened. |
| 3767 | | − * If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased |
| 3768 | | − * according to avcodec_get_edge_width() before. |
| 3769 | 3774 | */ |
| 3770 | 3775 | void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, |
| 3771 | 3776 | int linesize_align[AV_NUM_DATA_POINTERS]); |