]> git.videolan.org Git - x264.git/commit
Early termination for chroma encoding
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 30 Jun 2009 22:20:32 +0000 (15:20 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 3 Jul 2009 03:31:40 +0000 (20:31 -0700)
commitf4dac817e45b967572f5c4e4af4644dc7d263512
treecb276fa9374a2b8b160b8e25111adabbb6dac869
parent7fd6a9099f18ec028d6c73890258280e6f8a6c02
Early termination for chroma encoding
Faster chroma encoding by terminating early if heuristics indicate that the block will be DC-only.
This works because the vast majority of inter chroma blocks have no coefficients at all, and those that do are almost always DC-only.
Add two new helper DSP functions for this: dct_dc_8x8 and var2_8x8.  mmx/sse2/ssse3 versions of each.
Early termination is disabled at very low QPs due to it not being useful there.
Performance increase is ~1-2% without trellis, up to 5-6% with trellis=2.
Increase is greater with lower bitrates.
common/dct.c
common/dct.h
common/pixel.c
common/pixel.h
common/x86/dct-a.asm
common/x86/dct.h
common/x86/pixel-a.asm
common/x86/pixel.h
encoder/macroblock.c
tools/checkasm.c