Further firstpass.c changes.
Further firstpass.c changes.

base the static image test off a measure of 0,0 motion
instead of the decay accumulator value.

Change "transition to still detection" to compare the
decay rate from successive frames.

Minor tweak to the arf extra boost given based on the
number of frames affected.

Removed unused variable mod_err_per_mb_accumulator.

Change-Id: Idd8360083ad409e45f133ce97dd2488259003e64

running770/libvpx,kalli123/webm.libvpx,felipebetancur/libvpx,Laknot/libvpx,Distrotech/libvpx,kleopatra999/webm.libvpx,webmproject/libvpx,Laknot/libvpx,mwgoldsmith/libvpx,kalli123/webm.libvpx,shareefalis/libvpx,jacklicn/webm.libvpx,ittiamvpx/libvpx-1,smarter/aom,n4t/libvpx,shyamalschandra/libvpx,goodleixiao/vpx,stewnorriss/libvpx,jmvalin/aom,thdav/aom,altogother/webm.libvpx,openpeer/libvpx_new,matanbs/webm.libvpx,Laknot/libvpx,shacklettbp/aom,vasilvv/esvp8,charup/https---github.com-webmproject-libvpx-,smarter/aom,matanbs/webm.libvpx,sanyaade-teachings/libvpx,mbebenita/aom,WebRTC-Labs/libvpx,jdm/libvpx,altogother/webm.libvpx,mwgoldsmith/libvpx,Acidburn0zzz/webm.libvpx,ShiftMediaProject/libvpx,Distrotech/libvpx,Maria1099/webm.libvpx,matanbs/webm.libvpx,ittiamvpx/libvpx,cinema6/libvpx,altogother/webm.libvpx,goodleixiao/vpx,felipebetancur/libvpx,mbebenita/aom,hsueceumd/test_hui,ShiftMediaProject/libvpx,shacklettbp/aom,abwiz0086/webm.libvpx,zofuthan/libvpx,jmvalin/aom,shyamalschandra/libvpx,goodleixiao/vpx,stewnorriss/libvpx,matanbs/webm.libvpx,lyx2014/libvpx_c,mwgoldsmith/vpx,sanyaade-teachings/libvpx,gshORTON/webm.libvpx,reimaginemedia/webm.libvpx,Suvarna1488/webm.libvpx,Topopiccione/libvpx,GrokImageCompression/aom,Topopiccione/libvpx,shacklettbp/aom,abwiz0086/webm.libvpx,kleopatra999/webm.libvpx,stewnorriss/libvpx,shacklettbp/aom,mbebenita/aom,ShiftMediaProject/libvpx,GrokImageCompression/aom,luctrudeau/aom,vasilvv/esvp8,VTCSecureLLC/libvpx,pcwalton/libvpx,liqianggao/libvpx,turbulenz/libvpx,sanyaade-teachings/libvpx,kleopatra999/webm.libvpx,reimaginemedia/webm.libvpx,openpeer/libvpx_new,iniwf/webm.libvpx,iniwf/webm.libvpx,turbulenz/libvpx,reimaginemedia/webm.libvpx,hsueceumd/test_hui,kalli123/webm.libvpx,mbebenita/aom,running770/libvpx,Acidburn0zzz/webm.libvpx,vasilvv/esvp8,WebRTC-Labs/libvpx,smarter/aom,running770/libvpx,felipebetancur/libvpx,shyamalschandra/libvpx,jacklicn/webm.libvpx,goodleixiao/vpx,webmproject/libvpx,vasilvv/esvp8,reimaginemedia/webm.libvpx,thdav/aom,WebRTC-Labs/libvpx,webmproject/libvpx,n4t/libvpx,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,luctrudeau/aom,kleopatra999/webm.libvpx,matanbs/vp982,VTCSecureLLC/libvpx,mwgoldsmith/vpx,reimaginemedia/webm.libvpx,VTCSecureLLC/libvpx,matanbs/vp982,stewnorriss/libvpx,smarter/aom,stewnorriss/libvpx,turbulenz/libvpx,Maria1099/webm.libvpx,webmproject/libvpx,jdm/libvpx,openpeer/libvpx_new,altogother/webm.libvpx,mwgoldsmith/vpx,mwgoldsmith/vpx,iniwf/webm.libvpx,smarter/aom,running770/libvpx,iniwf/webm.libvpx,kim42083/webm.libvpx,jmvalin/aom,running770/libvpx,matanbs/vp982,WebRTC-Labs/libvpx,pcwalton/libvpx,VTCSecureLLC/libvpx,cinema6/libvpx,turbulenz/libvpx,ittiamvpx/libvpx,kleopatra999/webm.libvpx,luctrudeau/aom,Topopiccione/libvpx,jmvalin/aom,kim42083/webm.libvpx,shareefalis/libvpx,shareefalis/libvpx,liqianggao/libvpx,openpeer/libvpx_new,ittiamvpx/libvpx-1,zofuthan/libvpx,sanyaade-teachings/libvpx,Distrotech/libvpx,Maria1099/webm.libvpx,Distrotech/libvpx,smarter/aom,VTCSecureLLC/libvpx,matanbs/vp982,vasilvv/esvp8,shacklettbp/aom,hsueceumd/test_hui,reimaginemedia/webm.libvpx,charup/https---github.com-webmproject-libvpx-,n4t/libvpx,kim42083/webm.libvpx,Distrotech/libvpx,abwiz0086/webm.libvpx,gshORTON/webm.libvpx,turbulenz/libvpx,felipebetancur/libvpx,shareefalis/libvpx,mbebenita/aom,Maria1099/webm.libvpx,mwgoldsmith/vpx,ittiamvpx/libvpx,n4t/libvpx,mbebenita/aom,cinema6/libvpx,kleopatra999/webm.libvpx,charup/https---github.com-webmproject-libvpx-,lyx2014/libvpx_c,liqianggao/libvpx,openpeer/libvpx_new,kalli123/webm.libvpx,jdm/libvpx,luctrudeau/aom,Suvarna1488/webm.libvpx,zofuthan/libvpx,sanyaade-teachings/libvpx,running770/libvpx,Maria1099/webm.libvpx,jmvalin/aom,VTCSecureLLC/libvpx,mbebenita/aom,shareefalis/libvpx,charup/https---github.com-webmproject-libvpx-,lyx2014/libvpx_c,cinema6/libvpx,pcwalton/libvpx,jdm/libvpx,Laknot/libvpx,thdav/aom,thdav/aom,mbebenita/aom,kim42083/webm.libvpx,kalli123/webm.libvpx,jdm/libvpx,Topopiccione/libvpx,cinema6/libvpx,pcwalton/libvpx,Acidburn0zzz/webm.libvpx,shyamalschandra/libvpx,abwiz0086/webm.libvpx,abwiz0086/webm.libvpx,altogother/webm.libvpx,Laknot/libvpx,lyx2014/libvpx_c,turbulenz/libvpx,altogother/webm.libvpx,webmproject/libvpx,kalli123/webm.libvpx,gshORTON/webm.libvpx,ShiftMediaProject/libvpx,zofuthan/libvpx,charup/https---github.com-webmproject-libvpx-,shareefalis/libvpx,ittiamvpx/libvpx-1,Distrotech/libvpx,felipebetancur/libvpx,felipebetancur/libvpx,ittiamvpx/libvpx,Acidburn0zzz/webm.libvpx,charup/https---github.com-webmproject-libvpx-,vasilvv/esvp8,matanbs/vp982,ittiamvpx/libvpx,Suvarna1488/webm.libvpx,ittiamvpx/libvpx-1,Topopiccione/libvpx,iniwf/webm.libvpx,lyx2014/libvpx_c,GrokImageCompression/aom,goodleixiao/vpx,ittiamvpx/libvpx-1,liqianggao/libvpx,shyamalschandra/libvpx,mwgoldsmith/libvpx,iniwf/webm.libvpx,ittiamvpx/libvpx,luctrudeau/aom,jmvalin/aom,pcwalton/libvpx,jacklicn/webm.libvpx,hsueceumd/test_hui,stewnorriss/libvpx,turbulenz/libvpx,vasilvv/esvp8,thdav/aom,Maria1099/webm.libvpx,WebRTC-Labs/libvpx,matanbs/vp982,ShiftMediaProject/libvpx,mwgoldsmith/libvpx,Acidburn0zzz/webm.libvpx,ittiamvpx/libvpx-1,turbulenz/libvpx,matanbs/webm.libvpx,Topopiccione/libvpx,GrokImageCompression/aom,n4t/libvpx,Acidburn0zzz/webm.libvpx,jacklicn/webm.libvpx,hsueceumd/test_hui,thdav/aom,cinema6/libvpx,mbebenita/aom,matanbs/vp982,Suvarna1488/webm.libvpx,goodleixiao/vpx,turbulenz/libvpx,jdm/libvpx,cinema6/libvpx,mwgoldsmith/vpx,GrokImageCompression/aom,abwiz0086/webm.libvpx,kim42083/webm.libvpx,shacklettbp/aom,webmproject/libvpx,zofuthan/libvpx,jacklicn/webm.libvpx,liqianggao/libvpx,shyamalschandra/libvpx,hsueceumd/test_hui,mwgoldsmith/libvpx,matanbs/webm.libvpx,luctrudeau/aom,zofuthan/libvpx,lyx2014/libvpx_c,gshORTON/webm.libvpx,kim42083/webm.libvpx,Suvarna1488/webm.libvpx,GrokImageCompression/aom,openpeer/libvpx_new,pcwalton/libvpx,jacklicn/webm.libvpx,mwgoldsmith/libvpx,gshORTON/webm.libvpx,liqianggao/libvpx,Laknot/libvpx