platform/upstream/libvpx.git
11 years agoMerge "vp9_find_mv_refs_idx change for last frame." into experimental
Paul Wilkins [Mon, 3 Jun 2013 09:34:46 +0000 (02:34 -0700)]
Merge "vp9_find_mv_refs_idx change for last frame." into experimental

11 years agoMerge "Adding plane_block_width and plane_block_height functions." into experimental
Dmitry Kovalev [Fri, 31 May 2013 22:28:45 +0000 (15:28 -0700)]
Merge "Adding plane_block_width and plane_block_height functions." into experimental

11 years agoMerge "Adding new encode_txfm function." into experimental
Dmitry Kovalev [Fri, 31 May 2013 21:13:58 +0000 (14:13 -0700)]
Merge "Adding new encode_txfm function." into experimental

11 years agoCosting fixes related to trellis optimization
Deb Mukherjee [Thu, 30 May 2013 23:20:58 +0000 (16:20 -0700)]
Costing fixes related to trellis optimization

Migrates costing changes/fixes from the rebalance expt to the head
without the expt on.

Rebased.

Change-Id: I51677d62f77ed08aca8d21a4c9a13103eb8de93f
Results:
derfraw300: +0.126%

11 years agoAdding new encode_txfm function.
Dmitry Kovalev [Thu, 30 May 2013 21:50:41 +0000 (14:50 -0700)]
Adding new encode_txfm function.

Moving some code from vp9_pack_bitstream to encode_txfm function.

Change-Id: Icc25d6083e54f09886216fea632ceac002042d7f

11 years agoRenaming 'motion_vector' to 'mv' for consistency.
Dmitry Kovalev [Thu, 30 May 2013 22:47:59 +0000 (15:47 -0700)]
Renaming 'motion_vector' to 'mv' for consistency.

Change-Id: Ie869ea4992e26867caec46cb878fc86a646aeb9f

11 years agoAdding plane_block_width and plane_block_height functions.
Dmitry Kovalev [Fri, 31 May 2013 19:30:32 +0000 (12:30 -0700)]
Adding plane_block_width and plane_block_height functions.

Change-Id: I02c17fb733c0f3c22dc3167c3d3182797415f1ae

11 years agoMerge "Fix silly bug with ENTROPY_STATS enabled." into experimental
Ronald S. Bultje [Fri, 31 May 2013 17:33:29 +0000 (10:33 -0700)]
Merge "Fix silly bug with ENTROPY_STATS enabled." into experimental

11 years agoFix silly bug with ENTROPY_STATS enabled.
Ronald S. Bultje [Fri, 31 May 2013 17:05:37 +0000 (10:05 -0700)]
Fix silly bug with ENTROPY_STATS enabled.

Change-Id: I615125483da71a623a930d6e20c42df82ea0e6ee

11 years agoMerge "Merge all various transform size data trackers into single variables." into...
Ronald S. Bultje [Fri, 31 May 2013 16:59:24 +0000 (09:59 -0700)]
Merge "Merge all various transform size data trackers into single variables." into experimental

11 years agoMerge "Moved use_prev_in_find_mv_refs check to frame level" into experimental
Scott LaVarnway [Fri, 31 May 2013 16:35:51 +0000 (09:35 -0700)]
Merge "Moved use_prev_in_find_mv_refs check to frame level" into experimental

11 years agoMerge all various transform size data trackers into single variables.
Ronald S. Bultje [Fri, 31 May 2013 16:18:59 +0000 (09:18 -0700)]
Merge all various transform size data trackers into single variables.

Change-Id: I2dfc569106b29fbe4da20585a0e85e5e9ea6a4db

11 years agovp9_find_mv_refs_idx change for last frame.
Paul Wilkins [Fri, 31 May 2013 14:36:10 +0000 (15:36 +0100)]
vp9_find_mv_refs_idx change for last frame.

Restrict get_matching_candidate() to considering
mvs at 8x8 and larger sizes for last frame case.

This is to reduce the HW load of using vectors down
to the 4x4 level from the previous frame.

Change-Id: I6505e610fd63a4e22d67f136aec7905a01b893ba

