Adding setup_frame() function.

Change-Id: I074db38a71ca0d241323fa63f400680fb1e90a21
Add experimental VBR adaptation method.

Add code to monitor over and under spend and
apply limited correction to the data rate of subsequent
frames. To prevent the problem of starvation or overspend
on individual frames (especially near the end of a clip) the
maximum adjustment on a single frame is limited to a %
of its un-modified allocation.

Change-Id: I6e1ca035ab8afb0c98eac4392115d0752d9cbd7f
Merge two new VBR adjustment schemes.

To make direct side by side testing this patch combines two
VBR corrections schemes to allow more direct side by side testing.
(The other patch was by Debargha chg id I0cd1f7...)

Change-Id: I271c45e5c4ccf8de8305589000218b80d9dc3a25
Bug fix for svc first pass rate control.

1. We didn't scale source image in lower layers so that
the stats are incorrect.
2. We didn't extend borders for re-constructed image.

Change-Id: Ia8d7bafbdb695ffa7f504e171f9449812e7bb0a3
Don't set loop filter sharpness in vp9_change_config().

The right value is calculated and set in vp9_pick_filter_level().

Change-Id: I5f725ac21f90dc9b80181a09a2040970bf6671d4
Cleaning up vp9_rdopt.c.

Change-Id: Ifd008968326e61ab492162351e358bf0ac0dac0a
Cleaning vp9_variance.{c, h}.

Change-Id: I802308de4817e48a627bb44a744d32010fe7818f
Inlining and removing encoder_common_init().

Change-Id: I35f948fe1ac107950c8d8e4ba06e5a95ac4ec30e
test/WebMVideoSource: fix WebMInputContext leak

lost in the shuffle of:
4fd6317 Remove duplicate code in test/webm_video_source.h

Change-Id: I89792fa17f03920616c55486bbdaf56c6461c9eb
Remove an unused function

Change-Id: I0f2592ecfc5197dfb94975260cb2f862315e7895
Enable background detection for adaptive quantizer control

This commit enables a background detection approach for adaptive
quantizer control. It combines the cyclic refresh pattern and the
background information to determine the segment id for adaptive
quantizer selection, prior to the non-RD mode decision process.
It hence allows proper quantization information update for a more
precise rate-distortion modeling in the non-RD mode decision.

The compression performance of speed -5 for rtc set is improved
by 2.5%, at no speed change.

Change-Id: Ic3713e8ed9185b403b5b1679d19dabd57506d452
Merge "Add experimental VBR adaptation method."
Merge "Merge two new VBR adjustment schemes."
Merge "Enable background detection for adaptive quantizer control"
Merge "Cleaning vp9_variance.{c, h}."
Merge "Don't set loop filter sharpness in vp9_change_config()."
Merge "Cleaning up vp9_rdopt.c."
Merge "Adding setup_frame() function."
Change naming of end_usage parameter.

The end_useage parameter  is confusingly named since it
now actually defines the rate control method used.

Change-Id: I98912caabfe556b7af0b939a645d1336409e4d71
Adds test code for supplemental superframe data

Adds test code to verify that supplemental superframe information
that precedes the normal superframe information will not break
decoding.

Change-Id: Ia252b887d7ee138f51dc9a778376ff739402c455