view ppc/dsputil_ppc.c @ 801:f720b01c0fd5 libavcodec

1) Add MMX deinterlace code. 2) "Fix" first and last line deinterlace. I had second-thoughts that this might be some image filtering algorithm that someone cleverer than I created. 3) Add in-place deinterlace functions (only used when src == dst). patch by (Fred <foohoo at shaw dot ca>)
author michaelni
date Wed, 30 Oct 2002 09:09:34 +0000
parents 14d84a5e77a4
children ace3ccd18dd2
line wrap: on
line source

#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 */
    }
}