11 years agoMerge "put back in lost speedups" into experimental
Jim Bankoski [Fri, 31 May 2013 14:12:43 +0000 (07:12 -0700)]
Merge "put back in lost speedups" into experimental

11 years agoput back in lost speedups
Jim Bankoski [Fri, 31 May 2013 13:47:40 +0000 (06:47 -0700)]
put back in lost speedups

speed >1 can be spead up by turning these on - lost in a prior commit

Change-Id: Iaef85e10ecfeec3aea5ab0e691edf02bb7f5190d

11 years agoFix inter mode context adaptation.
Sami Pietila [Fri, 31 May 2013 09:58:31 +0000 (12:58 +0300)]
Fix inter mode context adaptation.

Change-Id: Ibaa47be878c1cd84d88d7518418d2d8d38224e70

11 years agoMerge "Patch to remove implicit segmentation." into experimental
Paul Wilkins [Fri, 31 May 2013 09:56:20 +0000 (02:56 -0700)]
Merge "Patch to remove implicit segmentation." into experimental

11 years agoMerge "Changed to use a new variant of WHT" into experimental
Yaowu Xu [Fri, 31 May 2013 04:53:12 +0000 (21:53 -0700)]
Merge "Changed to use a new variant of WHT" into experimental

11 years agoMerge "Changed to use new intra coding calls for 1st pass" into experimental
Yaowu Xu [Fri, 31 May 2013 04:52:41 +0000 (21:52 -0700)]
Merge "Changed to use new intra coding calls for 1st pass" into experimental

11 years agoChanged to use new intra coding calls for 1st pass
Yaowu Xu [Fri, 31 May 2013 00:08:14 +0000 (17:08 -0700)]
Changed to use new intra coding calls for 1st pass

And removed 1st pass specific version of intra coding funcitons

Change-Id: Ia54e67c71d750957cb2efda8360bf2133468498a

11 years agoMinor cosmetic changes.
Ronald S. Bultje [Thu, 30 May 2013 23:34:59 +0000 (16:34 -0700)]
Minor cosmetic changes.

Change-Id: Ieb4a8c97bf1b1dfb993f40a9a3ef3bed5ae7d948

11 years agoMerge "Remove unused define." into experimental
Ronald S. Bultje [Fri, 31 May 2013 03:58:22 +0000 (20:58 -0700)]
Merge "Remove unused define." into experimental

11 years agoMerge "Merge VP9_YMODES, VP9_UV_MODES, INTRA_MODE_COUNT and cousins." into experimental
Ronald S. Bultje [Fri, 31 May 2013 03:58:19 +0000 (20:58 -0700)]
Merge "Merge VP9_YMODES, VP9_UV_MODES, INTRA_MODE_COUNT and cousins." into experimental

11 years agoMerge "Remove TX_SIZE_MAX_MB." into experimental
Ronald S. Bultje [Fri, 31 May 2013 03:58:16 +0000 (20:58 -0700)]
Merge "Remove TX_SIZE_MAX_MB." into experimental

11 years agoMerge "Remove one (unused) entry from mvref tables." into experimental
Ronald S. Bultje [Fri, 31 May 2013 03:58:13 +0000 (20:58 -0700)]
Merge "Remove one (unused) entry from mvref tables." into experimental

11 years agoMerge "Creates a new speed 1:" into experimental
Jim Bankoski [Fri, 31 May 2013 03:36:05 +0000 (20:36 -0700)]
Merge "Creates a new speed 1:" into experimental

11 years agoCreates a new speed 1:
Jim Bankoski [Thu, 30 May 2013 22:13:08 +0000 (15:13 -0700)]
Creates a new speed 1:

This speed 1 - uses variance threshold stolen from static-thresh
to determine split.  Any superblock with greater than the variance
set by static thresh * quantizer index squared is split. In addition
transform size is set to largest size less than or equal to partition
size, sub pixel filter is set to normal,  and only 12 modes are used
at all.

Change-Id: If7a2858ee70f96d1eb989c04fd87a332b147abef

11 years agoMerge "Remove splitmv." into experimental
Ronald S. Bultje [Fri, 31 May 2013 02:07:12 +0000 (19:07 -0700)]
Merge "Remove splitmv." into experimental

