~ubuntu-branches/ubuntu/feisty/avidemux/feisty

« back to all changes in this revision

Viewing changes to avidemux/mpeg2enc/motionsearch.cc

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2005-05-25 13:02:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050525130229-jw94cav0yhmg7vjw
Tags: 1:2.0.40-0.0
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
 
51
51
 
52
 
#if defined(HAVE_ASM_MMX) && defined(HAVE_ASM_NASM)
53
 
extern "C"
54
 
{
 
52
#if defined( ARCH_X86)  || defined(ARCH_X86_64)
55
53
#include "mmxsse_motion.h"
56
 
}
57
54
#endif
58
55
 
59
56
/*
979
976
 
980
977
void init_motion_search(void)
981
978
{
982
 
        int cpucap = cpu_accel();
983
 
 
984
979
        /* Initialize function pointers. This allows partial acceleration
985
980
         * implementations to update only the function pointers they support.
986
981
         */
1001
996
        pbuild_sub44_mests = build_sub44_mests;
1002
997
        psubsample_image = subsample_image;
1003
998
 
1004
 
#if defined(HAVE_ASM_MMX) && defined(HAVE_ASM_NASM)
 
999
#if defined( ARCH_X86)  || defined(ARCH_X86_64)
1005
1000
        printf("Enabling mmx motion search\n");
1006
 
        enable_mmxsse_motion(cpucap);
1007
 
#endif
1008
 
#if defined( HAVE_ALTIVEC ) && defined(USE_ALTIVEC)
1009
 
        if (cpucap > 0) {
1010
 
                enable_altivec_motion();
1011
 
        }
1012
 
#endif
 
1001
        enable_mmxsse_motion(0);
 
1002
#endif
 
1003
 
1013
1004
}