Firstpass.c refactoring
Firstpass.c refactoring

Removed unused function.

Added tentative code to take error score of an older frame
into account when calculating Q range. However, for now
it is disabled pending merging other changes and testing.

Change-Id: Ie89955e70319dac31b79e3b833e3352712a061ec

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