This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5f832b7b3fd4cb8daf9bb64373230809c246bd84 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Mon Jul 27 23:09:58 2026 +0200 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Thu Jul 30 23:31:33 2026 +0200 avcodec/x86/h264_intrapred: Avoid shuffles We only need the shuffle a byte in the lower quadword; also notice that we don't need the clamping provided by packuswb as these values are averages of byte values. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavcodec/x86/h264_intrapred.asm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/x86/h264_intrapred.asm b/libavcodec/x86/h264_intrapred.asm index a78a0b0e92..a6aebd56ac 100644 --- a/libavcodec/x86/h264_intrapred.asm +++ b/libavcodec/x86/h264_intrapred.asm @@ -848,8 +848,8 @@ cglobal pred8x8l_top_dc_8, 4,4,6 psadbw m4, m3 paddw m4, [pw_4] psrlw m4, 3 - SPLATW m4, m4, 0 - packuswb m4, m4 + punpcklbw m4, m4 + pshuflw m4, m4, 0 %rep 3 movq [r0+r3*1], m4 movq [r0+r3*2], m4 @@ -940,9 +940,8 @@ cglobal pred8x8l_dc_8, 4,5,6 paddw m3, m2 lea r4, [r2+r3*2] psrlw m3, 4 + punpcklbw m3, m3 pshuflw m3, m3, 0 - punpcklqdq m3, m3 - packuswb m3, m3 movq [r0+r3*1], m3 movq [r0+r3*2], m3 movq [r1+r3*1], m3 _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