11 years agoMerge changes I98c18fe5,I80c37cff into experimental
Ronald S. Bultje [Fri, 31 May 2013 02:06:44 +0000 (19:06 -0700)]
Merge changes I98c18fe5,I80c37cff into experimental

* changes:
  Remove i4x4_pred.
  Remove unused table.

11 years agoRemove unused define.
Ronald S. Bultje [Thu, 30 May 2013 23:24:13 +0000 (16:24 -0700)]
Remove unused define.

Change-Id: Ic6555128206d61f47a46c550cb3dcaf3b4ec6374

11 years agoMerge VP9_YMODES, VP9_UV_MODES, INTRA_MODE_COUNT and cousins.
Ronald S. Bultje [Thu, 30 May 2013 23:21:48 +0000 (16:21 -0700)]
Merge VP9_YMODES, VP9_UV_MODES, INTRA_MODE_COUNT and cousins.

These are now merged in a new define called VP9_INTRA_MODES.

Change-Id: I0890f895756a7395d84c92f98f43e43f4cf9050d

11 years agoRemove TX_SIZE_MAX_MB.
Ronald S. Bultje [Thu, 30 May 2013 23:17:41 +0000 (16:17 -0700)]
Remove TX_SIZE_MAX_MB.

Change-Id: I715870513d1fef8471bfd0f5218a79360a1ef126

11 years agoRemove one (unused) entry from mvref tables.
Ronald S. Bultje [Thu, 30 May 2013 22:26:23 +0000 (15:26 -0700)]
Remove one (unused) entry from mvref tables.

Change-Id: Ieb4669ae564bec9f3051485ecdf186cb4e00decb

11 years agoRemove splitmv.
Ronald S. Bultje [Thu, 30 May 2013 19:49:38 +0000 (12:49 -0700)]
Remove splitmv.

We leave it in rdopt.c as a local define for now - this can be removed
later. In all other places, we remove it, thereby slightly decreasing
the size of some arrays in the bitstream.

Change-Id: Ic2a9beb97a4eda0b086f62c039d994b192f99ca5

11 years agoRemove i4x4_pred.
Ronald S. Bultje [Thu, 30 May 2013 18:27:40 +0000 (11:27 -0700)]
Remove i4x4_pred.

It remains as a local define in rdopt.c so we can distinguish between
split and non-split modes in the RD loop, but disappears outside that
scope in the codec.

Change-Id: I98c18fe5ab7e4fbd1d6620ec5695e2ea20513ce9

11 years agoRemove unused table.
Ronald S. Bultje [Thu, 30 May 2013 20:54:57 +0000 (13:54 -0700)]
Remove unused table.

Change-Id: I80c37cffa176bac942ab3051abdfd585ed5555e1

11 years agoChanged to use a new variant of WHT
Yaowu Xu [Thu, 30 May 2013 21:24:12 +0000 (14:24 -0700)]
Changed to use a new variant of WHT

The commit changed to use a new variant of Walsh-Hadamard Transform
by Tim Terriberry. This new variant has the best compression among a
number of variants that developed by Tim.

Change-Id: Icb3a88515463cfc644b17ca046fcd139db2557e9

11 years agoMerge "Remove set_scale_factors call" into experimental
Yunqing Wang [Thu, 30 May 2013 22:25:01 +0000 (15:25 -0700)]
Merge "Remove set_scale_factors call" into experimental

11 years agoMerge "Bugfix in forward update with modeling on." into experimental
Deb Mukherjee [Thu, 30 May 2013 20:33:51 +0000 (13:33 -0700)]
Merge "Bugfix in forward update with modeling on." into experimental

11 years agoBugfix in forward update with modeling on.
Deb Mukherjee [Thu, 30 May 2013 19:20:03 +0000 (12:20 -0700)]
Bugfix in forward update with modeling on.

Fixes an issue with reducing branch cts in the encoder causing
a drop in performance. The bug was introduced in a previous
clean up patch.

Test: Went back to the offending patch, applied this same fix
to it, and checked that results are identical to the parent
of that patch.

Change-Id: I0bad8e2d930235d0284300fcebf836ceb56f2498

11 years agoMerge "Merge all intra mode coding trees into a single one." into experimental
Ronald S. Bultje [Thu, 30 May 2013 18:27:51 +0000 (11:27 -0700)]
Merge "Merge all intra mode coding trees into a single one." into experimental

