Adopt weighted averaging in MFQE.
Adopt weighted averaging in MFQE.

By using weighted averaging in the calculation of the frames to be
displayed, we get an average gain of more than 1 db for key frames
whose base qp are 20 higher than non-key frames.

Change-Id: I7bcb2e7b9c6420ea3f73f33204d18b072dffd17c

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