Removing MODE_STATS.

Change-Id: I7520e1cc82b749187c9445356dd7b54f3f3826cc
Rename set_scale_factors as set_ref_ptrs

New name better describes what the function does.

Change-Id: I33be1366a81f058a9854b804bcde211061187dc7
Reorder functions to avoid forward declaration

Change-Id: I24ad1f0f1cb0e991c476ea174db8ac1584929b02
Removing get_scale_ref_frame_idx() function + cleanup.

Change-Id: Ic9472f361f8749a165aa464c2fa859681b66381b
Setup pre[0] buffer before calls to {first_pass, zz}_motion_search.

Change-Id: I9b94e741201eacb1982014724a532bdaae31f130
Cleaning up vp9_firstpass.c file.

Change-Id: Ic352b0429d5784f9d78872a478fe6275ee7a56a0
Changed to prevent decoder crash

The change prevent a decoder crash for invalid stream with negative
size.

Change-Id: I7411765f3524c783058fa3d436549be4e75d8969
vp8/common: add extern "C" to headers

Change-Id: I13b434b1e6621e31962b08831c3587c039368c83
vp8/decoder: add extern "C" to headers

Change-Id: I7865db2d15ffa8cfa4de88714e48734c5ff9bb86
vp8/encoder: add extern "C" to headers

Change-Id: I252f5f8a5d5ada65da08699774a7bb1eb2bd5b2e
vp9/common: add extern "C" to headers

Change-Id: Ic334da9aee968e33762c2b25d9fbad24c844b411
vp9/decoder: add extern "C" to headers

Change-Id: I0e6aa00f220280e22d30d098545265835d0c1079
vp9/encoder: add extern "C" to headers

Change-Id: I4f51ce859a97bf1b8fd2b37ac585b7c643232b69
vpx: add extern "C" to headers

Change-Id: Ide9a68466ed30453872465a6c2f9c414690df876
Cleaning up motion compensation code.

Change-Id: I74cf028e8c732cd0dbc070326152d3085b824a80
vpxdec: grouping together code with the same if conditions

Change-Id: I5e546fce725b8c4722da5494e9423154e870fd58
vpx_ports: add extern "C" to headers

Change-Id: Iba9b198ce78b3f8b644feba064f83abc247e75dd
top-level: add extern "C" to headers

Change-Id: I5164df72aff84eca0ace56032c5373f04053c6a5
test/: remove unnecessary extern "C"s

Change-Id: I826655a708010149de231ca31a2e3ba4f1842c0c
Merge "Removing get_scale_ref_frame_idx() function + cleanup."