Cleaning up vp9_pattern_search() function.

Change-Id: I8da5e13b23a3d6b73c82bbe443c82dd87fd689f3
Cleaning up vp9_get_mvpred_{av_,}var() functions.

Change-Id: I0df8c2a6d9863f92ee406010f2daeb5e40627649
Cleaning up vp9_mvref_common.c.

Change-Id: I4eb815156ecaab02c9182e6e1abbea0e4d86c441
Changing webmenc to use libwebm

Changing webmenc to use libwebm for WebM file muxing.

Change-Id: I42eb688953865003214c05bdf2076ee00db28970
Adjust rt speed steps.

This commit adjusted the speed steps in rt mode to make the steps
more evenly spaced on speed and quality, specifically:
1. Merged 3 and 4 into one single step 3 and removed confilicting
features.
2. Move 8, 7, 6, 5 to be 7, 6, 5, 4 repsectively.

Change-Id: I38d56d61531f3561d772aef953c411c8fb38c063
[BITSTREAM]Fix the scaling calculation

For very large size video image, the scaling calculation may need use
value beyond the range of int. This commit upgrade the value to 64bit
to make sure the calculation do not wrap around INT_MAX.

The change corrected the decoder behavior.

The bug affects only very large resolution video because the scaling
calculation was sufficient for image size smaller than 2^13.

This resolves issue:
https://code.google.com/p/webm/issues/detail?id=750

Change-Id: I2d2ed303ca6482f31f819f3c07d6d3e98ef3adc5
Moving encoder quantization parameters into separate struct.

Change-Id: I2a169535489aeda3943fb5a46ab53e7a12abaa36
Grouping members in MB_MODE_INFO struct.

Change-Id: Ia6d7e7a08810e0c3401da4d10266828d560e6851
Merge "Adjust rt speed steps."
Merge "[BITSTREAM]Fix the scaling calculation"
Apply finer quantizer to partition search frames in non-RD flow

This commit optimizes the bit allocation for the non-RD coding flow.
It applies slightly better quantizer to the frames, where all blocks
run a non-RD partition search. Such frames typically have better
rate-distortion trade off, thus improving the reconstruction quality
for next few frames reference at reasonably low increment in rate
cost.

The coding performance for rtc set at speed -5 with error-resilient
tuned on and rate control set as cbr is improved by 19.58%. It improved
the coding speed by about 10% for a portion of local test clips.

Change-Id: I9d56696cd4359dc8136ca10aff10fff05aaa2686
Small script to scrape json for waterfall

Change-Id: I879fcd3203c84fa83125e06662009d308bc2dbb6
Propagate active map state.

This fixes active map for non-rd realtime speeds.

Change-Id: I1bf416de3f7ef2e5dd2eabde052cce3c0683a52c
Speed setting correction to max q estimate.

Use a crude correction factor to correct for
lower compression efficiency at higher encode
speeds when estimating the max Q for the
clip.

Change-Id: I5ae377647f4adf5e91d700a8791fb3b8f70efc73
Merge "Apply finer quantizer to partition search frames in non-RD flow"
Common configuration for MACROBLOCKD struct.

Change-Id: Ie2ea9dd8bd338cc9fe12ca9033df64f7644c68b3
Merge "Propagate active map state."
Merge "Changing webmenc to use libwebm"
Make last frame source available in current frame encoding

While encoding a frame, its last frame source can be used to give
acurate motion information. This patch prevents last frame to be
overwritten so that it is available during current frame encoding.

The last source is scaled when it is necessary. cpi->Last_Source
points to the last source frame.

Change-Id: I0e1ef5e9e1d2badf9d0c7a1a44a7ed5b24c09425
Merge "Make last frame source available in current frame encoding"