--- xvid.c 2002/03/08 02:44:33 1.1 +++ xvid.c 2002/03/27 12:58:29 1.6 @@ -32,6 +32,7 @@ * * History: * + * 17.03.2002 Added interpolate8x8_halfpel_hv_xmm * 22.12.2001 API change: added xvid_init() - Isibaar * 16.12.2001 inital version; (c)2001 peter ross * @@ -76,8 +77,6 @@ // initialize the function pointers idct_int32_init(); - init_timer(); - fdct = fdct_int32; idct = idct_int32; @@ -175,6 +174,7 @@ idct = idct_xmm; interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_xmm; interpolate8x8_halfpel_v = interpolate8x8_halfpel_v_xmm; + interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_xmm; yuv_to_yv12 = yuv_to_yv12_xmm; sad16 = sad16_xmm; @@ -186,9 +186,17 @@ if((cpu_flags & XVID_CPU_3DNOW) > 0) { interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_3dn; interpolate8x8_halfpel_v = interpolate8x8_halfpel_v_3dn; + interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_3dn; } #endif +#ifdef ARCH_PPC +#ifdef ARCH_PPC_ALTIVEC + calc_cbp = calc_cbp_altivec; +#else + calc_cbp = calc_cbp_ppc; +#endif +#endif // API version init_param->api_version = API_VERSION; @@ -196,8 +204,6 @@ // something clever has to be done for this init_param->core_build = 1000; - init_timer(); - return XVID_ERR_OK; }