platform/upstream/libvpx.git
10 years agoMake coeff_optimize initialized per-plane
Jingning Han [Tue, 23 Jul 2013 22:53:09 +0000 (15:53 -0700)]
Make coeff_optimize initialized per-plane

This commit makes the initialization of trellis coeff optimization
a per-plane operation, thereby eliminating the redundant steps in
encode_sby and encode_sbuv. It makes the encoder at speed 0 slightly
faster.

Change-Id: Iffe9faca6a109dafc0dd69dc7273cbdec19b17cd

10 years agoMerge "SSE2 inverse 4x4 2D-DCT with DC only"
Jingning Han [Thu, 25 Jul 2013 15:49:37 +0000 (08:49 -0700)]
Merge "SSE2 inverse 4x4 2D-DCT with DC only"

10 years agoMerge "pack_inter_mode_mvs cleanup"
Scott LaVarnway [Thu, 25 Jul 2013 11:47:56 +0000 (04:47 -0700)]
Merge "pack_inter_mode_mvs cleanup"

10 years agoSSE2 inverse 4x4 2D-DCT with DC only
Jingning Han [Wed, 24 Jul 2013 22:41:43 +0000 (15:41 -0700)]
SSE2 inverse 4x4 2D-DCT with DC only

Add SSE2 implementation to handle the special case of inverse 2D-DCT
where only DC coefficient is non-zero.

Change-Id: I2c6a59e21e5e77b8cf39a4af5eecf4d5ade32e2f

10 years agoMerge "Merge vp9_dc_only_idct_add and vp9_short_idct4x4_1"
Jingning Han [Thu, 25 Jul 2013 06:18:24 +0000 (23:18 -0700)]
Merge "Merge vp9_dc_only_idct_add and vp9_short_idct4x4_1"

10 years agoInlining vp9_init_mode_contexts function.
Dmitry Kovalev [Thu, 25 Jul 2013 00:02:35 +0000 (17:02 -0700)]
Inlining vp9_init_mode_contexts function.

Change-Id: I21ee76bcae101cc9f6ef1d867622e50b7ae565fc

10 years agoMerge vp9_dc_only_idct_add and vp9_short_idct4x4_1
Jingning Han [Wed, 24 Jul 2013 23:33:57 +0000 (16:33 -0700)]
Merge vp9_dc_only_idct_add and vp9_short_idct4x4_1

They share the same functionality, so merging together.

Change-Id: I98a0386fcee052cb854f9ff90c283c1b844bcb79

10 years agoRemoving CONFIG_BALANCED_COEFTREE experiment.
Dmitry Kovalev [Wed, 24 Jul 2013 22:53:42 +0000 (15:53 -0700)]
Removing CONFIG_BALANCED_COEFTREE experiment.

Change-Id: I61a8b0101eac3ee2e0621d56151b90c269fd4db4

10 years agoMerge "Adding condition inside get_tx_type_{4x4, 8x8, 16x16}."
Dmitry Kovalev [Wed, 24 Jul 2013 22:23:22 +0000 (15:23 -0700)]
Merge "Adding condition inside get_tx_type_{4x4, 8x8, 16x16}."

10 years agoAdding condition inside get_tx_type_{4x4, 8x8, 16x16}.
Dmitry Kovalev [Wed, 24 Jul 2013 19:55:45 +0000 (12:55 -0700)]
Adding condition inside get_tx_type_{4x4, 8x8, 16x16}.

Adding plane type check condition because it was always used outside of
get_tx_type_{4x4, 8x8, 16x16}.

Change-Id: I02f0bbfee8063474865bd903eb25b54d26e07230

10 years agoMerge "vp9_find_mv_refs_idx: remove unused split_count"
James Zern [Wed, 24 Jul 2013 19:49:15 +0000 (12:49 -0700)]
Merge "vp9_find_mv_refs_idx: remove unused split_count"

10 years agovp9_find_mv_refs_idx: remove unused split_count
James Zern [Tue, 23 Jul 2013 18:37:01 +0000 (11:37 -0700)]
vp9_find_mv_refs_idx: remove unused split_count

variable was write only

Change-Id: I04b002178f66961836ee08fb60a05b91b54e91d8

