Mercurial > libavcodec.hg
comparison i386/dsputil_mmx.c @ 1972:8a556283601d libavcodec
hook up support for SSE2-optimized VP3 IDCT
author | melanson |
---|---|
date | Sun, 25 Apr 2004 03:33:30 +0000 |
parents | 771dcc2d4a0c |
children | 89422281f6f6 |
comparison
equal
deleted
inserted
replaced
1971:39f2ba94e09b | 1972:8a556283601d |
---|---|
2145 } | 2145 } |
2146 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; | 2146 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; |
2147 } | 2147 } |
2148 | 2148 |
2149 /* VP3 optimized DSP functions */ | 2149 /* VP3 optimized DSP functions */ |
2150 c->vp3_dsp_init = vp3_dsp_init_mmx; | 2150 if (mm_flags & MM_SSE2) { |
2151 c->vp3_idct_put = vp3_idct_put_mmx; | 2151 c->vp3_dsp_init = vp3_dsp_init_sse2; |
2152 c->vp3_idct_add = vp3_idct_add_mmx; | 2152 c->vp3_idct_put = vp3_idct_put_sse2; |
2153 c->vp3_idct_add = vp3_idct_add_sse2; | |
2154 } else { | |
2155 c->vp3_dsp_init = vp3_dsp_init_mmx; | |
2156 c->vp3_idct_put = vp3_idct_put_mmx; | |
2157 c->vp3_idct_add = vp3_idct_add_mmx; | |
2158 } | |
2153 | 2159 |
2154 #ifdef CONFIG_ENCODERS | 2160 #ifdef CONFIG_ENCODERS |
2155 c->get_pixels = get_pixels_mmx; | 2161 c->get_pixels = get_pixels_mmx; |
2156 c->diff_pixels = diff_pixels_mmx; | 2162 c->diff_pixels = diff_pixels_mmx; |
2157 #endif //CONFIG_ENCODERS | 2163 #endif //CONFIG_ENCODERS |