11 years agoMerge "Enable iterative motion search for 4x4 inter pred" into experimental
Jingning Han [Thu, 30 May 2013 18:02:10 +0000 (11:02 -0700)]
Merge "Enable iterative motion search for 4x4 inter pred" into experimental

11 years agoMerge "Add intra_only and reset_frame_context flags" into experimental
Adrian Grange [Thu, 30 May 2013 17:56:25 +0000 (10:56 -0700)]
Merge "Add intra_only and reset_frame_context flags" into experimental

11 years agoMerge "Using vp9 function prefix instead of vp8 inside vp9_cx_iface.c." into experimental
Dmitry Kovalev [Thu, 30 May 2013 17:41:55 +0000 (10:41 -0700)]
Merge "Using vp9 function prefix instead of vp8 inside vp9_cx_iface.c." into experimental

11 years agoMerge all intra mode coding trees into a single one.
Ronald S. Bultje [Thu, 30 May 2013 16:58:53 +0000 (09:58 -0700)]
Merge all intra mode coding trees into a single one.

Also merge all counters. This removes a few unused probability updates
from the bitstream.

Change-Id: I20f58853e9dac84d8c0d9703ae012c55917516eb

11 years agoMerge "valgrind - txfm_thresh not set" into experimental
Jim Bankoski [Thu, 30 May 2013 16:34:48 +0000 (09:34 -0700)]
Merge "valgrind - txfm_thresh not set" into experimental

11 years agoMerge "Balancing coef-tree to reduce bool decodes" into experimental
Deb Mukherjee [Thu, 30 May 2013 15:10:47 +0000 (08:10 -0700)]
Merge "Balancing coef-tree to reduce bool decodes" into experimental

11 years agoMerge "fix valgrind warning" into experimental
Jim Bankoski [Thu, 30 May 2013 15:04:49 +0000 (08:04 -0700)]
Merge "fix valgrind warning" into experimental

11 years agoPatch to remove implicit segmentation.
Paul Wilkins [Thu, 30 May 2013 10:04:58 +0000 (11:04 +0100)]
Patch to remove implicit segmentation.

This patch removes the implicit segmentation
experiment from the code base as the benefits
were still unproven as of the bitstream deadline.

Change-Id: I273b99d8d621d1853eac4182f97982cb5957247e

11 years agoEnable iterative motion search for 4x4 inter pred
Jingning Han [Thu, 30 May 2013 04:59:41 +0000 (21:59 -0700)]
Enable iterative motion search for 4x4 inter pred

This commit enables iterative motion search for 4x4/4x8/8x4 block
size compound inter-inter prediction.

WIP: borg run testing

Change-Id: I2b318db4a03cdca5a8002b3fa6c0fa89b129288b

11 years agosad_test: fix msvc compile
James Zern [Thu, 30 May 2013 00:47:18 +0000 (17:47 -0700)]
sad_test: fix msvc compile

Fixes:
error C2121: '#' : invalid character : possibly the result of a macro expansion

Change-Id: I63d7ebba29f3a3cbb546406be39270290e9dc47d

11 years agoMerge "Remove some unused code related to macroblock/splitmv coding." into experimental
Ronald S. Bultje [Thu, 30 May 2013 00:35:05 +0000 (17:35 -0700)]
Merge "Remove some unused code related to macroblock/splitmv coding." into experimental

11 years agoMerge "Remove unused and outdated debug code." into experimental
Ronald S. Bultje [Thu, 30 May 2013 00:33:32 +0000 (17:33 -0700)]
Merge "Remove unused and outdated debug code." into experimental

11 years agoAdd intra_only and reset_frame_context flags
Adrian Grange [Thu, 30 May 2013 00:16:00 +0000 (17:16 -0700)]
Add intra_only and reset_frame_context flags

Added two flags to the frame header:

intra_only:
Signals that the frame is encoded using only INTRA
coding modes.

reset_frame_context:
Indicates that the coding context specified
in the frame header should be reset to default values before the
frame is encoded/decoded.

Change-Id: I182d46f1f84fb67a13c46ad767f246a38d7861a2