10 years agoMerge "Correct spelling mistakes"
Adrian Grange [Wed, 24 Jul 2013 16:48:57 +0000 (09:48 -0700)]
Merge "Correct spelling mistakes"

10 years agoCorrect spelling mistakes
Adrian Grange [Wed, 24 Jul 2013 14:58:26 +0000 (07:58 -0700)]
Correct spelling mistakes

Change-Id: Id4138293efeac4503b2e01ce7a6c150a5abeef77

10 years agoMerge "More optimizations for cost_coeffs()."
Ronald S. Bultje [Wed, 24 Jul 2013 04:36:12 +0000 (21:36 -0700)]
Merge "More optimizations for cost_coeffs()."

10 years agoMerge "Unify the use of encode_b_args/optimize_block_args"
Jingning Han [Wed, 24 Jul 2013 01:08:50 +0000 (18:08 -0700)]
Merge "Unify the use of encode_b_args/optimize_block_args"

10 years agoMoving counts from FRAME_CONTEXT to new struct FRAME_COUNTS.
Dmitry Kovalev [Wed, 24 Jul 2013 00:02:08 +0000 (17:02 -0700)]
Moving counts from FRAME_CONTEXT to new struct FRAME_COUNTS.

Counts are separate from frame context. We have several frame contexts but
need only one copy of all counts.

Change-Id: I5279b0321cb450bbea7049adaa9275306a7cef7d

10 years agoUnify the use of encode_b_args/optimize_block_args
Jingning Han [Tue, 23 Jul 2013 22:59:58 +0000 (15:59 -0700)]
Unify the use of encode_b_args/optimize_block_args

The struct optimize_block_args is defined same as encode_b_args.
Remove this redundant definition, and use encode_b_args consistently.

Change-Id: I1703aeeb3bacf92e98a34f4355202712110173d9

10 years agoRemoving LOW_PRECISION_MV_UPDATE define.
Dmitry Kovalev [Tue, 23 Jul 2013 22:41:45 +0000 (15:41 -0700)]
Removing LOW_PRECISION_MV_UPDATE define.

Change-Id: I78d16ee758e1fae0200b746f00031f6d9c6d6ce7

10 years agoMerge "Removing vp9_is_interpolating_filter array."
Dmitry Kovalev [Tue, 23 Jul 2013 22:01:19 +0000 (15:01 -0700)]
Merge "Removing vp9_is_interpolating_filter array."

10 years agoMerge "Rolled-up several for loops into one"
Adrian Grange [Tue, 23 Jul 2013 22:00:06 +0000 (15:00 -0700)]
Merge "Rolled-up several for loops into one"

10 years agoRolled-up several for loops into one
Adrian Grange [Tue, 23 Jul 2013 19:54:04 +0000 (12:54 -0700)]
Rolled-up several for loops into one

Several consecutive for loops executed over the same
index range, so I rolled them into one.

Change-Id: I5cfcc8c38c738478965768409cca9d09adf224e1

10 years agoRemoving vp9_is_interpolating_filter array.
Dmitry Kovalev [Tue, 23 Jul 2013 21:24:39 +0000 (14:24 -0700)]
Removing vp9_is_interpolating_filter array.

All filters are interpolating now, so we don't need this array, all
values from this array are evaluated to true.

Change-Id: I9af6d8219ae0eb984063cd15e4e2296374ae4961

10 years agoMerge "Adding update_tx_counts function."
Dmitry Kovalev [Tue, 23 Jul 2013 20:57:59 +0000 (13:57 -0700)]
Merge "Adding update_tx_counts function."

10 years agoMerge "Removing MODE_COUNT_TESTING from vp9_entropymode.c."
Dmitry Kovalev [Tue, 23 Jul 2013 20:57:05 +0000 (13:57 -0700)]
Merge "Removing MODE_COUNT_TESTING from vp9_entropymode.c."

10 years agoMerge "Make xform_quant operations tx_type independent"
Jingning Han [Tue, 23 Jul 2013 20:40:27 +0000 (13:40 -0700)]
Merge "Make xform_quant operations tx_type independent"

10 years agoMerge "Cleanup inside vp9_get_pred_context_tx_size."
Dmitry Kovalev [Tue, 23 Jul 2013 19:45:49 +0000 (12:45 -0700)]
Merge "Cleanup inside vp9_get_pred_context_tx_size."

