Mercurial > libavcodec.hg
changeset 6065:180976fd652e libavcodec
10l do not load after the buffer...
author | lu_zero |
---|---|
date | Sun, 23 Dec 2007 15:54:21 +0000 |
parents | 62d040333d51 |
children | a82931915c54 |
files | ppc/h264_template_altivec.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ppc/h264_template_altivec.c Sat Dec 22 23:10:02 2007 +0000 +++ b/ppc/h264_template_altivec.c Sun Dec 23 15:54:21 2007 +0000 @@ -154,7 +154,7 @@ } } else { const vec_s16_t vE = vec_add(vB, vC); - if (ABCD[2]) { // y == 0 B == 0 + if (ABCD[2]) { // x == 0 B == 0 if (!loadSecond) {// -> !reallyBadAlign for (i = 0 ; i < h ; i++) { vsrcCuc = vec_ld(stride + 0, src); @@ -174,24 +174,24 @@ vsrc0uc = vsrc1uc; } } - } else { // x == 0 C == 0 + } else { // y == 0 C == 0 if (!loadSecond) {// -> !reallyBadAlign for (i = 0 ; i < h ; i++) { - CHROMA_MC8_ALTIVEC_CORE_SIMPLE - vsrcCuc = vec_ld(0, src); vsrc0uc = vec_perm(vsrcCuc, vsrcCuc, vsrcperm0); vsrc1uc = vec_perm(vsrcCuc, vsrcCuc, vsrcperm1); + + CHROMA_MC8_ALTIVEC_CORE_SIMPLE } } else { vec_u8_t vsrcDuc; for (i = 0 ; i < h ; i++) { - CHROMA_MC8_ALTIVEC_CORE_SIMPLE - vsrcCuc = vec_ld(0, src); vsrcDuc = vec_ld(15, src); vsrc0uc = vec_perm(vsrcCuc, vsrcDuc, vsrcperm0); vsrc1uc = vec_perm(vsrcCuc, vsrcDuc, vsrcperm1); + + CHROMA_MC8_ALTIVEC_CORE_SIMPLE } } }