X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264chroma_template.c;h=b64172aadfd0dd669e9f0186fa5c2f6798e5bc29;hb=e5558391b5aee8e0a99ac10ba9ecd4727439b69a;hp=93559d7c685dbb7933fcddffd6f706ee4b943f11;hpb=7a2edcf1c8d46234406083b3a3fdb21cfa28d33e;p=ffmpeg diff --git a/libavcodec/h264chroma_template.c b/libavcodec/h264chroma_template.c index 93559d7c685..b64172aadfd 100644 --- a/libavcodec/h264chroma_template.c +++ b/libavcodec/h264chroma_template.c @@ -24,6 +24,34 @@ #include "bit_depth_template.c" #define H264_CHROMA_MC(OPNAME, OP)\ +static void FUNCC(OPNAME ## h264_chroma_mc1)(uint8_t *_dst/*align 8*/, uint8_t *_src/*align 1*/, int stride, int h, int x, int y){\ + pixel *dst = (pixel*)_dst;\ + pixel *src = (pixel*)_src;\ + const int A=(8-x)*(8-y);\ + const int B=( x)*(8-y);\ + const int C=(8-x)*( y);\ + const int D=( x)*( y);\ + int i;\ + stride >>= sizeof(pixel)-1;\ + \ + av_assert2(x<8 && y<8 && x>=0 && y>=0);\ +\ + if(D){\ + for(i=0; i