10 years agoRemoving MODE_COUNT_TESTING from vp9_entropymode.c.
Dmitry Kovalev [Tue, 23 Jul 2013 19:37:41 +0000 (12:37 -0700)]
Removing MODE_COUNT_TESTING from vp9_entropymode.c.

Change-Id: I5367bc1d9e660d86879d285a6f146d8a47e62464

10 years agoMake xform_quant operations tx_type independent
Jingning Han [Tue, 23 Jul 2013 19:21:48 +0000 (12:21 -0700)]
Make xform_quant operations tx_type independent

The xform_quant() module is only used by inter modes, hence removing
the redundant switches therein conditioned on tx_type.

Change-Id: Ib87ce5b2f2e4cbf3ceb133a1108afa173c933a3f

10 years agoMerge "vp9: make some static tables const"
James Zern [Tue, 23 Jul 2013 18:37:01 +0000 (11:37 -0700)]
Merge "vp9: make some static tables const"

10 years agoMerge "Skip inverse transform when eob is zero"
Jingning Han [Tue, 23 Jul 2013 17:31:19 +0000 (10:31 -0700)]
Merge "Skip inverse transform when eob is zero"

10 years agoMerge "VP9_COMMON: remove unused temp_scale_frame"
James Zern [Tue, 23 Jul 2013 17:30:55 +0000 (10:30 -0700)]
Merge "VP9_COMMON: remove unused temp_scale_frame"

10 years agoMerge "Diamond search change to accelerate movement"
Deb Mukherjee [Tue, 23 Jul 2013 17:14:10 +0000 (10:14 -0700)]
Merge "Diamond search change to accelerate movement"

10 years agoSkip inverse transform when eob is zero
Jingning Han [Tue, 23 Jul 2013 17:02:43 +0000 (10:02 -0700)]
Skip inverse transform when eob is zero

When all the transform coefficients were quantized to zero, skip
the inverse transform operation. For bus_cif at 1000 kbps, the
runtime goes from 154967ms -> 149842ms, i.e., about 3% speed-up,
at speed 0.

Change-Id: Ic0a813fff5e28972d4888ee42d8747846a6c3cc6

10 years agoMerge "Renaming of segment constants."
Paul Wilkins [Tue, 23 Jul 2013 15:16:12 +0000 (08:16 -0700)]
Merge "Renaming of segment constants."

10 years agopack_inter_mode_mvs cleanup
Scott LaVarnway [Tue, 23 Jul 2013 14:08:28 +0000 (10:08 -0400)]
pack_inter_mode_mvs cleanup

xd->mode_info_context is set to m prior to this call.

Change-Id: Ibc442529961750c29ccf0c6cae08cb2b0431415f

10 years agoMerge "clean up bw, bh"
Jim Bankoski [Tue, 23 Jul 2013 13:58:28 +0000 (06:58 -0700)]
Merge "clean up bw, bh"

10 years agoclean up bw, bh
Jim Bankoski [Tue, 23 Jul 2013 13:51:44 +0000 (06:51 -0700)]
clean up bw, bh

many structures use bw and bh and they have different meanings.   This cl attempts
to start this clean up and remove unneccessary 2 step look up log and then
shift operations...

also removed partition type multiple operation code in bitstream.c.

Change-Id: I7e03e552bdfc0939738e430862e3073d30fdd5db

10 years agoMerge "Eliminated prev_mip memsets/memcpys in encoder"
Scott LaVarnway [Tue, 23 Jul 2013 13:43:52 +0000 (06:43 -0700)]
Merge "Eliminated prev_mip memsets/memcpys in encoder"

10 years agoMerge "Reworked the auto_mv_step_size speed feature"
Paul Wilkins [Tue, 23 Jul 2013 11:49:55 +0000 (04:49 -0700)]
Merge "Reworked the auto_mv_step_size speed feature"

10 years agoRenaming of segment constants.
Paul Wilkins [Tue, 23 Jul 2013 11:09:04 +0000 (12:09 +0100)]
Renaming of segment constants.

Renamed:
  MAX_MB_SEGMENTS to MAX_SEGMENTS
  MB_SEG_TREE_PROBS to SEG_TREE_PROBS