11 years agoRemove set_scale_factors call
Yunqing Wang [Thu, 30 May 2013 00:07:53 +0000 (17:07 -0700)]
Remove set_scale_factors call

We could remove calling set_scale_factors() since it is also
done in set_refs() right after vp9_decode_mb_mode_mv() call in
decode_modes_b().

Change-Id: I9e62c90ffb770240987cd42815786567261b5d97

11 years agoMerge "Build fix when ENTROPY_STATS is defined" into experimental
Deb Mukherjee [Thu, 30 May 2013 00:01:43 +0000 (17:01 -0700)]
Merge "Build fix when ENTROPY_STATS is defined" into experimental

11 years agoMerge "Refactor 4x4 block level rd loop" into experimental
Jingning Han [Wed, 29 May 2013 23:35:02 +0000 (16:35 -0700)]
Merge "Refactor 4x4 block level rd loop" into experimental

11 years agoBalancing coef-tree to reduce bool decodes
Deb Mukherjee [Wed, 8 May 2013 17:04:14 +0000 (10:04 -0700)]
Balancing coef-tree to reduce bool decodes

This patch changes the coefficient tree to move the EOB to below
the ZERO node in order to save number of bool decodes.

The advantages of moving EOB one step down as opposed to two steps down
in the other parallel patch are: 1. The coef modeling based on
the One-node becomes independent of the tree structure above it, and
2. Fewer conext/counter increases are needed.

The drawback is that the potential savings in bool decodes will be
less, but assuming that 0s are much more predominant than 1's the
potential savings is still likely to be substantial.

Results on derf300: -0.237%

Change-Id: Ie784be13dc98291306b338e8228703a4c2ea2242

11 years agoMerge "Compressed/uncompressed frame header changes." into experimental
Dmitry Kovalev [Wed, 29 May 2013 22:29:44 +0000 (15:29 -0700)]
Merge "Compressed/uncompressed frame header changes." into experimental

11 years agovalgrind - txfm_thresh not set
Jim Bankoski [Wed, 29 May 2013 20:56:08 +0000 (13:56 -0700)]
valgrind - txfm_thresh not set

For 4x4 blocks valgrind points out the cache was uninitalized.
This resolves the issue by setting it.

Change-Id: I22733000da048643762813a84fbda66d8e4040d2

11 years agoRefactor 4x4 block level rd loop
Jingning Han [Wed, 29 May 2013 19:52:57 +0000 (12:52 -0700)]
Refactor 4x4 block level rd loop

This commit makes clean-ups in the rate-distortion loop for 4x4,
4x8, and 8x4 block sizes for the use of iterative motion search.

Removed unnecessary use of bmi in handle_inter_mode.

Deprecated loop over labels in the 4x4/4x8/8x4 block rd search.

Change-Id: I71203dbb68b65e66f073b37abd90d82ef5ae6826

11 years agoMoved use_prev_in_find_mv_refs check to frame level
Scott LaVarnway [Wed, 29 May 2013 20:42:23 +0000 (16:42 -0400)]
Moved use_prev_in_find_mv_refs check to frame level

This patch checks at the frame level to see if the previous
mode info context can be used.  This patch eliminates the
flag check that was done for every mode and removes another
check that was done prior to every vp9_find_mv_refs().

Change-Id: I9da5e18b7e7e28f8b1f90d527cad087073df2d73

11 years agofix valgrind warning
Jim Bankoski [Wed, 29 May 2013 19:34:10 +0000 (12:34 -0700)]
fix valgrind warning

scales for second reference frame vars are unitialized if the
second ref frame is one of of those disallowed by refframeflags

Change-Id: I4ce42de391178c1699dcaede18c5f12c84993c61

11 years agoMerge "Refactor rd loop for inter modes" into experimental
Jingning Han [Wed, 29 May 2013 17:55:23 +0000 (10:55 -0700)]
Merge "Refactor rd loop for inter modes" into experimental

11 years agoMerge "further clean-ups on intra4x4 coding" into experimental
Jingning Han [Wed, 29 May 2013 17:55:14 +0000 (10:55 -0700)]
Merge "further clean-ups on intra4x4 coding" into experimental

