WebM Experimental Codec Branch Snapshot
authorYaowu Xu <yaowu@google.com>
Sat, 10 Mar 2012 01:32:50 +0000 (17:32 -0800)
committerYaowu Xu <yaowu@google.com>
Thu, 15 Mar 2012 14:36:47 +0000 (07:36 -0700)
commit6035da5448392244936f1e1a9079e7f6cd857ffe
treedb96cbb161633c0db567204bcd730d56da1ec7ad
parent2b1c2990a98f090d91ab3ca5c6c1e1ce7ee1a701
WebM Experimental Codec Branch Snapshot

This is a code snapshot of experimental work currently ongoing for a
next-generation codec.

The codebase has been cut down considerably from the libvpx baseline.
For example, we are currently only supporting VBR 2-pass rate control
and have removed most of the code relating to coding speed, threading,
error resilience, partitions and various other features.  This is in
part to make the codebase easier to work on and experiment with, but
also because we want to have an open discussion about how the bitstream
will be structured and partitioned and not have that conversation
constrained by past work.

Our basic working pattern has been to initially encapsulate experiments
using configure options linked to #IF CONFIG_XXX statements in the
code. Once experiments have matured and we are reasonably happy that
they give benefit and can be merged without breaking other experiments,
we remove the conditional compile statements and merge them in.

Current changes include:
* Temporal coding experiment for segments (though still only 4 max, it
  will likely be increased).
* Segment feature experiment - to allow various bits of information to
  be coded at the segment level. Features tested so far include mode
  and reference frame information, limiting end of block offset and
  transform size, alongside Q and loop filter parameters, but this set
  is very fluid.
* Support for 8x8 transform - 8x8 dct with 2nd order 2x2 haar is used
  in MBs using 16x16 prediction modes within inter frames.
* Compound prediction (combination of signals from existing predictors
  to create a new predictor).
* 8 tap interpolation filters and 1/8th pel motion vectors.
* Loop filter modifications.
* Various entropy modifications and changes to how entropy contexts and
  updates are handled.
* Extended quantizer range matched to transform precision improvements.

There are also ongoing further experiments that we hope to merge in the
near future: For example, coding of motion and other aspects of the
prediction signal to better support larger image formats, use of larger
block sizes (e.g. 32x32 and up) and lossless non-transform based coding
options (especially for key frames). It is our hope that we will be
able to make regular updates and we will warmly welcome community
contributions.

Please be warned that, at this stage, the codebase is currently slower
than VP8 stable branch as most new code has not been optimized, and
even the 'C' has been deliberately written to be simple and obvious,
not fast.

The following graphs have the initial test results, numbers in the
tables measure the compression improvement in terms of percentage. The
build has  the following optional experiments configured:
--enable-experimental --enable-enhanced_interp --enable-uvintra
--enable-high_precision_mv --enable-sixteenth_subpel_uv