The minimum unit for segmentation in the segment map
is now 8x8 so it is misleading to use MB_ as macro-block
traditionally refers to a 16x16 region.

Change-Id: I0b55a6f0426bb46dd13435fcfa5bae0a30a7fa22

10 years agovp9: make some static tables const
James Zern [Tue, 23 Jul 2013 02:16:54 +0000 (19:16 -0700)]
vp9: make some static tables const

Change-Id: I8bcae51271673da8755c66a51aea005dfe6a3739

10 years agoMerge "Speedup loopfilter neon code."
Frank Galligan [Tue, 23 Jul 2013 00:39:42 +0000 (17:39 -0700)]
Merge "Speedup loopfilter neon code."

11 years agoCleanup inside vp9_get_pred_context_tx_size.
Dmitry Kovalev [Tue, 23 Jul 2013 00:18:11 +0000 (17:18 -0700)]
Cleanup inside vp9_get_pred_context_tx_size.

Using max_txsize_lookup to get max transform size.

Change-Id: If4b39beba3c06a581effd8cab698ea90727dc2c9

11 years agoMerge "VP9_COMMON: drop cur_tile_{row,col}_idx"
James Zern [Tue, 23 Jul 2013 00:12:39 +0000 (17:12 -0700)]
Merge "VP9_COMMON: drop cur_tile_{row,col}_idx"

11 years agoSpeedup loopfilter neon code.
Frank Galligan [Fri, 19 Jul 2013 00:58:05 +0000 (17:58 -0700)]
Speedup loopfilter neon code.

Try and cut down the cycle count by rearranging the instructions
so there are less stalls.

Change-Id: Ic1383335ee0f05e656477d9ee9c179ec231285d5

11 years agoMerge "vp9: apply loopfilter inline if possible"
James Zern [Mon, 22 Jul 2013 23:32:20 +0000 (16:32 -0700)]
Merge "vp9: apply loopfilter inline if possible"

11 years agoMore optimizations for cost_coeffs().
Ronald S. Bultje [Mon, 22 Jul 2013 23:09:09 +0000 (16:09 -0700)]
More optimizations for cost_coeffs().

4x4:    163 ->  123 cycles (33% faster)
8x8:    491 ->  399 cycles (23% faster)
16x16: 1889 -> 1763 cycles (7% faster)
32x32: 8311 -> 8180 cycles (1.6% faster)

Overall encoding time of first 50 frames of bus (speed 0) @ 1500kbps
goes from 1min4.33 to 1min3.00, i.e. 2.11% faster.

Change-Id: Ib52d1dbb5649b14de769d3e7a74af67440b5284f

11 years agovp9: apply loopfilter inline if possible
James Zern [Fri, 19 Jul 2013 21:40:34 +0000 (14:40 -0700)]
vp9: apply loopfilter inline if possible

excludes tiled content currently

Change-Id: I44155253e8d6771e5e039d663be5f21cc9d0355d

11 years agolibyuv: fix SSSE3 code in scale.c
Yunqing Wang [Mon, 22 Jul 2013 22:42:23 +0000 (15:42 -0700)]
libyuv: fix SSSE3 code in scale.c

This patch was provided by Frank.

Change-Id: Icebcbd96016a51a85dbe5e8a351ab7624ace962b

11 years agoAdding update_tx_counts function.
Dmitry Kovalev [Mon, 22 Jul 2013 21:57:43 +0000 (14:57 -0700)]
Adding update_tx_counts function.

Moving common encoder/decoder code to update_tx_counts. Also renaming
vp9_get_pred_probs_tx_size to get_tx_probs2 and adding get_tx_probs to
call vp9_get_pred_context_tx_size inside read_selected_tx_size only once
(twice before).

Change-Id: Ia50247f3893de88ef8e9041b0d44be44a40aaa4d

11 years agoMerge "filter_block_plane: remove MACROBLOCKD param"
James Zern [Mon, 22 Jul 2013 20:43:34 +0000 (13:43 -0700)]
Merge "filter_block_plane: remove MACROBLOCKD param"

11 years agoVP9_COMMON: remove unused temp_scale_frame
James Zern [Mon, 22 Jul 2013 20:42:11 +0000 (13:42 -0700)]
VP9_COMMON: remove unused temp_scale_frame

