Revision ff506a90 libavcodec/i386/mpegvideo_mmx.c

View differences:

libavcodec/i386/mpegvideo_mmx.c
673 673
    );
674 674
}
675 675

  
676
#ifdef HAVE_SSSE3
677
#define HAVE_SSSE3_BAK
678
#endif
679
#undef HAVE_SSSE3
680

  
681
#undef HAVE_SSE2
676 682
#undef HAVE_MMX2
677 683
#define RENAME(a) a ## _MMX
678 684
#define RENAMEl(a) a ## _mmx
......
685 691
#define RENAMEl(a) a ## _mmx2
686 692
#include "mpegvideo_mmx_template.c"
687 693

  
694
#define HAVE_SSE2
688 695
#undef RENAME
689 696
#undef RENAMEl
690 697
#define RENAME(a) a ## _SSE2
691 698
#define RENAMEl(a) a ## _sse2
692 699
#include "mpegvideo_mmx_template.c"
693 700

  
701
#ifdef HAVE_SSSE3_BAK
702
#define HAVE_SSSE3
703
#undef RENAME
704
#undef RENAMEl
705
#define RENAME(a) a ## _SSSE3
706
#define RENAMEl(a) a ## _sse2
707
#include "mpegvideo_mmx_template.c"
708
#endif
709

  
694 710
void MPV_common_init_mmx(MpegEncContext *s)
695 711
{
696 712
    if (mm_flags & MM_MMX) {
......
713 729
        }
714 730

  
715 731
        if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){
732
#ifdef HAVE_SSSE3
733
            if(mm_flags & MM_SSSE3){
734
                s->dct_quantize= dct_quantize_SSSE3;
735
            } else
736
#endif
716 737
            if(mm_flags & MM_SSE2){
717 738
                s->dct_quantize= dct_quantize_SSE2;
718 739
            } else if(mm_flags & MM_MMXEXT){

Also available in: Unified diff