|
|
|
@ -75,6 +75,7 @@ |
|
|
|
|
#define noop(a) a |
|
|
|
|
#define add28(a) vec_add(v28ss, a) |
|
|
|
|
|
|
|
|
|
#ifdef PREFIX_h264_chroma_mc8_altivec |
|
|
|
|
static void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, |
|
|
|
|
int stride, int h, int x, int y) { |
|
|
|
|
DECLARE_ALIGNED(16, signed int, ABCD)[4] = |
|
|
|
@ -201,8 +202,10 @@ static void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* this code assume that stride % 16 == 0 */ |
|
|
|
|
#ifdef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
|
|
|
static void PREFIX_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { |
|
|
|
|
DECLARE_ALIGNED(16, signed int, ABCD)[4] = |
|
|
|
|
{((8 - x) * (8 - y)), |
|
|
|
@ -284,12 +287,14 @@ static void PREFIX_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, i |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#undef noop |
|
|
|
|
#undef add28 |
|
|
|
|
#undef CHROMA_MC8_ALTIVEC_CORE |
|
|
|
|
|
|
|
|
|
/* this code assume stride % 16 == 0 */ |
|
|
|
|
#ifdef PREFIX_h264_qpel16_h_lowpass_altivec |
|
|
|
|
static void PREFIX_h264_qpel16_h_lowpass_altivec(uint8_t * dst, uint8_t * src, int dstStride, int srcStride) { |
|
|
|
|
register int i; |
|
|
|
|
|
|
|
|
@ -427,8 +432,10 @@ static void PREFIX_h264_qpel16_h_lowpass_altivec(uint8_t * dst, uint8_t * src, i |
|
|
|
|
dst += dstStride; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* this code assume stride % 16 == 0 */ |
|
|
|
|
#ifdef PREFIX_h264_qpel16_v_lowpass_altivec |
|
|
|
|
static void PREFIX_h264_qpel16_v_lowpass_altivec(uint8_t * dst, uint8_t * src, int dstStride, int srcStride) { |
|
|
|
|
register int i; |
|
|
|
|
|
|
|
|
@ -533,8 +540,10 @@ static void PREFIX_h264_qpel16_v_lowpass_altivec(uint8_t * dst, uint8_t * src, i |
|
|
|
|
dst += dstStride; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* this code assume stride % 16 == 0 *and* tmp is properly aligned */ |
|
|
|
|
#ifdef PREFIX_h264_qpel16_hv_lowpass_altivec |
|
|
|
|
static void PREFIX_h264_qpel16_hv_lowpass_altivec(uint8_t * dst, int16_t * tmp, uint8_t * src, int dstStride, int tmpStride, int srcStride) { |
|
|
|
|
register int i; |
|
|
|
|
LOAD_ZERO; |
|
|
|
@ -765,3 +774,4 @@ static void PREFIX_h264_qpel16_hv_lowpass_altivec(uint8_t * dst, int16_t * tmp, |
|
|
|
|
dst += dstStride; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|