fixed new intra code for rectanglar blocks
fixed new intra code for rectanglar blocks

Also fixed two minor subtle boundary conditions in intra prediction
code, and replaced memcpy/memset with vpx_ prefixed version.

Change-Id: I9cddff3be831228b628f1f2f065a61feacbcbee6

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