platform/upstream/libvpx.git
11 years agoMerge "WIP: removing predictor buffer usage from decoder" into experimental
Scott LaVarnway [Thu, 11 Apr 2013 22:24:33 +0000 (15:24 -0700)]
Merge "WIP: removing predictor buffer usage from decoder" into experimental

11 years agoMerge "Remove unused macroblock versions of reconstruction functions." into experimental
Ronald S. Bultje [Thu, 11 Apr 2013 22:19:08 +0000 (15:19 -0700)]
Merge "Remove unused macroblock versions of reconstruction functions." into experimental

11 years agoMerge "Remove "tplist" from VP9_COMP." into experimental
Ronald S. Bultje [Thu, 11 Apr 2013 22:17:03 +0000 (15:17 -0700)]
Merge "Remove "tplist" from VP9_COMP." into experimental

11 years agoMerge "Merge pick_sb_modes and pick_sb64_modes." into experimental
Ronald S. Bultje [Thu, 11 Apr 2013 22:06:37 +0000 (15:06 -0700)]
Merge "Merge pick_sb_modes and pick_sb64_modes." into experimental

11 years agoMerge "Turning model-based updates on with modelcoefprob" into experimental
Deb Mukherjee [Thu, 11 Apr 2013 21:54:53 +0000 (14:54 -0700)]
Merge "Turning model-based updates on with modelcoefprob" into experimental

11 years agoTurning model-based updates on with modelcoefprob
Deb Mukherjee [Tue, 26 Mar 2013 15:34:56 +0000 (08:34 -0700)]
Turning model-based updates on with modelcoefprob

This patch changes the default with the modecoefprob expt
to use mode-based forward updates with one-node pegged
modeling.

The maximum difference with fully trained tables is now
less that 0.1%.

Change-Id: I06b44322e10c6703f93f3c1d48d973b1136a0618

11 years agoMerge "Remove unused vp9 ppc files" into experimental
John Koleszar [Thu, 11 Apr 2013 21:39:18 +0000 (14:39 -0700)]
Merge "Remove unused vp9 ppc files" into experimental

11 years agoWIP: removing predictor buffer usage from decoder
Scott LaVarnway [Wed, 10 Apr 2013 23:46:52 +0000 (19:46 -0400)]
WIP: removing predictor buffer usage from decoder

This patch will use the dest buffer instead of the
predictor buffer.  This will allow us in future commits
to remove the extra mem copy that occurs in the dequant
functions when eob == 0.  We should also be able to remove
extra params that are passed into the dequant functions.

Change-Id: I7241bc1ab797a430418b1f3a95b5476db7455f6a

11 years agoMerge "vp8: set y_crop_{width,height}" into experimental
John Koleszar [Thu, 11 Apr 2013 20:36:44 +0000 (13:36 -0700)]
Merge "vp8: set y_crop_{width,height}" into experimental

11 years agoMerge changes I6721e42f,Iaffb1ae8 into experimental
John Koleszar [Thu, 11 Apr 2013 20:36:25 +0000 (13:36 -0700)]
Merge changes I6721e42f,Iaffb1ae8 into experimental

* changes:
  tokenize: convert skippable functions
  Add foreach_transformed_block

11 years agoRemove unused vp9 ppc files
John Koleszar [Thu, 11 Apr 2013 20:29:37 +0000 (13:29 -0700)]
Remove unused vp9 ppc files

Change-Id: I3fe8c529ddec658cfa2376cfc05d9c8a5366e978

11 years agotokenize: convert skippable functions
John Koleszar [Thu, 11 Apr 2013 18:14:31 +0000 (11:14 -0700)]
tokenize: convert skippable functions

Use the common block walker to calculate skippability.

Change-Id: I6721e42f065df237426c91c1d871ec226ba7cdcb

11 years agoRemove unused macroblock versions of reconstruction functions.
Ronald S. Bultje [Thu, 11 Apr 2013 17:57:16 +0000 (10:57 -0700)]
Remove unused macroblock versions of reconstruction functions.

