]> git.videolan.org Git - x264.git/commit
SSSE3/SSE4 9-way fully merged i4x4 analysis (sad/satd_x9)
authorLoren Merritt <pengvado@akuvian.org>
Mon, 15 Aug 2011 18:18:55 +0000 (18:18 +0000)
committerJason Garrett-Glaser <jason@x264.com>
Wed, 21 Sep 2011 16:54:41 +0000 (09:54 -0700)
commitb7fa2ff50ef74eb8a27e675f8e418754965115e2
tree200d345e09d1f768248d5410d04eab0b5016948e
parentb1bb23c7570bded53b698800e48c755240d4aa35
SSSE3/SSE4 9-way fully merged i4x4 analysis (sad/satd_x9)

i4x4 analysis cycles (per partition):
penryn   sandybridge
184-> 75  157-> 54  preset=superfast (sad)
281->165  225->124  preset=faster    (satd with early termination)
332->165  263->124  preset=medium
379->165  297->124  preset=slower    (satd without early termination)

This is the first code in x264 that intentionally produces different behavior
on different cpus: satd_x9 is implemented only on ssse3+ and checks all intra
directions, whereas the old code (on fast presets) may early terminate after
checking only some of them. There is no systematic difference on slow presets,
though they still occasionally disagree about tiebreaks.

For ease of debugging, add an option "--cpu-independent" to disable satd_x9
and any analogous future code.
12 files changed:
common/common.c
common/osdep.h
common/pixel.c
common/pixel.h
common/x86/const-a.asm
common/x86/pixel-a.asm
common/x86/pixel.h
encoder/analyse.c
encoder/encoder.c
tools/checkasm.c
x264.c
x264.h