[x264-devel] commit: fix 10l in 75b495f2723fcb77f (Manuel )
git version control
git at videolan.org
Tue Feb 10 21:07:17 CET 2009
x264 | branch: master | Manuel <maaanuuu at gmx.net> | Tue Feb 10 12:06:47 2009 -0800| [05afd8e02bd83c6c9eba4d41b8d829a383689117] | committer: Guillaume Poirier
fix 10l in 75b495f2723fcb77f
Original thread:
date: Mon, Feb 9, 2009 at 9:37 PM
subject: [x264-devel] commit: Spare a vec_perm and a vec_mergeh though using a LUT of permutation vectors . (Guillaume Poirier )
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=05afd8e02bd83c6c9eba4d41b8d829a383689117
---
common/ppc/pixel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
index bd52f5e..fc8b417 100644
--- a/common/ppc/pixel.c
+++ b/common/ppc/pixel.c
@@ -1675,10 +1675,10 @@ static int x264_pixel_var_8x8_altivec( uint8_t *pix, int i_stride )
static const vec_u8_t perm_tab[] = {
CV(0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* pix=mod16, i_stride=mod16 */
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17),
- CV(0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* pix=mod16, i_stride=mod8 */
+ CV(0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, /* pix=mod8, i_stride=mod16 */
0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F),
};
- vec_u8_t perm = perm_tab[ ((i_stride & 8) >> 3) ];
+ vec_u8_t perm = perm_tab[ ((uintptr_t)pix & 8) >> 3 ];
int y;
for( y = 0; y < 8; y+=2 )
More information about the x264-devel
mailing list