More specifically, remove vp9_quantize_mb*, vp9_optimize_mb*,
vp9_inverse_transform_mb* and vp9_transform_mb*. Instead, use the
generic _sb* functions that take a size argument, and call them with
BLOCK_SIZE_MB16X16.

Change-Id: I33024afea95d3a23ffbc1df7da426e4645110f29

11 years agoRemove "tplist" from VP9_COMP.
Ronald S. Bultje [Thu, 11 Apr 2013 17:28:45 +0000 (10:28 -0700)]
Remove "tplist" from VP9_COMP.

It is write-only.

Change-Id: I2412344688d96593cc01c038e7f51410d0f85ed0

11 years agoAdd foreach_transformed_block
John Koleszar [Tue, 9 Apr 2013 17:15:10 +0000 (10:15 -0700)]
Add foreach_transformed_block

Adds a framework for doing arbitrary functions on each transform-
sized block in the mb/sb.

Change-Id: Iaffb1ae8db5ff2abfa8720c608c78376b42f2096

11 years agoRemove vp9_reset_mb_tokens_context
John Koleszar [Thu, 11 Apr 2013 18:38:14 +0000 (11:38 -0700)]
Remove vp9_reset_mb_tokens_context

Use sb-common version instead.

Change-Id: If2552b5a39fd2e5272f66a41c5667dda85fd3939

11 years agoMerge pick_sb_modes and pick_sb64_modes.
Ronald S. Bultje [Thu, 11 Apr 2013 16:33:49 +0000 (09:33 -0700)]
Merge pick_sb_modes and pick_sb64_modes.

Change-Id: Iad69e7a3b7e470acf6094f6a52e7da69066fd552

11 years agoSlight simplification of SB RD loop recursion conditions.
Ronald S. Bultje [Thu, 11 Apr 2013 16:14:55 +0000 (09:14 -0700)]
Slight simplification of SB RD loop recursion conditions.

Change-Id: I87a406fcd18ab043253ca0c009d1182fdc5c3046

11 years agoA few more cases where sb_type was used arithmetically.
Ronald S. Bultje [Thu, 11 Apr 2013 01:04:57 +0000 (18:04 -0700)]
A few more cases where sb_type was used arithmetically.

With these fixed, the codec produces identical results regardless of
what literal values are used for the enum members in BLOCK_SIZE_*.

Change-Id: I26db8e08019b58ba432af1f0950ebe6b0eb4ad8c

11 years agoRemove copying of coefficients and predictor in i8x8 RD loop.
Ronald S. Bultje [Wed, 10 Apr 2013 23:56:22 +0000 (16:56 -0700)]
Remove copying of coefficients and predictor in i8x8 RD loop.

The resulting values are never used.

Change-Id: I688caf30da9aab87aa280cce913eda4f33172293

11 years agoMake usage of sb_type independent of literal values.
Ronald S. Bultje [Wed, 10 Apr 2013 23:50:01 +0000 (16:50 -0700)]
Make usage of sb_type independent of literal values.

Change-Id: I0d12f9ef9d960df0172a1377f8e5236eb6d90492

11 years agoMake RD superblock mode search size-agnostic.
Ronald S. Bultje [Wed, 10 Apr 2013 22:55:59 +0000 (15:55 -0700)]
Make RD superblock mode search size-agnostic.

Merge various super_block_yrd and super_block_uvrd versions into one
common function that works for all sizes. Make transform size selection
size-agnostic also. This fixes a slight bug in the intra UV superblock
code where it used the wrong transform size for txsz > 8x8, and stores
the txsz selection for superblocks properly (instead of forgetting it).
Lastly, it removes the trellis search that was done for 16x16 intra
predictors, since trellis is relatively expensive and should thus only
be done after RD mode selection.

Gives basically identical results on derf (+0.009%).

Change-Id: If4485c6f0a0fe4038b3172f7a238477c35a6f8d3

11 years agoMerge "Make dequant/idct block size independent" into experimental
Jingning Han [Wed, 10 Apr 2013 23:47:53 +0000 (16:47 -0700)]
Merge "Make dequant/idct block size independent" into experimental

