X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264dsp_template.c;h=0288cc761e10e43260f8535413934b15daa57cad;hb=cee1f4c06986941bd31cc19f4333d436394aa6f9;hp=d9dcf6b7c373a5d1ffcff9384ba8303875d3922b;hpb=3536493082be8a4837a2a6aaeecb07ad190beefb;p=ffmpeg diff --git a/libavcodec/h264dsp_template.c b/libavcodec/h264dsp_template.c index d9dcf6b7c37..0288cc761e1 100644 --- a/libavcodec/h264dsp_template.c +++ b/libavcodec/h264dsp_template.c @@ -30,7 +30,7 @@ #define op_scale1(x) block[x] = av_clip_pixel( (block[x]*weight + offset) >> log2_denom ) #define op_scale2(x) dst[x] = av_clip_pixel( (src[x]*weights + dst[x]*weightd + offset) >> (log2_denom+1)) #define H264_WEIGHT(W) \ -static void FUNCC(weight_h264_pixels ## W)(uint8_t *_block, int stride, int height, \ +static void FUNCC(weight_h264_pixels ## W)(uint8_t *_block, ptrdiff_t stride, int height, \ int log2_denom, int weight, int offset) \ { \ int y; \ @@ -60,7 +60,7 @@ static void FUNCC(weight_h264_pixels ## W)(uint8_t *_block, int stride, int heig op_scale1(15); \ } \ } \ -static void FUNCC(biweight_h264_pixels ## W)(uint8_t *_dst, uint8_t *_src, int stride, int height, \ +static void FUNCC(biweight_h264_pixels ## W)(uint8_t *_dst, uint8_t *_src, ptrdiff_t stride, int height, \ int log2_denom, int weightd, int weights, int offset) \ { \ int y; \