Change-Id: I696a0dca1d02d365e283029d1d077710bd5680e0

11 years agoMerge "Using update_ct and update_ct2 functions for probability update."
Dmitry Kovalev [Mon, 22 Jul 2013 20:34:30 +0000 (13:34 -0700)]
Merge "Using update_ct and update_ct2 functions for probability update."

11 years agoVP9_COMMON: drop cur_tile_{row,col}_idx
James Zern [Mon, 22 Jul 2013 20:23:33 +0000 (13:23 -0700)]
VP9_COMMON: drop cur_tile_{row,col}_idx

these were only being written in one location and never read.

Change-Id: If59f3c09aa1485cf89bac0099a8a79e99688b5d1

11 years agoMerge "fix a build error"
Yaowu Xu [Mon, 22 Jul 2013 20:02:15 +0000 (13:02 -0700)]
Merge "fix a build error"

11 years agoMerge "configure: default configure log to config.log"
James Zern [Mon, 22 Jul 2013 19:55:29 +0000 (12:55 -0700)]
Merge "configure: default configure log to config.log"

11 years agoMerge "VP[89]_COMMON: remove golden/altref frame counts"
James Zern [Mon, 22 Jul 2013 19:55:07 +0000 (12:55 -0700)]
Merge "VP[89]_COMMON: remove golden/altref frame counts"

11 years agofix a build error
Yaowu Xu [Mon, 22 Jul 2013 19:37:30 +0000 (12:37 -0700)]
fix a build error

Change-Id: I3b05687f439ff6a7c426d2c97a6c58c831fa51ac

11 years agoMerge "Skip buffer update in sub8x8 rd loop"
Jingning Han [Mon, 22 Jul 2013 19:08:22 +0000 (12:08 -0700)]
Merge "Skip buffer update in sub8x8 rd loop"

11 years agoMerge "Optimize operation flow in sub8x8 rd loop"
Jingning Han [Mon, 22 Jul 2013 19:08:15 +0000 (12:08 -0700)]
Merge "Optimize operation flow in sub8x8 rd loop"

11 years agoUsing update_ct and update_ct2 functions for probability update.
Dmitry Kovalev [Mon, 22 Jul 2013 19:06:43 +0000 (12:06 -0700)]
Using update_ct and update_ct2 functions for probability update.

Update logic for both mode and mvref was the same, so using MODE_COUNT_SAT,
MODE_MAX_UPDATE_FACTOR, update_ct, update_ct2 for both cases. Removing
function update_tx_ct because it was identical to update_mode_ct2.

Change-Id: Iff566be27dbd6cde4c2ec04e8d988f207046b8f0

11 years agoMerge "tests: silence a few type related warnings"
James Zern [Mon, 22 Jul 2013 18:50:22 +0000 (11:50 -0700)]
Merge "tests: silence a few type related warnings"

11 years agoMerge "cosmetics: idct_test.cc: fix formatting"
James Zern [Mon, 22 Jul 2013 18:49:23 +0000 (11:49 -0700)]
Merge "cosmetics: idct_test.cc: fix formatting"

11 years agoDiamond search change to accelerate movement
Deb Mukherjee [Wed, 17 Jul 2013 22:44:40 +0000 (15:44 -0700)]
Diamond search change to accelerate movement

Optional change in diamond search to continue in the best move
direction until that move turns worse.

This is still WIP since the exact way the new method is to be used is
under investigation. One option is to make it an option in diamond
search and use it only when motion is large.

Overall slightly positive on derfraw300 +0.02%, stdhdraw +0.13%,
but works a lot better for high motion sequences (ex. football : +1%).

Change-Id: If88e01a6021daa0cda934680cdc70be1ee04f798

11 years agoMerge "Re-order mode search in rd."
Paul Wilkins [Mon, 22 Jul 2013 17:46:04 +0000 (10:46 -0700)]
Merge "Re-order mode search in rd."

11 years agoOptimize operation flow in sub8x8 rd loop
Jingning Han [Thu, 18 Jul 2013 00:07:32 +0000 (17:07 -0700)]
Optimize operation flow in sub8x8 rd loop