11 years agoMake dequant/idct block size independent
Jingning Han [Wed, 10 Apr 2013 19:30:20 +0000 (12:30 -0700)]
Make dequant/idct block size independent

The unified dequantization, inverse transform, and adding functions
support rectangular block sizes. Also separate the operations on
luma and chroma components, in the consideration of the txfm_size
for uv components in rectangular block sizes.

Change-Id: I2a13246b2a9086b37d575d346070990d854cc110

11 years agoMerge "Remove obselete code" into experimental
Yaowu Xu [Wed, 10 Apr 2013 21:56:28 +0000 (14:56 -0700)]
Merge "Remove obselete code" into experimental

11 years agoRemove obselete code
Yaowu Xu [Wed, 10 Apr 2013 20:45:22 +0000 (13:45 -0700)]
Remove obselete code

The strategy to run fast loop filter picking for encoder speed-up
should be revisited at a later stage.

Change-Id: I3b75e06d767cff41be952a42e63b3292f4eab996

11 years agoMerge "Make SB Decoding units size-independent" into experimental
Jingning Han [Wed, 10 Apr 2013 20:43:51 +0000 (13:43 -0700)]
Merge "Make SB Decoding units size-independent" into experimental

11 years agoMerge "Fixing upper case names." into experimental
Dmitry Kovalev [Wed, 10 Apr 2013 20:29:38 +0000 (13:29 -0700)]
Merge "Fixing upper case names." into experimental

11 years agoMake SB Decoding units size-independent
Jingning Han [Wed, 10 Apr 2013 03:34:25 +0000 (20:34 -0700)]
Make SB Decoding units size-independent

Unify the sb32x32 and sb64x64 decoding units, which also allow for
other rectangular block sizes.

Change-Id: Ia5187ab2af56f98c3f99272bdf4dbcabe798ad5d

11 years agoMerge "Code cleanup in bitstream code." into experimental
Dmitry Kovalev [Wed, 10 Apr 2013 17:18:50 +0000 (10:18 -0700)]
Merge "Code cleanup in bitstream code." into experimental

11 years agoMerge "Adding setup_quantization function." into experimental
Dmitry Kovalev [Wed, 10 Apr 2013 17:16:30 +0000 (10:16 -0700)]
Merge "Adding setup_quantization function." into experimental

11 years agoMerge "Renaming inverse hybrid transform functions." into experimental
Dmitry Kovalev [Wed, 10 Apr 2013 17:16:00 +0000 (10:16 -0700)]
Merge "Renaming inverse hybrid transform functions." into experimental

11 years agoMerge "Cleanup of set_offsets function." into experimental
Dmitry Kovalev [Wed, 10 Apr 2013 17:15:13 +0000 (10:15 -0700)]
Merge "Cleanup of set_offsets function." into experimental

11 years agoMerge "Configure: make --enable-gprof work" into experimental
Yunqing Wang [Wed, 10 Apr 2013 16:48:46 +0000 (09:48 -0700)]
Merge "Configure: make --enable-gprof work" into experimental

11 years agoMerge "Make SB coding size-independent." into experimental
Ronald S. Bultje [Wed, 10 Apr 2013 15:51:58 +0000 (08:51 -0700)]
Merge "Make SB coding size-independent." into experimental

11 years agoMerge "Don't use BLOCKD in vp9_invtrans.c." into experimental
Ronald S. Bultje [Wed, 10 Apr 2013 04:36:09 +0000 (21:36 -0700)]
Merge "Don't use BLOCKD in vp9_invtrans.c." into experimental

11 years agoMake SB coding size-independent.
Ronald S. Bultje [Wed, 10 Apr 2013 04:28:27 +0000 (21:28 -0700)]
Make SB coding size-independent.

Merge sb32x32 and sb64x64 functions; allow for rectangular sizes. Code
gives identical encoder results before and after. There are a few
macros for rectangular block sizes under the sbsegment experiment; this
experiment is not yet functional and should not yet be used.

Change-Id: I71f93b5d2a1596e99a6f01f29c3f0a456694d728

11 years agoAdding setup_quantization function.
Dmitry Kovalev [Wed, 10 Apr 2013 01:24:08 +0000 (18:24 -0700)]
Adding setup_quantization function.

