--- interpolate8x8.h 2004/10/12 21:06:33 1.11.2.1 +++ interpolate8x8.h 2004/04/05 20:36:36 1.12 @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: interpolate8x8.h,v 1.11.2.1 2004/10/12 21:06:33 edgomez Exp $ + * $Id: interpolate8x8.h,v 1.12 2004/04/05 20:36:36 edgomez Exp $ * ****************************************************************************/ @@ -120,6 +120,12 @@ INTERPOLATE8X8 interpolate8x8_halfpel_hv_ia64; #endif +#ifdef ARCH_IS_PPC +INTERPOLATE8X8 interpolate8x8_halfpel_h_altivec_c; +INTERPOLATE8X8 interpolate8x8_halfpel_v_altivec_c; +INTERPOLATE8X8 interpolate8x8_halfpel_hv_altivec_c; +#endif + INTERPOLATE8X8_AVG2 interpolate8x8_avg2_c; INTERPOLATE8X8_AVG4 interpolate8x8_avg4_c; @@ -128,6 +134,11 @@ INTERPOLATE8X8_AVG4 interpolate8x8_avg4_mmx; #endif +#ifdef ARCH_IS_PPC +INTERPOLATE8X8_AVG2 interpolate8x8_avg2_altivec_c; +INTERPOLATE8X8_AVG4 interpolate8x8_avg4_altivec_c; +#endif + INTERPOLATE_LOWPASS interpolate8x8_lowpass_h_c; INTERPOLATE_LOWPASS interpolate8x8_lowpass_v_c; @@ -145,6 +156,10 @@ INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_v_mmx; #endif +#ifdef ARCH_IS_PPC +INTERPOLATE8X8_6TAP_LOWPASS interpolate8x8_6tap_lowpass_h_altivec_c; +#endif + static __inline void interpolate8x8_switch(uint8_t * const cur, const uint8_t * const refn, @@ -249,8 +264,8 @@ const uint32_t stride, const uint32_t rounding) { - const int32_t xRef = (int)x*4 + dx; - const int32_t yRef = (int)y*4 + dy; + const int32_t xRef = x*4 + dx; + const int32_t yRef = y*4 + dy; uint8_t *src, *dst; uint8_t *halfpel_h, *halfpel_v, *halfpel_hv; @@ -268,7 +283,7 @@ y_frac = yRef - (4*y_int); - src = refn + y_int * (int)stride + x_int; + src = refn + y_int * stride + x_int; halfpel_h = refh; halfpel_v = refv; halfpel_hv = refhv; @@ -375,8 +390,8 @@ const uint32_t stride, const uint32_t rounding) { - const int32_t xRef = (int)x*4 + dx; - const int32_t yRef = (int)y*4 + dy; + const int32_t xRef = x*4 + dx; + const int32_t yRef = y*4 + dy; uint8_t *src, *dst; uint8_t *halfpel_h, *halfpel_v, *halfpel_hv; @@ -394,7 +409,7 @@ y_frac = yRef - (4*y_int); - src = refn + y_int * (int)stride + x_int; + src = refn + y_int * stride + x_int; halfpel_h = refh; halfpel_v = refv; halfpel_hv = refhv;