Cleaning up motion compensation code.

Change-Id: I74cf028e8c732cd0dbc070326152d3085b824a80
Enforce the use of profile 1 for non-420 content.

Change-Id: I297954b16bce9e23931331520eadfb47540ff660
Combining fb_idx_ref_cnt[] and yv12_fb[] arrays.

Adding new RefCntBuffer struct which contains reference counter and image
buffer.

Change-Id: I71c1f532faa13442c32c43fc03ec45b6f88fb844
Removing ENC_DEBUG.

Change-Id: I101017621003314f000a454725ea13fc9db43177
Renaming "mbskip" to "skip".

Change-Id: I27a30b43eae026a77f92958e2238d02d9cdf7832
tests: fix a few msvc warnings

Change-Id: I7ee89d6fc2afc20563d1784598ce83e29c0e6651
Fixing out of bounds access in frame_refs[] array.

Change-Id: I08f45573e0b2195c09fb6aecacb4c57431a711ea
Fix a build issue for --enable-intern-stats

Change-Id: Iea7c9fa0726dbf9792eea79e6a05eb8a3c718d45
Fix some automerge artifacts

Some changes in 1ca1186 were mistakenly reverted by a later merge,
this commit re-instated the chanages from values to enums.

Change-Id: Ia6b01c31da584a1f612996e6432612c1295b9eaf
Merge "Fix a build issue for --enable-intern-stats"
Merge "Fix some automerge artifacts"
Merge "Fixing out of bounds access in frame_refs[] array."
Merge "Enforce the use of profile 1 for non-420 content."
Replace inline with INLINE

So x86_64-win64-vs11 can build successfully.

Change-Id: If354c2ea3921fac8c9b413ed39223e70bc20c535
Merge "tests: fix a few msvc warnings"
Merge "Replace inline with INLINE"
Add constant to represent minimum KF boost

Added a constant to represent the minimum KF boost
rather than using the magic number 2000 in the code.

Change-Id: I9428b61f47d26312caff81c6f9ae8587df004791
remove confusing compressor_speed

use mode instead

Change-Id: I419d7a2dc4b0714ca6ff723c5e824521c150c460
Disable update of last_show_frame for existing frame

When showing a previously decoded frame, i.e. when
show_existing_frame=1, the update of the
last_show_frame flag must be disabled.

This is to ensure that the last_show_frame flag
reflects the state of the flag for the immediately
previously decoded frame rather then the value that
was forced to ensure that a previously decoded frame
would be displayed.

This patch also adds a test vector to verify that the
display_existing_frame flag works as expected. Code
for generating the test vector can be found in this
patch:
https://gerrit.chromium.org/gerrit/#/c/68581/

(Bug originally reported by Alexander Voronov
<ru.xalba@gmail.com>).

Change-Id: I731d288fba02088959f7fcc87707137fffc6acf5
Merge "Add constant to represent minimum KF boost"