Stack the rate-distortion statistics in the sub8x8 rd loop. This allows
the encoder to skip the forward transform, quantization, and coeff cost
estimation, in the sub8x8 rd optimization search, if the motion
vector(s) are of integer pixel value, and have been tested in the
previous prediction filter type rd loops of the same block.

This gives about 2% speed-up for bus_cif at 2000 kpbs, for speed 0.
Its efficacy depends how frequently the motion search will select an
integer motion vector.

Change-Id: Iee15d4283ad4adea05522c1d40b198b127e6dd97

11 years agoRe-order mode search in rd.
Paul Wilkins [Fri, 19 Jul 2013 13:04:53 +0000 (14:04 +0100)]
Re-order mode search in rd.

Mode search order in rd loop changed to better reflect
observed hit counts.

Also some adjustment of the baseline mode rd thresholds
to reflect the order change and observed frequencies.

Change-Id: I47a131cc83e11551df8add6d6d8d413d78d3a63c

11 years agoMerge "fix left over overflow"
Jim Bankoski [Mon, 22 Jul 2013 15:51:26 +0000 (08:51 -0700)]
Merge "fix left over overflow"

11 years agofix left over overflow
Jim Bankoski [Mon, 22 Jul 2013 13:39:39 +0000 (06:39 -0700)]
fix left over overflow

This cl fixes issues rbultje brought up. that I somehow neglected when I
submitted yaowu's patch.

Change-Id: I07ad18796317822510b96e951c88d29f194a3c2e

11 years agoFix build error.
Paul Wilkins [Mon, 22 Jul 2013 13:01:43 +0000 (14:01 +0100)]
Fix build error.

When CONFIG_POSTPROC is set there was a now
invalid reference to cm->filter_level.

Changed to cpi->mb.e_mbd.lf.filter_level in line with
change Iaf5fb71c33719cdfa1b991f671caf071be9ea035

Change-Id: If746e60044903f7ba8d0d346225b3d015226c7d0

11 years agoMerge "Removing pre probabilities from FRAME_CONTEXT."
Dmitry Kovalev [Sun, 21 Jul 2013 05:50:32 +0000 (22:50 -0700)]
Merge "Removing pre probabilities from FRAME_CONTEXT."

11 years agoMerge "Moving all loop filter related variables into new struct."
Dmitry Kovalev [Sun, 21 Jul 2013 05:45:24 +0000 (22:45 -0700)]
Merge "Moving all loop filter related variables into new struct."

11 years agoMerge "Consistent names for inter mode probabilities and encodings."
Dmitry Kovalev [Sun, 21 Jul 2013 05:40:51 +0000 (22:40 -0700)]
Merge "Consistent names for inter mode probabilities and encodings."

11 years agoMerge "Removing frame_type field from MACROBLOCKD struct."
Dmitry Kovalev [Sun, 21 Jul 2013 05:40:06 +0000 (22:40 -0700)]
Merge "Removing frame_type field from MACROBLOCKD struct."

11 years agoMerge "Removing unused static arrays from vp9_reatectrl.c."
Dmitry Kovalev [Sun, 21 Jul 2013 05:39:33 +0000 (22:39 -0700)]
Merge "Removing unused static arrays from vp9_reatectrl.c."

11 years agoMerge "Moving vp9_reader into decode_tiles function."
Dmitry Kovalev [Sun, 21 Jul 2013 05:39:22 +0000 (22:39 -0700)]
Merge "Moving vp9_reader into decode_tiles function."

11 years agoSkip buffer update in sub8x8 rd loop
Jingning Han [Fri, 19 Jul 2013 22:18:05 +0000 (15:18 -0700)]
Skip buffer update in sub8x8 rd loop

This commit allows the encoder to skip a few buffer update steps in
rd_pick_best_mbsegmentation, when early breakout has been triggered
in the rd_check_segment_txsize. It provides about 1% speed-up for
bus_cif at 2000 kbps, in the settings of speed 0.

Change-Id: Ica034f10a24dec572b397d8389a2b81020ebc0b9

11 years agoadded checks to prevent rate/distortion overflow
Yaowu Xu [Sat, 20 Jul 2013 00:38:55 +0000 (17:38 -0700)]
added checks to prevent rate/distortion overflow

