[x264-devel] stride problem on powerpc

Manuel Rommel maaanuuu at gmx.net
Wed Sep 22 15:47:37 CEST 2010


Hello,

in x264_weight_cost in slicetype.c, line 118, satd_8x8 may be called with a stride of 8. This leads to wrong calculations on powerpc because VEC_DIFF_H is tuned for an input stride of c*16 for pix1.

To address the issue, I wrote a quick patch for satd_8x8_altivec. I’m not sure if that’s the best way to fix it, perhaps the c code can be changed or VEC_DIFF_H could be improved instead of creating a new macro. So feel free to comment. :)

Manuel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: update_satd8x8_altivec.diff
Type: application/octet-stream
Size: 2840 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20100922/0842d002/attachment.obj>


More information about the x264-devel mailing list