Mercurial > libavcodec.hg
comparison ppc/h264_template_altivec.c @ 6058:93089aed00cb libavcodec
Cosmetics
author | lu_zero |
---|---|
date | Sat, 22 Dec 2007 02:35:33 +0000 |
parents | 861eb234e6ba |
children | 8c1a381bddb6 |
comparison
equal
deleted
inserted
replaced
6057:03febc8f506f | 6058:93089aed00cb |
---|---|
28 /* this code assume that stride % 16 == 0 */ | 28 /* this code assume that stride % 16 == 0 */ |
29 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { | 29 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { |
30 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1); | 30 POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1); |
31 DECLARE_ALIGNED_16(signed int, ABCD[4]) = | 31 DECLARE_ALIGNED_16(signed int, ABCD[4]) = |
32 {((8 - x) * (8 - y)), | 32 {((8 - x) * (8 - y)), |
33 ((x) * (8 - y)), | 33 (( x) * (8 - y)), |
34 ((8 - x) * (y)), | 34 ((8 - x) * ( y)), |
35 ((x) * (y))}; | 35 (( x) * ( y))}; |
36 register int i; | 36 register int i; |
37 vec_u8_t fperm; | 37 vec_u8_t fperm; |
38 const vec_s32_t vABCD = vec_ld(0, ABCD); | 38 const vec_s32_t vABCD = vec_ld(0, ABCD); |
39 const vec_s16_t vA = vec_splat((vec_s16_t)vABCD, 1); | 39 const vec_s16_t vA = vec_splat((vec_s16_t)vABCD, 1); |
40 const vec_s16_t vB = vec_splat((vec_s16_t)vABCD, 3); | 40 const vec_s16_t vB = vec_splat((vec_s16_t)vABCD, 3); |