add check to ensure that cq_level falls within min and max q
add check to ensure that cq_level falls within min and max q

Add the notion of deferred validation of parameters. We don't want to
validate the cq_level at initialization time, because it won't have
been set via set_param() yet.

Change-Id: Ia1308395e8c10e0b1dc4e9af3a09b2bd6744cc30

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