comparison x86/dsputil_mmx.c @ 8817:492f8911992c libavcodec

add MMX version of vp6_filter_diag original patch by Sebastien Lucas sebastien.lucas _at_ gmail _dot_ com
author aurel
date Thu, 12 Feb 2009 23:52:52 +0000
parents 53f9f3994ec8
children 17cc6df384a6
comparison
equal deleted inserted replaced
8816:53f9f3994ec8 8817:492f8911992c
29 #include "libavcodec/simple_idct.h" 29 #include "libavcodec/simple_idct.h"
30 #include "dsputil_mmx.h" 30 #include "dsputil_mmx.h"
31 #include "mmx.h" 31 #include "mmx.h"
32 #include "vp3dsp_mmx.h" 32 #include "vp3dsp_mmx.h"
33 #include "vp3dsp_sse2.h" 33 #include "vp3dsp_sse2.h"
34 #include "vp6dsp_mmx.h"
34 #include "idct_xvid.h" 35 #include "idct_xvid.h"
35 36
36 //#undef NDEBUG 37 //#undef NDEBUG
37 //#include <assert.h> 38 //#include <assert.h>
38 39
2686 c->h264_idct_add16 = ff_h264_idct_add16_mmx; 2687 c->h264_idct_add16 = ff_h264_idct_add16_mmx;
2687 c->h264_idct8_add4 = ff_h264_idct8_add4_mmx; 2688 c->h264_idct8_add4 = ff_h264_idct8_add4_mmx;
2688 c->h264_idct_add8 = ff_h264_idct_add8_mmx; 2689 c->h264_idct_add8 = ff_h264_idct_add8_mmx;
2689 c->h264_idct_add16intra= ff_h264_idct_add16intra_mmx; 2690 c->h264_idct_add16intra= ff_h264_idct_add16intra_mmx;
2690 2691
2692 if (CONFIG_VP6_DECODER) {
2693 c->vp6_filter_diag4 = ff_vp6_filter_diag4_mmx;
2694 }
2695
2691 if (mm_flags & FF_MM_MMXEXT) { 2696 if (mm_flags & FF_MM_MMXEXT) {
2692 c->prefetch = prefetch_mmx2; 2697 c->prefetch = prefetch_mmx2;
2693 2698
2694 c->put_pixels_tab[0][1] = put_pixels16_x2_mmx2; 2699 c->put_pixels_tab[0][1] = put_pixels16_x2_mmx2;
2695 c->put_pixels_tab[0][2] = put_pixels16_y2_mmx2; 2700 c->put_pixels_tab[0][2] = put_pixels16_y2_mmx2;