11 years agoResidual coding to cache energy class of tokens.
Sami Pietila [Thu, 23 May 2013 10:08:00 +0000 (13:08 +0300)]
Residual coding to cache energy class of tokens.

Proposal for tuning the residual coding by changing how the context
from previous tokens is calculated. Storing the energy class of previous
tokens instead of the token itself eases the critical path of
HW implementations.

Change-Id: I6d71d856b84518f6c88de771ddd818436f794bab

11 years agoRemove some unused code related to macroblock/splitmv coding.
Ronald S. Bultje [Wed, 29 May 2013 13:29:56 +0000 (06:29 -0700)]
Remove some unused code related to macroblock/splitmv coding.

Change-Id: Ic40d56fb162f4e201547dfae33e62ccd9e865889

11 years agoRemove unused and outdated debug code.
Ronald S. Bultje [Wed, 29 May 2013 02:15:45 +0000 (19:15 -0700)]
Remove unused and outdated debug code.

Change-Id: I0e789bdeaed60f920f7a470e56a8d4ea374233fc

11 years agoCompressed/uncompressed frame header changes.
Dmitry Kovalev [Wed, 29 May 2013 01:07:54 +0000 (18:07 -0700)]
Compressed/uncompressed frame header changes.

Adding API to read/write uncompressed frame header bits (it is not final
yet). Separate functions to read/write uncompressed header. Moving
clr_type, error_resilient_mode, refresh_frame_context,
frame_parallel_decoding_mode, frame_context_idx from compressed partition
to uncompressed frame header.

Change-Id: Id3ed8a387980c652ae147549412f4ec24a0a5bd0

11 years agoBuild fix when ENTROPY_STATS is defined
Deb Mukherjee [Wed, 29 May 2013 00:07:27 +0000 (17:07 -0700)]
Build fix when ENTROPY_STATS is defined

Fixes a build issue due to removal of VP9_KF_BINTRAMODES macro,
when ENTROPY_STATS is on.

Change-Id: I75c61702bf626376c942ab49ab887714b43284f0

11 years agoMerge "Clean up related to coefficient modeling" into experimental
Deb Mukherjee [Tue, 28 May 2013 23:55:02 +0000 (16:55 -0700)]
Merge "Clean up related to coefficient modeling" into experimental

11 years agoClean up related to coefficient modeling
Deb Mukherjee [Tue, 28 May 2013 23:25:43 +0000 (16:25 -0700)]
Clean up related to coefficient modeling

Uses reduced arrays for probabilities and branch counts in the
encoder. No change in bitstream.

Change-Id: Iec605446f44db4cd325eb45fa12a3003a6ee29db

11 years agoRefactor rd loop for inter modes
Jingning Han [Tue, 28 May 2013 21:02:29 +0000 (14:02 -0700)]
Refactor rd loop for inter modes

This commit pulls the iterative motion search for compound inter-
inter out from handle_inter_mode_ as a separate function. Hence,
it is applicable to 4x4/4x8/8x4 level compound inter search to be
enabled later.

Also edit the rd loop for 4x4 inter block sizes for cosmetic
purpose.

Change-Id: Ibc71a11cbe5a26cd52faba01026cf8446cf4d2b4

11 years agofurther clean-ups on intra4x4 coding
Jingning Han [Fri, 24 May 2013 22:21:01 +0000 (15:21 -0700)]
further clean-ups on intra4x4 coding

Removed one 4x4 prediction step that was unnessary in the rd loop.
Removed a unused modecosts estimate from encoder side.

Change-Id: I65221a52719d6876492996955ef04142d2752d86

11 years agoMerge "Moving txfm_size bits before prediction mode bits." into experimental
Ronald S. Bultje [Tue, 28 May 2013 16:40:42 +0000 (09:40 -0700)]
Merge "Moving txfm_size bits before prediction mode bits." into experimental

11 years agoMerge "Removed setup_pre_planes() call in read_mb_modes_mv()" into experimental
Scott LaVarnway [Tue, 28 May 2013 16:07:51 +0000 (09:07 -0700)]
Merge "Removed setup_pre_planes() call in read_mb_modes_mv()" into experimental

