view ppc/dsputil_ppc.c @ 699:f69f9cb461bc libavcodec

automatically detect broken opendivx codec and workaround, so bug=1 shouldnt be needed anymore for mpeg4 files, if there still are files which need bug=1 then tell me ...
author michaelni
date Thu, 26 Sep 2002 22:37:33 +0000
parents 0012f75c92bb
children 14d84a5e77a4
line wrap: on
line source

#include "../../config.h"
#include "../dsputil.h"

#ifdef HAVE_ALTIVEC
#include "dsputil_altivec.h"
#endif

void dsputil_init_ppc(void)
{
#if HAVE_ALTIVEC
    if (has_altivec()) {
        pix_abs16x16 = pix_abs16x16_altivec;
        pix_abs8x8 = pix_abs8x8_altivec;
        pix_sum = pix_sum_altivec;
    } else
#endif
    {
        /* Non-AltiVec PPC optimisations here */
    }
}