CIF Size clips:
http://getwebm.org/tmp/cif/
HD size clips:
http://getwebm.org/tmp/hd/
(stable_20120309 represents encoding results of WebM master branch
build as of commit#7a15907)

They were encoded using the following encode parameters:
--good --cpu-used=0 -t 0 --lag-in-frames=25 --min-q=0 --max-q=63
--end-usage=0 --auto-alt-ref=1 -p 2 --pass=2 --kf-max-dist=9999
--kf-min-dist=0 --drop-frame=0 --static-thresh=0 --bias-pct=50
--minsection-pct=0 --maxsection-pct=800 --sharpness=0
--arnr-maxframes=7 --arnr-strength=3(for HD,6 for CIF)
--arnr-type=3

Change-Id: I5c62ed09cfff5815a2bb34e7820d6a810c23183c
161 files changed:
configure
examples.mk
examples/decode_with_partial_drops.txt [deleted file]
vp8/common/alloccommon.c
vp8/common/arm/arm_systemdependent.c
vp8/common/arm/filter_arm.c
vp8/common/arm/neon/recon_neon.c
vp8/common/arm/reconintra_arm.c
vp8/common/blockd.c
vp8/common/blockd.h
vp8/common/coefupdateprobs.h
vp8/common/common.h
vp8/common/debugmodes.c
vp8/common/defaultcoefcounts.h [new file with mode: 0644]
vp8/common/entropy.c
vp8/common/entropy.h
vp8/common/entropymode.c
vp8/common/entropymode.h
vp8/common/entropymv.c
vp8/common/entropymv.h
vp8/common/filter.c
vp8/common/filter.h
vp8/common/findnearmv.c
vp8/common/findnearmv.h
vp8/common/generic/systemdependent.c
vp8/common/idct.h
vp8/common/idctllm.c
vp8/common/implicit_segmentation.c [new file with mode: 0644]
vp8/common/invtrans.c
vp8/common/invtrans.h
vp8/common/loopfilter.c
vp8/common/loopfilter.h
vp8/common/loopfilter_filters.c
vp8/common/maskingmv.c [new file with mode: 0644]
vp8/common/modecont.c
vp8/common/modecont.h
vp8/common/onyx.h
vp8/common/onyxc_int.h
vp8/common/onyxd.h
vp8/common/postproc.c
vp8/common/pred_common.c [new file with mode: 0644]
vp8/common/pred_common.h [new file with mode: 0644]
vp8/common/predict_rotated.c [new file with mode: 0644]
vp8/common/quant_common.c
vp8/common/quant_common.h
vp8/common/recon.c
vp8/common/recon.h
vp8/common/reconinter.c
vp8/common/reconinter.h
vp8/common/reconintra.c
vp8/common/reconintra4x4.c
vp8/common/rotate.h [new file with mode: 0644]
vp8/common/rotate2.h [new file with mode: 0644]
vp8/common/seg_common.c [new file with mode: 0644]
vp8/common/seg_common.h [new file with mode: 0644]
vp8/common/subpixel.h
vp8/common/systemdependent.h
vp8/common/tapify.py [new file with mode: 0644]
vp8/common/threading.h [deleted file]
vp8/common/x86/mask_sse3.asm [new file with mode: 0644]
vp8/common/x86/recon_wrapper_sse2.c
vp8/common/x86/subpixel_ssse3.asm
vp8/common/x86/vp8_asm_stubs.c
vp8/common/x86/x86_systemdependent.c
vp8/decoder/arm/arm_dsystemdependent.c
vp8/decoder/arm/armv6/idct_blk_v6.c
vp8/decoder/arm/dequantize_arm.c
vp8/decoder/arm/neon/idct_blk_neon.c
vp8/decoder/dboolhuff.h
vp8/decoder/decodemv.c
vp8/decoder/decoderthreading.h [deleted file]
vp8/decoder/decodframe.c
vp8/decoder/dequantize.c
vp8/decoder/dequantize.h
vp8/decoder/detokenize.c
vp8/decoder/detokenize.h
vp8/decoder/error_concealment.c [deleted file]
vp8/decoder/error_concealment.h [deleted file]
vp8/decoder/generic/dsystemdependent.c
vp8/decoder/idct_blk.c
vp8/decoder/onyxd_if.c
vp8/decoder/onyxd_int.h
vp8/decoder/reconintra_mt.c
vp8/decoder/reconintra_mt.h
vp8/decoder/threading.c [deleted file]
vp8/decoder/x86/idct_blk_mmx.c
vp8/decoder/x86/idct_blk_sse2.c
vp8/decoder/x86/x86_dsystemdependent.c
vp8/encoder/arm/arm_csystemdependent.c
vp8/encoder/arm/variance_arm.c
vp8/encoder/arm/variance_arm.h
vp8/encoder/bitstream.c
vp8/encoder/bitstream.h
vp8/encoder/block.h
vp8/encoder/dct.c
vp8/encoder/dct.h
vp8/encoder/defaultcoefcounts.h [deleted file]
vp8/encoder/encodeframe.c
vp8/encoder/encodeintra.c
vp8/encoder/encodeintra.h
vp8/encoder/encodemb.c
vp8/encoder/encodemb.h
vp8/encoder/encodemv.c
vp8/encoder/encodemv.h
vp8/encoder/ethreading.c [deleted file]
vp8/encoder/find_rotation.c [new file with mode: 0644]
vp8/encoder/firstpass.c
vp8/encoder/generic/csystemdependent.c
vp8/encoder/lookahead.c
vp8/encoder/mbgraph.c [new file with mode: 0644]
vp8/encoder/mbgraph.h [new file with mode: 0644]
vp8/encoder/mcomp.c
vp8/encoder/mcomp.h
vp8/encoder/modecosts.c
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/encoder/pickinter.c [deleted file]
vp8/encoder/picklpf.c
vp8/encoder/ppc/csystemdependent.c
vp8/encoder/quantize.c
vp8/encoder/quantize.h
vp8/encoder/ratectrl.c
vp8/encoder/ratectrl.h
vp8/encoder/rdopt.c
vp8/encoder/rdopt.h
vp8/encoder/sad_c.c
vp8/encoder/satd_c.c [new file with mode: 0644]
vp8/encoder/segmentation.c
vp8/encoder/segmentation.h
vp8/encoder/temporal_filter.c
vp8/encoder/tokenize.c
vp8/encoder/tokenize.h
vp8/encoder/treewriter.c
vp8/encoder/variance.h
vp8/encoder/variance_c.c
vp8/encoder/x86/variance_impl_sse2.asm
vp8/encoder/x86/variance_impl_ssse3.asm
vp8/encoder/x86/variance_mmx.c
vp8/encoder/x86/variance_sse2.c
vp8/encoder/x86/variance_ssse3.c
vp8/encoder/x86/variance_x86.h
vp8/encoder/x86/x86_csystemdependent.c
vp8/vp8_common.mk
vp8/vp8_cx_iface.c
vp8/vp8_dx_iface.c
vp8/vp8cx.mk
vp8/vp8dx.mk
vpx/src/vpx_decoder.c
vpx/vpx_decoder.h
vpx_mem/include/vpx_mem_intrnl.h
vpx_mem/vpx_mem_tracker.c
vpx_ports/arm.h
vpx_ports/config.h [moved from vp8/encoder/pickinter.h with 56% similarity]
vpx_ports/mem_ops_aligned.h
vpx_ports/vpxtypes.h
vpx_ports/x86.h
vpx_scale/arm/scalesystemdependent.c
vpx_scale/generic/scalesystemdependent.c
vpx_scale/yv12config.h
vpxdec.c
vpxenc.c