]> git.videolan.org Git - x264.git/commit
Weighted P-frame prediction
authorDylan Yudaken <dyudaken@gmail.com>
Mon, 9 Nov 2009 01:59:08 +0000 (17:59 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Nov 2009 04:21:51 +0000 (20:21 -0800)
commit87de2346225721e8ca68a1b59bc87133fc598a42
treef34cba66f8d34ed84d2fb96428de996068d2105d
parent3daa02e9c79ec46fd980bcfcd317df45539c91f6
Weighted P-frame prediction
Merge Dylan's Google Summer of Code 2009 tree.
Detect fades and use weighted prediction to improve compression and quality.
"Blind" mode provides a small overall quality increase by using a -1 offset without doing any analysis, as described in JVT-AB033.
"Smart", the default mode, also performs fade detection and decides weights accordingly.
MB-tree takes into account the effects of "smart" analysis in lookahead, even further improving quality in fades.
If psy is on, mbtree is on, interlaced is off, and weightp is off, fade detection will still be performed.
However, it will be used to adjust quality instead of create actual weights.
This will improve quality in fades when encoding in Baseline profile.

Doesn't add support for interlaced encoding with weightp yet.
Only adds support for luma weights, not chroma weights.
Internal code for chroma weights is in, but there's no analysis yet.
Baseline profile requires that weightp be off.
All weightp modes may cause minor breakage in non-compliant decoders that take shortcuts in deblocking reference frame checks.
"Smart" may cause serious breakage in non-compliant decoders that take shortcuts in handling of duplicate reference frames.

Thanks to Google for sponsoring our most successful Summer of Code yet!
22 files changed:
common/common.c
common/common.h
common/frame.c
common/frame.h
common/macroblock.c
common/mc.c
common/mc.h
common/x86/mc-a.asm
common/x86/mc-c.c
encoder/analyse.c
encoder/analyse.h
encoder/encoder.c
encoder/macroblock.c
encoder/me.c
encoder/me.h
encoder/ratecontrol.c
encoder/ratecontrol.h
encoder/set.c
encoder/slicetype.c
tools/checkasm.c
x264.c
x264.h