At speed 2, due to the threshold scheme used, it is possible the rate
and distortion assigned with INT_MAX value. The patch added checking
to prevent the INT_MAX value is used in further calculation of RD
scores. The patch also changed the assertion in rd_use_partition() to
be mirror similar assertion in rd_pick_partition().

Change-Id: Idb52c543cc1e10abdf6e6a5d6e9cb535a42214dc

11 years agoRemoving pre probabilities from FRAME_CONTEXT.
Dmitry Kovalev [Sat, 20 Jul 2013 00:33:10 +0000 (17:33 -0700)]
Removing pre probabilities from FRAME_CONTEXT.

Using cm->frame_contexts[cm->frame_context_idx] as source of previous
probabilities.

Change-Id: Ie03778acf0e7bebdc3a1f6a51854d4a0712f24a1

11 years agoMoving all loop filter related variables into new struct.
Dmitry Kovalev [Thu, 18 Jul 2013 01:37:45 +0000 (18:37 -0700)]
Moving all loop filter related variables into new struct.

Adding loopfilter struct with fields from MACROBLOCKD and VP9Common.
Eventually it will be moved to vp9_loopfilter.h for better code structure.

Change-Id: Iaf5fb71c33719cdfa1b991f671caf071be9ea035

11 years agoMerge "Fixing problem introduced in one of my previous commits."
Dmitry Kovalev [Fri, 19 Jul 2013 23:14:21 +0000 (16:14 -0700)]
Merge "Fixing problem introduced in one of my previous commits."

11 years agoRemoving unused static arrays from vp9_reatectrl.c.
Dmitry Kovalev [Fri, 19 Jul 2013 22:55:09 +0000 (15:55 -0700)]
Removing unused static arrays from vp9_reatectrl.c.

Removed arrays: kf_boost_seperation_adjustment,
                gf_adjust_table,
                gf_intra_usage_adjustment,
                gf_interval_table.

Change-Id: I62e400cb6e4d039787615169a3779e31ebf95893

11 years agoMerge "Moving Scale2Ration function from vp9_onyx.h to vp9_onyx_if.c."
Dmitry Kovalev [Fri, 19 Jul 2013 22:27:24 +0000 (15:27 -0700)]
Merge "Moving Scale2Ration function from vp9_onyx.h to vp9_onyx_if.c."

11 years agoFixing problem introduced in one of my previous commits.
Dmitry Kovalev [Fri, 19 Jul 2013 22:18:43 +0000 (15:18 -0700)]
Fixing problem introduced in one of my previous commits.

Changing fc->tx_probs back to fc->pre_tx_probs. This change actually
affects the bitstream but current test vectors work. Chrome branch is not
affected at all. Broken since:

cc662dd Adding struct tx_probs and struct tx_counts to cleanup the code.

Change-Id: I36dd4b3678e902e10aba8dd49b0012eb558c209d

11 years agoReworked the auto_mv_step_size speed feature
Deb Mukherjee [Fri, 12 Jul 2013 16:52:24 +0000 (09:52 -0700)]
Reworked the auto_mv_step_size speed feature

This patch modifies the auto_mv_step_size speed feature to
use a combination of the maximum magnitude mv from the last
inter frame, and the maximum magnitude mv for the two reference
mvs with the same reference. For arf frames, the max mav step
for the resolution is used.
The bounds therefore are slightly tighter. The feature is made
a speed 1 feature.

Rebased.

Results (when this feature is turned on over speed 0):
derfraw300: -0.046% psnr, about 5+% speedup
(tested on football: goes from 4m30.760s to 4m17.410s).

Change-Id: If492797a61b0b4b3e58c0b8f86afb880165fc9f6

11 years agofilter_block_plane: remove MACROBLOCKD param
James Zern [Fri, 19 Jul 2013 21:16:07 +0000 (14:16 -0700)]
filter_block_plane: remove MACROBLOCKD param

replace with direct use of the plane and MODE_INFO

Change-Id: Icce57bc398a6e3607aedde0573d977e192040696

11 years agoMerge "Make libvpx compile on OSX 10.9 (Mavericks)"
Morton Jonuschat [Fri, 19 Jul 2013 19:37:26 +0000 (12:37 -0700)]
Merge "Make libvpx compile on OSX 10.9 (Mavericks)"