Change-Id: I8fe25a905717a3cd2da5f87ba0403357536183cf

11 years agoMerge "Fix an issue in set_refs()" into experimental
Yunqing Wang [Tue, 9 Apr 2013 21:31:51 +0000 (14:31 -0700)]
Merge "Fix an issue in set_refs()" into experimental

11 years agoMerge "detokenize: use consistent structure for all block sizes" into experimental
John Koleszar [Tue, 9 Apr 2013 21:18:59 +0000 (14:18 -0700)]
Merge "detokenize: use consistent structure for all block sizes" into experimental

11 years agoConfigure: make --enable-gprof work
Yunqing Wang [Tue, 9 Apr 2013 19:18:35 +0000 (12:18 -0700)]
Configure: make --enable-gprof work

Modified for option "--enable-gprof".

Change-Id: I07f78f28c1b789c0b3e9e7db3561463551ae5460

11 years agoFix an issue in set_refs()
Yunqing Wang [Tue, 9 Apr 2013 19:33:28 +0000 (12:33 -0700)]
Fix an issue in set_refs()

Scale factor for second ref frame wasn't assigned in the code.

Change-Id: I6ef3f3f71bd652a879ad847369c54c744782ea37

11 years agoRenaming inverse hybrid transform functions.
Dmitry Kovalev [Tue, 9 Apr 2013 18:09:23 +0000 (11:09 -0700)]
Renaming inverse hybrid transform functions.

Renaming vp9_ht_dequant_idct_add* functions to vp9_dequant_iht_add*.

Change-Id: Ie427b322b1cc7c8f39d1155f5df91dedfbd944af

11 years agoFixing upper case names.
Dmitry Kovalev [Tue, 9 Apr 2013 17:46:57 +0000 (10:46 -0700)]
Fixing upper case names.

Renaming Y1dequant to y_dequant, UVdequant to uv_dequant, QIndex to qindex.

Change-Id: I1c356e5f886deb3f8807dc212de9799b55b09d58

11 years agoCleanup of set_offsets function.
Dmitry Kovalev [Tue, 9 Apr 2013 17:17:22 +0000 (10:17 -0700)]
Cleanup of set_offsets function.

Adding ALLOWED_REFS_PER_FRAME constant instead of hard coded number 3.

Change-Id: I46146aa837896936f920c748c7d4aa4c27f026e4

11 years agoMerge "Simplification of decoder's code." into experimental
Dmitry Kovalev [Tue, 9 Apr 2013 17:10:29 +0000 (10:10 -0700)]
Merge "Simplification of decoder's code." into experimental

11 years agoMerge "Clamp inferred motion vectors only" into experimental
Jingning Han [Tue, 9 Apr 2013 16:24:08 +0000 (09:24 -0700)]
Merge "Clamp inferred motion vectors only" into experimental

11 years agoCode cleanup in bitstream code.
Dmitry Kovalev [Tue, 9 Apr 2013 02:07:29 +0000 (19:07 -0700)]
Code cleanup in bitstream code.

Lower case variable names, less code.

Change-Id: I1abc8f592ad2343ab5c76fe2d16262741a4a894a

11 years agodetokenize: use consistent structure for all block sizes
John Koleszar [Fri, 5 Apr 2013 22:54:59 +0000 (15:54 -0700)]
detokenize: use consistent structure for all block sizes

Restructure the code to avoid the majority of per-block-size
switches, code duplication, etc. All block types (mb/sb32/sb64)
can be handled by the same code.

Change-Id: I4022718d66e31a15a7074e43f3b98cd0a5124ea7

11 years agoSimplification of decoder's code.
Dmitry Kovalev [Fri, 5 Apr 2013 17:47:26 +0000 (10:47 -0700)]
Simplification of decoder's code.

Removing several commented code blocks, using uint32_t and uint8_t types,
removing redundant code.

Change-Id: Ifc5cc9863897925ea2a7cab4f7309ccf28d80bfe

