vpx/vp9/common
Ronald S. Bultje 1407bdc243 [WIP] Add column-based tiling.
This patch adds column-based tiling. The idea is to make each tile
independently decodable (after reading the common frame header) and
also independendly encodable (minus within-frame cost adjustments in
the RD loop) to speed-up hardware & software en/decoders if they used
multi-threading. Column-based tiling has the added advantage (over
other tiling methods) that it minimizes realtime use-case latency,
since all threads can start encoding data as soon as the first SB-row
worth of data is available to the encoder.

There is some test code that does random tile ordering in the decoder,
to confirm that each tile is indeed independently decodable from other
tiles in the same frame. At tile edges, all contexts assume default
values (i.e. 0, 0 motion vector, no coefficients, DC intra4x4 mode),
and motion vector search and ordering do not cross tiles in the same
frame.
t log

Tile independence is not maintained between frames ATM, i.e. tile 0 of
frame 1 is free to use motion vectors that point into any tile of frame
0. We support 1 (i.e. no tiling), 2 or 4 column-tiles.

The loopfilter crosses tile boundaries. I discussed this briefly with Aki
and he says that's OK. An in-loop loopfilter would need to do some sync
between tile threads, but that shouldn't be a big issue.

Resuls: with tiling disabled, we go up slightly because of improved edge
use in the intra4x4 prediction. With 2 tiles, we lose about ~1% on derf,
~0.35% on HD and ~0.55% on STD/HD. With 4 tiles, we lose another ~1.5%
on derf ~0.77% on HD and ~0.85% on STD/HD. Most of this loss is
concentrated in the low-bitrate end of clips, and most of it is because
of the loss of edges at tile boundaries and the resulting loss of intra
predictors.

TODO:
- more tiles (perhaps allow row-based tiling also, and max. 8 tiles)?
- maybe optionally (for EC purposes), motion vectors themselves
  should not cross tile edges, or we should emulate such borders as
  if they were off-frame, to limit error propagation to within one
  tile only. This doesn't have to be the default behaviour but could
  be an optional bitstream flag.

Change-Id: I5951c3a0742a767b20bc9fb5af685d9892c2c96f
2013-02-05 15:43:03 -08:00
..
generic Build fixes to merge vp9-preview into master 2012-12-26 11:21:09 -08:00
ppc fixed includes to be fully specified 2012-11-28 10:53:17 -08:00
x86 Intrinsic version of loopfilter now matches C code 2013-01-23 09:31:40 -08:00
vp9_alloccommon.c Merge "Fix overread/write reported by valgrind if (mb_cols) & 3 != 0." into experimental 2013-01-29 12:49:22 -08:00
vp9_alloccommon.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_asm_com_offsets.c Remove ARM optimizations from VP9 2012-12-05 08:59:25 -08:00
vp9_blockd.c Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_blockd.h [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_coefupdateprobs.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_common.h 64x64 blocksize support. 2013-01-05 18:20:25 -08:00
vp9_context.c fixed includes to be fully specified 2012-11-28 10:53:17 -08:00
vp9_debugmodes.c Remove compound intra-intra experiment. 2013-01-14 15:47:25 -08:00
vp9_default_coef_probs.h Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_entropy.c Further enhancements/fixes on dct/dwt hybrid txfm 2013-01-12 16:00:53 -08:00
vp9_entropy.h Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_entropymode.c Adds an error-resilient mode with test 2013-01-23 21:56:15 -08:00
vp9_entropymode.h Adds an error-resilient mode with test 2013-01-23 21:56:15 -08:00
vp9_entropymv.c Consistently use get_prob(), clip_prob() and newly added clip_pixel(). 2012-12-12 10:01:19 -08:00
vp9_entropymv.h Added update-able mv-ref probabilities. 2013-01-02 14:22:11 +00:00
vp9_extend.c Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_extend.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_filter.c New prediction filter 2013-01-09 12:00:39 -08:00
vp9_filter.h New prediction filter 2013-01-09 12:00:39 -08:00
vp9_findnearmv.c Adds an error-resilient mode with test 2013-01-23 21:56:15 -08:00
vp9_findnearmv.h [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_header.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_idctllm.c Merge "rewrite 4x4 idct and fdct" into experimental 2013-02-05 15:26:36 -08:00
vp9_implicit_segmentation.c Use INT64_MAX instead of LLONG_MAX 2013-01-14 15:57:21 -08:00
vp9_invtrans.c Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_invtrans.h Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_loopfilter_filters.c a minor change to a portion of loop filtering 2013-01-18 10:44:13 -08:00
vp9_loopfilter.c Merge "Intrinsic version of loopfilter now matches C code" into experimental 2013-01-24 08:45:22 -08:00
vp9_loopfilter.h Initial sse2 version of the wide loopfilters 2013-01-11 14:54:14 -08:00
vp9_maskingmv.c Add vp9_ prefix to all vp9 files 2012-11-27 14:12:30 -08:00
vp9_mbpitch.c Merge vp9-preview changes into experimental branch 2013-01-08 10:19:59 -08:00
vp9_modecont.c Merge "remove the vp9_default_mode_contexts_a" into experimental 2012-11-28 13:56:42 -08:00
vp9_modecont.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_modecontext.c fixed includes to be fully specified 2012-11-28 10:53:17 -08:00
vp9_mv.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_mvref_common.c [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_mvref_common.h [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_onyx.h [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_onyxc_int.h [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_postproc.c Merge vp9-preview changes into experimental branch 2013-01-08 10:19:59 -08:00
vp9_postproc.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_ppflags.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_pragmas.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_pred_common.c [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_pred_common.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_quant_common.c fixed includes to be fully specified 2012-11-28 10:53:17 -08:00
vp9_quant_common.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_recon.c Merge tx32x32 experiment. 2013-01-10 08:23:59 -08:00
vp9_reconinter.c Merge superblocks64 experiment. 2013-01-09 17:21:40 -08:00
vp9_reconinter.h Merge superblocks64 experiment. 2013-01-09 17:21:40 -08:00
vp9_reconintra4x4.c [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_reconintra.c [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_reconintra.h Merge superblocks (32x32) experiment. 2013-01-08 12:54:45 -08:00
vp9_rtcd_defs.sh [WIP] Add column-based tiling. 2013-02-05 15:43:03 -08:00
vp9_rtcd.c Add vp9_ prefix to all vp9 files 2012-11-27 14:12:30 -08:00
vp9_sadmxn.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_seg_common.c Segment Skip Flag 2013-01-28 17:28:04 +00:00
vp9_seg_common.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_setupintrarecon.c Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_setupintrarecon.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_subpelvar.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_subpixel.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_swapyv12buffer.c Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_swapyv12buffer.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_systemdependent.h Merge vp9-preview changes into experimental branch 2013-01-08 10:19:59 -08:00
vp9_tapify.py Add vp9_ prefix to all vp9 files 2012-11-27 14:12:30 -08:00
vp9_textblit.c Add vp9_ prefix to all vp9 files 2012-11-27 14:12:30 -08:00
vp9_textblit.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00
vp9_treecoder.c Consistently use get_prob(), clip_prob() and newly added clip_pixel(). 2012-12-12 10:01:19 -08:00
vp9_treecoder.h Use standard integer types for pixel values and coefficients. 2012-12-18 15:31:19 -08:00