11 years agoMoving vp9_reader into decode_tiles function.
Dmitry Kovalev [Fri, 19 Jul 2013 19:27:56 +0000 (12:27 -0700)]
Moving vp9_reader into decode_tiles function.

Change-Id: Ic741054836d6c1b89c4f1c75cc6bd938a7d56723

11 years agoMake libvpx compile on OSX 10.9 (Mavericks)
Morton Jonuschat [Fri, 19 Jul 2013 19:09:23 +0000 (21:09 +0200)]
Make libvpx compile on OSX 10.9 (Mavericks)

Change-Id: Ibf2555f1c0d00e91d416eb39201a5a91df7fab27

11 years agoMerge "Renaming TXFM_MODE to TX_MODE (like TX_SIZE, TX_TYPE)."
Dmitry Kovalev [Fri, 19 Jul 2013 19:14:32 +0000 (12:14 -0700)]
Merge "Renaming TXFM_MODE to TX_MODE (like TX_SIZE, TX_TYPE)."

11 years agoRemoving frame_type field from MACROBLOCKD struct.
Dmitry Kovalev [Fri, 19 Jul 2013 18:55:36 +0000 (11:55 -0700)]
Removing frame_type field from MACROBLOCKD struct.

Change-Id: Ia4e83913251c1cdc7aa2abd64bf01ecb1a962119

11 years agoRenaming TXFM_MODE to TX_MODE (like TX_SIZE, TX_TYPE).
Dmitry Kovalev [Fri, 19 Jul 2013 18:37:13 +0000 (11:37 -0700)]
Renaming TXFM_MODE to TX_MODE (like TX_SIZE, TX_TYPE).

Moving TX_MODE enum to vp9_enums.h. Renaming txfm_mode variables to
tx_mode.

Change-Id: I459d1af6dd928ce7fccdf8ce30b6f1ca057bef92

11 years agoRemoving redundant VP9_COMMON* from function signatures.
Dmitry Kovalev [Fri, 19 Jul 2013 18:20:49 +0000 (11:20 -0700)]
Removing redundant VP9_COMMON* from function signatures.

Functions: vp9_get_pred_context_switchable_interp,
           vp9_get_pred_context_intra_inter,
           vp9_get_pred_context_single_ref_p1,
           vp9_get_pred_context_single_ref_p2.

Change-Id: I3d6fb8aee23c9062270768e1e6da416dd9bb8f96

11 years agoConsistent names for inter mode probabilities and encodings.
Dmitry Kovalev [Fri, 19 Jul 2013 17:40:04 +0000 (10:40 -0700)]
Consistent names for inter mode probabilities and encodings.

Renaming vp9_sb_mv_ref_tree to vp9_inter_mode_tree, and
vp9_sb_mv_ref_encoding_array to vp9_inter_mode_encodings.

Change-Id: I0e91fbf81350d3ec5a2599064c74089b5d06133a

11 years agoMerge "cosmetics: tile_independence_test: fix formatting"
James Zern [Fri, 19 Jul 2013 17:15:56 +0000 (10:15 -0700)]
Merge "cosmetics: tile_independence_test: fix formatting"

11 years agoMerge "Alignment of THR_MODES to vp9_mode_order[]"
Paul Wilkins [Fri, 19 Jul 2013 17:15:26 +0000 (10:15 -0700)]
Merge "Alignment of THR_MODES to vp9_mode_order[]"

11 years agoMerge "Block index variables in MACROBLOCKD reduced to chars."
Paul Wilkins [Fri, 19 Jul 2013 17:14:52 +0000 (10:14 -0700)]
Merge "Block index variables in MACROBLOCKD reduced to chars."

11 years agoMerge "Add neon optimize vp9_short_idct8x8_add."
hkuang [Fri, 19 Jul 2013 15:28:39 +0000 (08:28 -0700)]
Merge "Add neon optimize vp9_short_idct8x8_add."

11 years agoAlignment of THR_MODES to vp9_mode_order[]
Paul Wilkins [Thu, 18 Jul 2013 15:41:44 +0000 (16:41 +0100)]
Alignment of THR_MODES to vp9_mode_order[]

Change-Id: I4032dd0442043543954dcb3724df974b7cc7e515