11 years agoDon't use BLOCKD in vp9_invtrans.c.
Ronald S. Bultje [Mon, 8 Apr 2013 18:37:29 +0000 (11:37 -0700)]
Don't use BLOCKD in vp9_invtrans.c.

Change-Id: I40524170334109e2864b06e3c73c8b34e5aa8b0f

11 years agoClamp inferred motion vectors only
Jingning Han [Sat, 6 Apr 2013 17:00:53 +0000 (10:00 -0700)]
Clamp inferred motion vectors only

Clamp only the motion vectors inferred from neighboring reference
macroblocks. The motion vectors obtained through motion search in
NEWMV mode are constrained during the search process, which allows
a relatively larger referencing region than the inferred mvs.
Hence further clamping the best mv provided by the motion search may
affect the efficacy of NEWMV mode.

Synchronized the decoding process. The decoded mvs in NEWMV modes
should be guaranteed to fit in the effective range. Put a mv range
clamping function there for security purpose.

This improves the coding performance of high motion sequences, e.g.,
derf set:
foreman 0.233%
husky   0.175%
icd     0.135%
mother_daughter 0.337%
pamphlet        0.561%

stdhd set:
blue_sky 0.408%
city     0.455%
also saw sunflower goes down by -0.469%.

Change-Id: I3fcbba669e56dab779857a8126a91b926e899cb5

11 years agoFix typo which breaks 4x4 splitmv compound prediction RD code.
Ronald S. Bultje [Mon, 8 Apr 2013 16:16:26 +0000 (09:16 -0700)]
Fix typo which breaks 4x4 splitmv compound prediction RD code.

0.15% quality increase on derf, particularly noticeable on hard clips
at the higher bitrate end.

Change-Id: I02415a96eb9bbc361cba923069625fae71844bc9

11 years agoMerge "Small cleanup inside setup_loopfilter function." into experimental
John Koleszar [Fri, 5 Apr 2013 23:13:46 +0000 (16:13 -0700)]
Merge "Small cleanup inside setup_loopfilter function." into experimental

11 years agoMerge "Segmentation code cleanup." into experimental
John Koleszar [Fri, 5 Apr 2013 23:03:25 +0000 (16:03 -0700)]
Merge "Segmentation code cleanup." into experimental

11 years agoMerge changes Ibbfa68d6,Idb76a0e2 into experimental
John Koleszar [Fri, 5 Apr 2013 22:56:50 +0000 (15:56 -0700)]
Merge changes Ibbfa68d6,Idb76a0e2 into experimental

* changes:
  Move EOB to per-plane data
  Move qcoeff, dqcoeff from BLOCKD to per-plane data

11 years agoMerge "Remove full-pixel-related code." into experimental
Ronald S. Bultje [Fri, 5 Apr 2013 20:46:07 +0000 (13:46 -0700)]
Merge "Remove full-pixel-related code." into experimental

11 years agoMerge "Remove some unused macros." into experimental
Ronald S. Bultje [Fri, 5 Apr 2013 20:46:02 +0000 (13:46 -0700)]
Merge "Remove some unused macros." into experimental

11 years agoMerge "Remove struct POS." into experimental
Ronald S. Bultje [Fri, 5 Apr 2013 20:45:58 +0000 (13:45 -0700)]
Merge "Remove struct POS." into experimental

11 years agoMerge "Remove unused vpx_log() function prototype." into experimental
Ronald S. Bultje [Fri, 5 Apr 2013 20:45:51 +0000 (13:45 -0700)]
Merge "Remove unused vpx_log() function prototype." into experimental

11 years agoMerge "Remove "tx_type" member from union b_mode_info." into experimental
Ronald S. Bultje [Fri, 5 Apr 2013 20:45:48 +0000 (13:45 -0700)]
Merge "Remove "tx_type" member from union b_mode_info." into experimental

11 years agoMerge "Removed a speed feature no longer used" into experimental
Yaowu Xu [Fri, 5 Apr 2013 20:34:57 +0000 (13:34 -0700)]
Merge "Removed a speed feature no longer used" into experimental

