]> git.sesse.net Git - x264/commit
Convert x264 to use NV12 pixel format internally
authorLoren Merritt <pengvado@akuvian.org>
Thu, 8 Jul 2010 19:24:16 +0000 (12:24 -0700)
committerFiona Glaser <fiona@x264.com>
Thu, 15 Jul 2010 02:03:32 +0000 (19:03 -0700)
commit387828eda87988ad821ce30f818837bd4280bded
tree99796744c9c1b6b173d8fc3ca1dcb980ee9c7ec1
parentc58954cc7c2516dd5f704a506da9fe824f34d9df
Convert x264 to use NV12 pixel format internally
~1% faster overall on Conroe, mostly due to improved cache locality.
Also allows improved SIMD on some chroma functions (e.g. deblock).
This change also extends the API to allow direct NV12 input, which should be a bit faster than YV12.
This isn't currently used in the x264cli, as swscale does not have fast NV12 conversion routines, but it might be useful for other applications.

Note this patch disables the chroma SIMD code for PPC and ARM until new versions are written.
29 files changed:
common/arm/mc-c.c
common/common.c
common/common.h
common/deblock.c
common/frame.c
common/frame.h
common/macroblock.c
common/macroblock.h
common/mc.c
common/mc.h
common/pixel.c
common/pixel.h
common/ppc/mc.c
common/x86/deblock-a.asm
common/x86/mc-a.asm
common/x86/mc-a2.asm
common/x86/mc-c.c
common/x86/pixel-a.asm
common/x86/pixel.h
common/x86/x86inc.asm
encoder/analyse.c
encoder/encoder.c
encoder/macroblock.c
encoder/me.c
encoder/ratecontrol.c
filters/video/resize.c
input/input.c
tools/checkasm.c
x264.h