VP9 denoiser implemented FILTER_BLOCK case
VP9 denoiser implemented FILTER_BLOCK case

Renamed updating_running_avg() to filter(). Extended function with the rest of
the filter procedure. Made all of the empirically-determined constants used in
VP8 into functions so they can be tweaked more easily.

Change-Id: I41730c8c92370c76885950a43742347477ca4e7e

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