X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmips%2Fh264chroma_mmi.c;h=3dd123da36fdb13b03b12a032c625afa9fe6c69b;hb=222e7d23d0fbcc17fe3d596d768e2aa0fb6e8161;hp=ef294762b3a12c4fd817e990c07a67e178496d90;hpb=15ad0232107496c3b12d8aaedfc3398b8cda9ee7;p=ffmpeg diff --git a/libavcodec/mips/h264chroma_mmi.c b/libavcodec/mips/h264chroma_mmi.c index ef294762b3a..3dd123da36f 100644 --- a/libavcodec/mips/h264chroma_mmi.c +++ b/libavcodec/mips/h264chroma_mmi.c @@ -23,6 +23,8 @@ */ #include "h264chroma_mips.h" +#include "constants.h" +#include "libavutil/mips/asmdefs.h" void ff_put_h264_chroma_mc8_mmi(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) @@ -32,171 +34,177 @@ void ff_put_h264_chroma_mc8_mmi(uint8_t *dst, uint8_t *src, int stride, const int C = (8 - x) * y; const int D = x * y; const int E = B + C; - int i; - - av_assert2(x<8 && y<8 && x>=0 && y>=0); + double ftmp[10]; + uint64_t tmp[1]; + mips_reg addr[1]; if (D) { - for (i=0; i=0 && y>=0); + double ftmp[10]; + uint64_t tmp[1]; + mips_reg addr[1]; if (D) { - for (i=0; i=0 && y>=0); + double ftmp[8]; + uint64_t tmp[1]; + mips_reg addr[1]; + uint64_t low32; if (D) { - for (i=0; i=0 && y>=0); + const int E = B + C; + double ftmp[8]; + uint64_t tmp[1]; + mips_reg addr[1]; + uint64_t low32; if (D) { - for (i=0; i