Added optimized vp9_idct32x32_34_add_dspr2

Change-Id: I2ba9467525b87a8e4a58f0c546e63031b4e38a4e
Localizing NEARESTMV special cases in the code.

Removing special case handling from vp9_tree_probs_from_distribution(),
tree_merge_probs(), and vp9_tokens_from_tree_offset() functions. Replacing
inter_mode_offset() function with macro INTER_OFFSET which is used now for
vp9_inter_mode_tree definition.

Change-Id: Iff75a1499d460beb949ece543389c8754deaf178
Cleaning up read_mv_probs() function.

Change-Id: I7a1e88b5977076e22736c0d6af1d4dcc19d39a6a
Adding read_reference_mode() function.

Change-Id: I517ad7e1a48910f0d2e95feacd23f143d28b42d6
Using max_tx_size instead of bsize when possible.

Change-Id: I246364bc4270ca13aefb4bc3445bcf102b3170dc
Cleaning up vp9_quantize_b_c() function.

Change-Id: I42c75530a8c9cff68480657f074131e6b60d9fca
Replacing (raster_block >> tx_size) with (block >> (tx_size << 1)).

The new expression is much more logical than previous one. Surprisingly
both expressions give exactly the same set of dependent values
-- have_top, have_left, have_right -- in vp9_predict_intra_block.

Change-Id: I63eb1b592b8c37883b3a0dbb1f3daa271e446109
Improve loopfilter function

This patch continued the work done in "Rewrite loop_filter_info_n
struct"(commit:00dbd369c70270428d56da6d15ea5486fc821c52) to further
improve loopfilter function.

1. Instead of storing pointers to thresholds, store loopfilter
levels within 64x64 SB;
2. Since loopfilter levels are already calculated in setup_mask,
we don't need call build_lfi to look up them again. Just save
loopfilter levels in setup_mask.
3. Reorganized and simplified filter_block_plane().

Tests showed a ~0.8% decoder speedup.

Change-Id: I723c7779738bbc2afcb9afa2c6f78580ee6c3af7
Correct a couple of typos

Change-Id: Ic470c6c9ce27b615c9645b9cb0d67526417bc374
Optimizing set_contexts() function.

Inlining set_contexts_on_border() into set_contexts(). The only difference
is the additional check that "has_eob != 0" in addition to
"xd->mb_to_right_edge < 0" and "xd->mb_to_right_edge < 0". If has_eob == 0
then memset does the right thing and works faster.

Change-Id: I5206f767d729f758b14c667592b7034df4837d0e
vpxenc: Remove support for IVF input.

Change-Id: Ida0e1b2df89e992b8140672b70517d8623cf9ede
Merge "Correct a couple of typos"
[BITSTREAM]Fix row tile mode_info pointer setup

This commit fixes the assignment of mode_info pointer per tile. It
makes recognition of tiles in both row and column formats and properly
arrange the use of mode_info.

The bug was first introduced in
I6226456dd11f275fa991e4a7a930549da6675915
https://gerrit.chromium.org/gerrit/#/c/67492/

Change-Id: Ie12cd209f53241513728c461ee3d7b9599ddb860
Merge "[BITSTREAM]Fix row tile mode_info pointer setup"
Merge "vpxenc: Remove support for IVF input."
Merge "Adding read_reference_mode() function."
Merge "Cleaning up read_mv_probs() function."
Merge "Cleaning up vp9_quantize_b_c() function."
Merge "Localizing NEARESTMV special cases in the code."
vpx[dec|enc]: Clean up target OS based IO focused preproc abuse.

Relocate it to tools_common.h so we can stop duping this code
everywhere.

BUG=https://code.google.com/p/webm/issues/detail?id=660

Change-Id: If8aa49b74d297273cd9fd7006b2767837055a359