Fix breakout thresh computation for golden & AltRef frames
Fix breakout thresh computation for golden & AltRef frames

1. Unavailability of each reference frame type should be tested
independently,
2. Also, only the VP8_GOLD_FLAG needs to be tested before setting
golden frame specific thresholds, and only VP8_ALT_FLAG needs
testing before setting thresholds relevant to the AltRef frame.
(Raised by gbvalor, in response to Issue 47)

Change-Id: I6a06fc2a6592841d85422bc1661e33349bb6c3b8

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