comparison x86/h264dsp_mmx.c @ 9440:daee921fb6bb libavcodec

VC1: add and use avg_no_rnd chroma MC functions
author conrad
date Tue, 14 Apr 2009 23:56:10 +0000
parents ef3a7b711cc0
children 96e6cab7470a
comparison
equal deleted inserted replaced
9439:ef3a7b711cc0 9440:daee921fb6bb
2127 #include "dsputil_h264_template_mmx.c" 2127 #include "dsputil_h264_template_mmx.c"
2128 static void avg_h264_chroma_mc8_mmx2_rnd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) 2128 static void avg_h264_chroma_mc8_mmx2_rnd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
2129 { 2129 {
2130 avg_h264_chroma_generic_mc8_mmx2(dst, src, stride, h, x, y, h264_rnd_reg); 2130 avg_h264_chroma_generic_mc8_mmx2(dst, src, stride, h, x, y, h264_rnd_reg);
2131 } 2131 }
2132 static void avg_vc1_chroma_mc8_mmx2_nornd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
2133 {
2134 avg_h264_chroma_generic_mc8_mmx2(dst, src, stride, h, x, y, h264_rnd_reg+2);
2135 }
2132 static void avg_h264_chroma_mc4_mmx2(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) 2136 static void avg_h264_chroma_mc4_mmx2(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
2133 { 2137 {
2134 avg_h264_chroma_generic_mc4_mmx2(dst, src, stride, h, x, y, h264_rnd_reg); 2138 avg_h264_chroma_generic_mc4_mmx2(dst, src, stride, h, x, y, h264_rnd_reg);
2135 } 2139 }
2136 #undef H264_CHROMA_OP 2140 #undef H264_CHROMA_OP
2188 #define H264_CHROMA_MC8_MV0 avg_pixels8_mmx2 2192 #define H264_CHROMA_MC8_MV0 avg_pixels8_mmx2
2189 #include "dsputil_h264_template_ssse3.c" 2193 #include "dsputil_h264_template_ssse3.c"
2190 static void avg_h264_chroma_mc8_ssse3_rnd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y) 2194 static void avg_h264_chroma_mc8_ssse3_rnd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
2191 { 2195 {
2192 avg_h264_chroma_mc8_ssse3(dst, src, stride, h, x, y, 1); 2196 avg_h264_chroma_mc8_ssse3(dst, src, stride, h, x, y, 1);
2197 }
2198 static void avg_vc1_chroma_mc8_ssse3_nornd(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
2199 {
2200 avg_h264_chroma_mc8_ssse3(dst, src, stride, h, x, y, 0);
2193 } 2201 }
2194 #undef AVG_OP 2202 #undef AVG_OP
2195 #undef H264_CHROMA_MC8_TMPL 2203 #undef H264_CHROMA_MC8_TMPL
2196 #undef H264_CHROMA_MC4_TMPL 2204 #undef H264_CHROMA_MC4_TMPL
2197 #undef H264_CHROMA_MC8_MV0 2205 #undef H264_CHROMA_MC8_MV0