11 years agoMerge "make one_shot_q an experiment" into experimental
Yaowu Xu [Fri, 5 Apr 2013 20:34:45 +0000 (13:34 -0700)]
Merge "make one_shot_q an experiment" into experimental

11 years agoRemove full-pixel-related code.
Ronald S. Bultje [Fri, 5 Apr 2013 19:50:19 +0000 (12:50 -0700)]
Remove full-pixel-related code.

This is a VP8-only feature (part of profile 3) that is unsupported in
VP9.

Change-Id: I78016eede8d9c834d44d4c517f3e8b8fc2a378b1

11 years agoSmall cleanup inside setup_loopfilter function.
Dmitry Kovalev [Fri, 5 Apr 2013 19:48:48 +0000 (12:48 -0700)]
Small cleanup inside setup_loopfilter function.

Change-Id: If7fa8aea02f26c2c2bb5daf4e65c3e661d7031ca

11 years agoRemove some unused macros.
Ronald S. Bultje [Fri, 5 Apr 2013 19:40:56 +0000 (12:40 -0700)]
Remove some unused macros.

Change-Id: Ic219e7878428128e4bb1b3995e8151f92b6bd9c3

11 years agoRemove struct POS.
Ronald S. Bultje [Fri, 5 Apr 2013 19:38:40 +0000 (12:38 -0700)]
Remove struct POS.

It is never used.

Change-Id: If7462357c0498ed05af2645f0c272124381d3aab

11 years agoRemove unused vpx_log() function prototype.
Ronald S. Bultje [Fri, 5 Apr 2013 19:37:45 +0000 (12:37 -0700)]
Remove unused vpx_log() function prototype.

Change-Id: Icd6b4322841fefcc86f06645e6aaf1ea42fdfabd

11 years agoRemove "tx_type" member from union b_mode_info.
Ronald S. Bultje [Fri, 5 Apr 2013 19:36:15 +0000 (12:36 -0700)]
Remove "tx_type" member from union b_mode_info.

It is never used.

Change-Id: Ibae898c52c766aabf65868611060f9c38fb85b35

11 years agoSegmentation code cleanup.
Dmitry Kovalev [Fri, 5 Apr 2013 18:55:52 +0000 (11:55 -0700)]
Segmentation code cleanup.

Cleaning up the code, removing unused vp9_check_segref_inter function and
useless comments.

Change-Id: Ia0e1a3878dc0f9789cba84aeb507a83d9dccd26b

11 years agoRemoved a speed feature no longer used
Yaowu Xu [Fri, 5 Apr 2013 17:43:20 +0000 (10:43 -0700)]
Removed a speed feature no longer used

Change-Id: Id0c2e44daa936f1d6fb76469fd1bd72a4d7c19fd

11 years agoMerge "Simplifying get_delta_q function." into experimental
John Koleszar [Fri, 5 Apr 2013 16:16:15 +0000 (09:16 -0700)]
Merge "Simplifying get_delta_q function." into experimental

11 years agoMove EOB to per-plane data
John Koleszar [Thu, 4 Apr 2013 19:03:27 +0000 (12:03 -0700)]
Move EOB to per-plane data

Continue migrating data from BLOCKD/MACROBLOCKD to the per-plane
structures.

Change-Id: Ibbfa68d6da438d32dcbe8df68245ee28b0a2fa2c

11 years agoMove qcoeff, dqcoeff from BLOCKD to per-plane data
John Koleszar [Tue, 2 Apr 2013 21:50:40 +0000 (14:50 -0700)]
Move qcoeff, dqcoeff from BLOCKD to per-plane data

Start grouping data per-plane, as part of refactoring to support
additional planes, and chroma planes with other-than 4:2:0
subsampling.

Change-Id: Idb76a0e23ab239180c818025bae1f36f1608bb23

11 years agomake one_shot_q an experiment
Yaowu Xu [Wed, 27 Mar 2013 21:58:37 +0000 (14:58 -0700)]
make one_shot_q an experiment

so it is configurable to faciliate testings

Change-Id: I247b62736c3a08ec2934793959d1ae605a05efa3

11 years agoFixing the newbintramodes experiment
Deb Mukherjee [Thu, 4 Apr 2013 19:32:34 +0000 (12:32 -0700)]
Fixing the newbintramodes experiment

