X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fbit_depth_template.c;h=27e658ba75fffc4f2a36df292eb407390703eaf0;hb=c697c590fbf296b1679b80c8f4071e4c8a6c884b;hp=9071ec2a35135106071d199dd3a153ad684b9741;hpb=39c2a6bf44b25534fdbc9b6ac3844dab28ba5b0e;p=ffmpeg diff --git a/libavcodec/bit_depth_template.c b/libavcodec/bit_depth_template.c index 9071ec2a351..27e658ba75f 100644 --- a/libavcodec/bit_depth_template.c +++ b/libavcodec/bit_depth_template.c @@ -16,13 +16,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "dsputil.h" +#include "mathops.h" +#include "rnd_avg.h" #ifndef BIT_DEPTH #define BIT_DEPTH 8 #endif -#ifdef AVCODEC_H264_HIGH_DEPTH_H +#ifdef AVCODEC_BIT_DEPTH_TEMPLATE_C # undef pixel # undef pixel2 # undef pixel4 @@ -42,7 +43,7 @@ # undef av_clip_pixel # undef PIXEL_SPLAT_X4 #else -# define AVCODEC_H264_HIGH_DEPTH_H +# define AVCODEC_BIT_DEPTH_TEMPLATE_C #endif #if BIT_DEPTH > 8 @@ -70,7 +71,7 @@ # define pixel4 uint32_t # define dctcoef int16_t -# define INIT_CLIP uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; +# define INIT_CLIP const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; # define no_rnd_avg_pixel4 no_rnd_avg32 # define rnd_avg_pixel4 rnd_avg32 # define AV_RN2P AV_RN16