Assign boost to GF bit allocation if past frame had no ARF.
Assign boost to GF bit allocation if past frame had no ARF.

Modify the second-pass code to provide a full golden-frame (GF) bit
allocation boost if the past GF group (GFG) had no alt-ref frame (ARF),
even if the current GFG does contain and ARF.

This mostly has no effect on clips, since switching ARFs on/off between
GFGs is not very common. Has a positive effect on e.g. cheer (+0.45 SSIM
at 600kbps) and football (+0.25 SSIM at 600kbps), particularly at high
bitrates. Has a negative effect (-0.04 SSIM at 300kbps) at pamphlet,
which appears only marginally related to this patch, and crew (-0.1 SSIM
at 700kbps).

Change-Id: I2e32899638b59f857e26efeac18a82e0c0b77089

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