Adds back special casing B_PRED mode decoding but protected
within the experimental macro.

Change-Id: If98dc8e56b0ecfb1202540c2b7dfdd070cb81ca0

11 years agoSimplifying get_delta_q function.
Dmitry Kovalev [Thu, 4 Apr 2013 19:10:39 +0000 (12:10 -0700)]
Simplifying get_delta_q function.

Change-Id: I3a1e9cc5c3ed5be01ff75a84a6c82ec02c75af9c

11 years agoMerge "Bugfix in encode_inter_mb_segment_8x8" into experimental
Deb Mukherjee [Thu, 4 Apr 2013 18:17:48 +0000 (11:17 -0700)]
Merge "Bugfix in encode_inter_mb_segment_8x8" into experimental

11 years agoBugfix in encode_inter_mb_segment_8x8
Deb Mukherjee [Thu, 4 Apr 2013 18:07:19 +0000 (11:07 -0700)]
Bugfix in encode_inter_mb_segment_8x8

Fixes an indexing bug. Looks like the bug has been there for a while.

Change-Id: I9fc04b0c30754bcb47366ad94a08112925600c4d

11 years agoFixing bug introduced by previous commit.
Dmitry Kovalev [Thu, 4 Apr 2013 17:49:17 +0000 (10:49 -0700)]
Fixing bug introduced by previous commit.

Inside decode_sb_4x4 it should be
"get_tx_type_4x4(mb, y_idx * y_size + x_idx)"
but it was
"get_tx_type_4x4(mb, y_idx * (2 * y_size) + x_idx)".
Also making code of decode_sb_4x4, decode_sb_8x8, and decode_sb_16x16
formatted in the same way.

Change-Id: I15c7bef4fb575f7e9da19f953912324cb35d24dd

11 years agoMerge "Remove special case vp9_decode_coefs_4x4" into experimental
John Koleszar [Thu, 4 Apr 2013 14:11:31 +0000 (07:11 -0700)]
Merge "Remove special case vp9_decode_coefs_4x4" into experimental

11 years agoFixed incorrect use of compute_qdelta()
Paul Wilkins [Thu, 28 Mar 2013 19:46:35 +0000 (19:46 +0000)]
Fixed incorrect use of compute_qdelta()

This function expects real Q values as inputs
not index values.

The use-age her impacts the Q chosen for force key
frames. Though this is a bug fix I have not yet verified
whether following the bug fix the q multiplier value used is
correct.

Change-Id: I49f6da894d90baeb1e86c820c335f02dc80d3b66

11 years agoMerge "Adding decode_sb_16x16 function." into experimental
John Koleszar [Thu, 4 Apr 2013 04:07:53 +0000 (21:07 -0700)]
Merge "Adding decode_sb_16x16 function." into experimental

11 years agoMerge "Reimplementation of setup_frame_size." into experimental
John Koleszar [Thu, 4 Apr 2013 04:04:29 +0000 (21:04 -0700)]
Merge "Reimplementation of setup_frame_size." into experimental

11 years agoMerge "Adding setup_pred_probs and read_txfm_mode functions." into experimental
John Koleszar [Thu, 4 Apr 2013 04:02:59 +0000 (21:02 -0700)]
Merge "Adding setup_pred_probs and read_txfm_mode functions." into experimental

11 years agoMerge "General code cleanup." into experimental
John Koleszar [Thu, 4 Apr 2013 03:59:51 +0000 (20:59 -0700)]
Merge "General code cleanup." into experimental

11 years agoGeneral code cleanup.
Dmitry Kovalev [Thu, 4 Apr 2013 01:40:17 +0000 (18:40 -0700)]
General code cleanup.

Making code more readable in different places.

Change-Id: Iea92c9a35e64d257ee358879fc04fc926843d52e

11 years agoAdding decode_sb_16x16 function.
Dmitry Kovalev [Thu, 4 Apr 2013 01:37:28 +0000 (18:37 -0700)]
Adding decode_sb_16x16 function.

