Move overlay frame speed feature setting out of mode search loop
Move overlay frame speed feature setting out of mode search loop

Refactor overlay frame speed-up related function. Make it unified
with the ref_frame_skip_mask system and Move it out of the mode
search loop.

Change-Id: I0dde9baf44354f6ba00b4679cba02fa6a30c7316

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