datarate_test: fix some type conversions

Change-Id: I9840dfab644b0c75ff667174f8005dece005e700
cosmetics: vp9_reconinter.h: make some variables const

Change-Id: If5cd0a1487e97c8e9d13dc2e078c6dceaf79de4f
Adding {get, set}_rate_correction_factor() functions.

Change-Id: Ib3212832953a3445fc5f021af0e1de7886f09b4f
Keep buffer clipped to maximum in change_config.

Under a configuration change, where the bitrate suddenly decreases,
the buffer level may be larger than maximum allowed (for that first frame to be encoded after change_config).
This change keeps it clipped to its maximum level.

Change-Id: I4d0b5b3d1fd8148600dd39e02bd630c9464baba5
Enable skipping reference frame check in rd loop

This commit allows encoder to compare the SAD cost associated with
the best motion vector predictor, per frame. If one reference frame
has this cost more than 4 times of the best SAD cost given by other
reference frames, skip NEARESTMV, NEARMV, ZEROMV mode check of this
reference frame.

This setting is turned on in speed 2 and above. Compression quality
change in speed 2:
derf  -0.014%
yt    -0.097%
hd    -0.023%
stdhd  0.046%

It reduces the speed 2 runtime of test sequences:
pedestrian_area_1080p 4000 kbps 310763 ms -> 303595 ms
bluesky_1080p 6000 kbps         259852 ms -> 251920 ms

Change-Id: I7f59cf79503d51836d61d56d50dc5bdf0e502e22
Revert "SSSE3 convolution optimization"

This reverts commit 511d218c60b9b6c1ab9383db746815e907af0359.

In current form intrinsics break borg build.

Change-Id: Ied37936af841250ecff449802e69a3d3761c91b9
Merge "Keep buffer clipped to maximum in change_config."
Fix Issue #679:  vp9 C loop filter produces valgrind warning.

Fix the valgrind error due to access uninitialized
memory in loopfilter.

Change-Id: I52fccf5ede845ee1f4c13d3bd909b8f220c0bdff
Merge "Adding {get, set}_rate_correction_factor() functions."
Don't use gf_update by default for 1-pass CBR.

Change-Id: I5df6abceb0a2a69706feadeb820b593cae88f573
Cleaning up vp9_rc_postencode_update() function.

Change-Id: I02e44c10660fdb9201a802ad19ceb64756feeebe
Merge "Fix Issue #679:  vp9 C loop filter produces valgrind warning."
Cleaning up vp9_dx_iface.c.

Change-Id: I6a0dfb95c55ee6cadc7b1675782c7830e5c7caaf
Merge "Don't use gf_update by default for 1-pass CBR."
Adding get_vp9_ref_frame_buffer() function.

Change-Id: Iae195fcf952dd27ba424f8e95090b8ffc4d5a7c8
Apply neon flags to intrinsic files

Filter out files ending in _neon.c and append .neon so the Android build
system knows to apply -mfpu=neon

Change-Id: Ib67277e5920bfcaeda7c4aa16cd1001b11d59305
Removing mi_height_log2_lookup table.

Change-Id: I1f0ae2edc3a96b33c0494d165ae756a8feba6184
Cleaning up vp9_encodeframe.c.

Change-Id: I6d9f595249dc71752abe16c042d3b07aa2e4248d
Declare setup_buffer_inter in vp9_rdopt.h

This funtion initializes buffer pointers and first stage motion vector
prediction. It will be needed by both regular rate-distortion
optimization loop and the non-RD mode decision. Hence move its
declaration in vp9_rdopt.h

Change-Id: I64e8b6316c9d05f20756a62721533a2e4d158235
explain speed features

Added comments to explain what the various speed features do, and removed
1 that was clearly unused.

Change-Id: Icd37a536072ddafedbfaefcecbe48979f6d10faf