Revision e90f5b5a libpostproc/postprocess.c

View differences:

libpostproc/postprocess.c
554 554

  
555 555
//Note: we have C, MMX, MMX2, 3DNOW version there is no 3DNOW+MMX2 one
556 556
//Plain C versions
557
#if !(HAVE_MMX || HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)
557
#if !(HAVE_MMX || HAVE_ALTIVEC) || CONFIG_RUNTIME_CPUDETECT
558 558
#define COMPILE_C
559 559
#endif
560 560

  
......
564 564

  
565 565
#if ARCH_X86
566 566

  
567
#if (HAVE_MMX && !HAVE_AMD3DNOW && !HAVE_MMX2) || defined (RUNTIME_CPUDETECT)
567
#if (HAVE_MMX && !HAVE_AMD3DNOW && !HAVE_MMX2) || CONFIG_RUNTIME_CPUDETECT
568 568
#define COMPILE_MMX
569 569
#endif
570 570

  
571
#if HAVE_MMX2 || defined (RUNTIME_CPUDETECT)
571
#if HAVE_MMX2 || CONFIG_RUNTIME_CPUDETECT
572 572
#define COMPILE_MMX2
573 573
#endif
574 574

  
575
#if (HAVE_AMD3DNOW && !HAVE_MMX2) || defined (RUNTIME_CPUDETECT)
575
#if (HAVE_AMD3DNOW && !HAVE_MMX2) || CONFIG_RUNTIME_CPUDETECT
576 576
#define COMPILE_3DNOW
577 577
#endif
578 578
#endif /* ARCH_X86 */
......
645 645
    // Using ifs here as they are faster than function pointers although the
646 646
    // difference would not be measurable here but it is much better because
647 647
    // someone might exchange the CPU whithout restarting MPlayer ;)
648
#ifdef RUNTIME_CPUDETECT
648
#if CONFIG_RUNTIME_CPUDETECT
649 649
#if ARCH_X86
650 650
    // ordered per speed fastest first
651 651
    if(c->cpuCaps & PP_CPU_CAPS_MMX2)
......
664 664
#endif
665 665
            postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
666 666
#endif
667
#else //RUNTIME_CPUDETECT
667
#else //CONFIG_RUNTIME_CPUDETECT
668 668
#if   HAVE_MMX2
669 669
            postProcess_MMX2(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
670 670
#elif HAVE_AMD3DNOW
......
676 676
#else
677 677
            postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
678 678
#endif
679
#endif //!RUNTIME_CPUDETECT
679
#endif //!CONFIG_RUNTIME_CPUDETECT
680 680
}
681 681

  
682 682
//static void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,

Also available in: Unified diff