Moving command code from decode_sb32 and decode_sb64 into new
decode_sb_16x16 function.

Change-Id: I57a161300af085557adec2fe600f3c10a145faf2

11 years agoMerge "Motion vector decoder cleanup." into experimental
John Koleszar [Thu, 4 Apr 2013 01:00:31 +0000 (18:00 -0700)]
Merge "Motion vector decoder cleanup." into experimental

11 years agoMotion vector decoder cleanup.
Dmitry Kovalev [Thu, 4 Apr 2013 00:43:45 +0000 (17:43 -0700)]
Motion vector decoder cleanup.

Better formatting, shorter code, adding read_switchable_filter_type
function.

Change-Id: Ib919b529385cae34c2d682b1c3093518b6942fc1

11 years agoRemove special case vp9_decode_coefs_4x4
John Koleszar [Wed, 3 Apr 2013 23:12:11 +0000 (16:12 -0700)]
Remove special case vp9_decode_coefs_4x4

This code was only called in the BPRED case, but had no real special
case associated with it. Made BPRED behave like all other modes. No
bitstream change.

Change-Id: I87ba11fe723928b6314d094979011228d5ba006f

11 years agoMerge "Modify vp9_setup_interp_filters function" into experimental
Yunqing Wang [Wed, 3 Apr 2013 21:09:01 +0000 (14:09 -0700)]
Merge "Modify vp9_setup_interp_filters function" into experimental

11 years agoModify vp9_setup_interp_filters function
Yunqing Wang [Wed, 3 Apr 2013 19:22:50 +0000 (12:22 -0700)]
Modify vp9_setup_interp_filters function

Took vp9_setup_scale_factors_for_frame() out from
vp9_setup_interp_filters(), so that it is only called once per
frame instead of per macroblock. Decoder tests showed a 1.5%
performance gain.

Change-Id: I770cb09eb2140ab85132f82aed388ac0bdd3a0aa

11 years agovp8: set y_crop_{width,height}
John Koleszar [Wed, 3 Apr 2013 19:34:05 +0000 (12:34 -0700)]
vp8: set y_crop_{width,height}

Update to use the new YV12_BUFFER_CONFIG structure.

Change-Id: Ia64757d50cc9019d336fa622e059bf68140d0fa7

11 years agoReimplementation of setup_frame_size.
Dmitry Kovalev [Wed, 3 Apr 2013 19:21:47 +0000 (12:21 -0700)]
Reimplementation of setup_frame_size.

General code cleanup in loopfilter code. Modification of setup_frame_size,
so now VP9_COMMON is modified in one place after all width/height checks
passed.

Change-Id: Iedf32df43a912d7aae788ed276ac6c429973f6fe

11 years agoAdding setup_pred_probs and read_txfm_mode functions.
Dmitry Kovalev [Wed, 3 Apr 2013 19:18:15 +0000 (12:18 -0700)]
Adding setup_pred_probs and read_txfm_mode functions.

Decomposition vp9_decode_frame function, moving code into read_txfm_mode
and setup_pred_probs functions.

Change-Id: I90970dea43cbcef4d6d61fdef267c2094ddee65d

11 years agoMerge "Fix overlapping writes by copy_and_extend_plane" into experimental
John Koleszar [Wed, 3 Apr 2013 18:54:29 +0000 (11:54 -0700)]
Merge "Fix overlapping writes by copy_and_extend_plane" into experimental

11 years agoMerge "Remove unused inplace idct_add functions" into experimental
John Koleszar [Wed, 3 Apr 2013 18:10:50 +0000 (11:10 -0700)]
Merge "Remove unused inplace idct_add functions" into experimental

11 years agoMerge "Renaming sb32_coded and sb64_coded fields." into experimental
John Koleszar [Wed, 3 Apr 2013 04:49:03 +0000 (21:49 -0700)]
Merge "Renaming sb32_coded and sb64_coded fields." into experimental

11 years agoMerge "Lower case names for struct members." into experimental
John Koleszar [Wed, 3 Apr 2013 04:27:32 +0000 (21:27 -0700)]
Merge "Lower case names for struct members." into experimental