Adjust errorperbit according to RDMULT in activity masking
Adjust errorperbit according to RDMULT in activity masking

In activity masking, RDO constant RDMULT is adjusted on a per MB basis
adaptive to activity with the MB. errorperbit, which is defined as
RDMULT/RDDIV, is a constant used in motion estimation. Previously, in
activity masking, errorperbit is not changed even when RDMULT is changed.
This commit changed to adjust errorperbit according to the change in
RDMULT.

Test in cif set showed a very small but consistent gain by all quality
metrics (average, overall psnr and ssim) when activity masking is on.

Change-Id: I07ded3e852919ab76757691939fe435328273823

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