Syncing update_coef_probs() implementation with decoder.
Syncing update_coef_probs() implementation with decoder.

Using for loop based on max_tx_size instead of separate checks. Combining
build_coeff_contexts() with update_coef_probs().

Change-Id: Ie335a7db29830677fbc14478a9c190d3c1068665

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