diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-12-23 15:54:21 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-12-23 15:54:21 +0000 |
commit | 6b646b068ee1bc3afe5fb1edc344433e37cca96a (patch) | |
tree | cd6177314684c125cf186e24872886381bc5868d /libavcodec/ppc | |
parent | 88b00723906f68b7563214c30333e48888dddf78 (diff) | |
download | ffmpeg-6b646b068ee1bc3afe5fb1edc344433e37cca96a.tar.gz |
10l do not load after the buffer...
Originally committed as revision 11308 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/h264_template_altivec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ppc/h264_template_altivec.c b/libavcodec/ppc/h264_template_altivec.c index ce89cca25a..c4a98e9a9b 100644 --- a/libavcodec/ppc/h264_template_altivec.c +++ b/libavcodec/ppc/h264_template_altivec.c @@ -154,7 +154,7 @@ void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, } } 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 @@ void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, 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 } } } |