11 years agoMerge "Remove loop dering experiment." into experimental
Paul Wilkins [Tue, 28 May 2013 12:34:14 +0000 (05:34 -0700)]
Merge "Remove loop dering experiment." into experimental

11 years agoRevert "Adding API to read/write uncompressed frame header bits." because of bitstrea...
Dmitry Kovalev [Tue, 28 May 2013 09:24:52 +0000 (02:24 -0700)]
Revert "Adding API to read/write uncompressed frame header bits." because of bitstream mismatches.

This reverts commit df037b615fcc0196386977faae060fdfd9a887a8

Change-Id: I1a529f2590df7bc912f5035d22311268933e3dd6

11 years agoMerge "a few clean-ups" into experimental
Yaowu Xu [Mon, 27 May 2013 22:16:21 +0000 (15:16 -0700)]
Merge "a few clean-ups" into experimental

11 years agoMerge "Decrease scope of frame_mv argument to handle_inter_mode()." into experimental
Ronald S. Bultje [Mon, 27 May 2013 21:42:38 +0000 (14:42 -0700)]
Merge "Decrease scope of frame_mv argument to handle_inter_mode()." into experimental

11 years agoDecrease scope of frame_mv argument to handle_inter_mode().
Ronald S. Bultje [Mon, 27 May 2013 21:16:45 +0000 (14:16 -0700)]
Decrease scope of frame_mv argument to handle_inter_mode().

Change-Id: I81c637c61ecc33cb66beb59a2a33166d66b9a0a2

11 years agoa few clean-ups
Yaowu Xu [Fri, 24 May 2013 23:13:54 +0000 (16:13 -0700)]
a few clean-ups

1. remove prediction mode conversion
2. unified bmode, same for key and non-key frame
3. set I4X4_PRED count for pdf to 0, as I4X4_PRED is no longer
coded ever. It is determined by ref_frame and block partition

Change-Id: If5b282957c24339b241acdb9f2afef85658fe47d

11 years agoReduce WHT complexity.
Timothy B. Terriberry [Fri, 17 May 2013 17:11:30 +0000 (10:11 -0700)]
Reduce WHT complexity.

Saves 1 add, 3 shifts (and a shift bias) per 1-D transform.

Change-Id: I1104bb1679fe342b2f9677df8a9cdc0cb9699e7d

11 years agoMerge "Reduce bmi buffer length from 16 to 4" into experimental
Jingning Han [Mon, 27 May 2013 16:18:50 +0000 (09:18 -0700)]
Merge "Reduce bmi buffer length from 16 to 4" into experimental

11 years agoReduce bmi buffer length from 16 to 4
Jingning Han [Mon, 27 May 2013 14:55:25 +0000 (07:55 -0700)]
Reduce bmi buffer length from 16 to 4

This commit removes the use of bmi_ in the first-pass encoding by
forcing encode_intra4x4block_ to use DC_PRED, followed by DCT_DCT
only, as John suggested. This makes the need for bmi buffer only
up to 4 entries, instead of 16.

Change-Id: I3410007dfae789ee46a09ae20c39d3ce3c7954aa

11 years agoRemove unused mode_index argument from handle_inter_mode().
Ronald S. Bultje [Fri, 17 May 2013 16:08:17 +0000 (09:08 -0700)]
Remove unused mode_index argument from handle_inter_mode().

Change-Id: I07b8c15f33e6e7c63dd0033c18c4ac5c0303cf32

11 years agoFix coding statistics compilation.
Ronald S. Bultje [Sat, 25 May 2013 18:41:25 +0000 (11:41 -0700)]
Fix coding statistics compilation.

Change-Id: I21e7c4ef6bc80f4b9281fc94c88fb710b1595c23

11 years agoMoving txfm_size bits before prediction mode bits.
Sami Pietila [Mon, 27 May 2013 07:14:53 +0000 (10:14 +0300)]
Moving txfm_size bits before prediction mode bits.

Hardware implementation needs to load coeff probs based on the
transform size. For selectable transform size, moving these bits
earlier in the bitstream adds some delay giving time to preload
the probs and speeds up the decoding process.

Change-Id: I3bfc1f662ae6f219c9286fe9ae6310c7d8a63ea7

11 years agoRemove splitmv.
Ronald S. Bultje [Sun, 26 May 2013 21:40:49 +0000 (14:40 -0700)]
Remove splitmv.

Also do per-partition motion vector referencing in <sb8x8 partitions,
and adjust mvref finding for sub8x8 partitions.

Change-Id: Id3ed1ed4d2a8910d11d327db6cc63b8eb79f941f

11 years agoRemove loop dering experiment.
Paul Wilkins [Fri, 24 May 2013 14:40:20 +0000 (15:40 +0100)]
Remove loop dering experiment.

Change-Id: I1a979bf74c286b157c31bab6bdcba0494acb4918

11 years agoMerge "Adding API to read/write uncompressed frame header bits." into experimental
Dmitry Kovalev [Fri, 24 May 2013 20:43:19 +0000 (13:43 -0700)]
Merge "Adding API to read/write uncompressed frame header bits." into experimental

11 years agoFix transform size coding mismatch
Jingning Han [Fri, 24 May 2013 18:11:06 +0000 (11:11 -0700)]
Fix transform size coding mismatch

This commit fixes a transform size enc/dec mismatch issue in the
key frame coding.

Change-Id: I0c4f40464a367b33dd91ace84506650b1aec2873

11 years agoRemoved setup_pre_planes() call in read_mb_modes_mv()
Scott LaVarnway [Fri, 24 May 2013 17:39:48 +0000 (13:39 -0400)]
Removed setup_pre_planes() call in read_mb_modes_mv()

This code does not seem to be necessary anymore.

For the 1080p clip used, the decoder performance improved by
~2%.

Change-Id: I66bb0496d4998b0d6c6637c746b642b77bdbef88

11 years agoFix two bugs
Yaowu Xu [Fri, 24 May 2013 16:23:15 +0000 (09:23 -0700)]
Fix two bugs

1) Added an initialization of rd_tx_select_threshs[].
2) Made updating transform size counts to be consistent

Change-Id: Iaa9d6c6be825b0364c9d61a9802873d01356815c

11 years agoupdate txfm size counting
Yaowu Xu [Thu, 23 May 2013 21:39:28 +0000 (14:39 -0700)]
update txfm size counting

Change-Id: I3a26baf8b2f945fea4f1aea156e60fa79f620f86

11 years agoFix bug in 4x4 band definition.
Paul Wilkins [Thu, 23 May 2013 14:44:45 +0000 (15:44 +0100)]
Fix bug in 4x4 band definition.

Also some unused data structures/references removed.

Change-Id: I295809e887173543e794250cb60ddaf1475ffd24

11 years agoRemoved code not in use
Yaowu Xu [Wed, 22 May 2013 18:27:38 +0000 (11:27 -0700)]
Removed code not in use

As intra coded blocks are always decoded using decode_sb_intra(), this
commmit removed the code no longer in use.

Change-Id: I09f14fa9cdc875656e8fbe245f72c8fd83b9e31e

11 years agoChange txfm_type decision
Yaowu Xu [Wed, 22 May 2013 17:37:40 +0000 (10:37 -0700)]
Change txfm_type decision

The changing in intra coding to base on transform block, i.e. pred->
txfm->quant->dequant-itxfm->recon, made all blocks within a prediction
unit behave consistently, there is no longer a need to handle blocks
differently based on the position within a predicitn block. So this
commit simplifies the decision of transform type to be based on
prediction mode only.

Change-Id: If96cb72386f2e9186126ace88afa35ef085b6c96

11 years agoFix a bug in intra4x4 level rd loop
Jingning Han [Thu, 23 May 2013 22:12:54 +0000 (15:12 -0700)]
Fix a bug in intra4x4 level rd loop

This commit fixed a uninitialized value use in the intra 4x4/8x4/4x8
rate-distortion loop.

Change-Id: I5c25b3536b59e4f5fbb23cf85baf93b2ccec7d72

11 years agoRemove type from vmvn
Johann [Thu, 23 May 2013 20:02:44 +0000 (13:02 -0700)]
Remove type from vmvn

datatype is optional for the instruction but clang refuses it.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489c/CIHIJIHC.html

It is still required when using an immediate.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489c/CIHGGEEB.html

Change-Id: I0fae956c8c0fa3f97578ce80abea247f7fc88705