Added range checking to the tone curve, per Cameron Perry's suggestion.
Added range checking to the tone curve, per Cameron Perry's suggestion.

zakinaeem/GPUImage,SanChain/GPUImage,ashishgabani/GPUImage,rtsbtx/GPUImage,jsharp83/GPUImage,wfxiang08/GPUImage,DepositDev/GPUImage,pengleelove/GPUImage,hyperconnect/GPUImage,tastyone/GPUImage,sprint84/GPUImage,jackeychens/GPUImage,111minutes/GPUImage,cocologics/GPUImage,FiftyThree/GPUImage,inb4ohnoes/GPUImage,Matzo/GPUImage,liduanw/GPUImage,FiftyThree/GPUImage,ohad7/GPUImage,PodRepo/GPUImage,shi-yan/GPUImage,cesare-montresor/GPUImage,njucsyyh/GPUImage,lydonchandra/GPUImage,xqz001/GPUImage,SinnerSchraderMobileMirrors/GPUImage,csjlengxiang/GPUImage,mattwymore/GPUImage,haikusw/GPUImage,sansuiso/GPUImage,java02014/GPUImage,odyth/GPUImage,DavidWangTM/GPUImage,mad102190/GPUImage,hakanw/GPUImage,mumer92/GPUImage,KBvsMJ/GPUImage,mervekeles/repo,hanton/GPUImage,Slin/GPUImage,duanhjlt/GPUImage,mervekeles/GPUImage,Lcarvajal/GPUImage,StratAguilar/GPUImage,jakeva/GPUImage,FiftyThree/GPUImage,pheed/GPUImage,agan112/GPUImage,faceleg/GPUImage,cesare-montresor/GPUImage,efremidze/GPUImage,silvansky/GPUImage,cocologics/GPUImage,hgl888/GPUImage,Slin/GPUImage,sansuiso/GPUImage,powerhome/GPUImage,mtxs007/GPUImage,RavishankarDuMCA10/GPUImage,0x4d52/GPUImage,Naithar/GPUImage,cocologics/GPUImage,mad102190/GPUImage,mervekeles/GPUImage,somegeekintn/GPUImage,ohad7/GPUImage,ask-fm/GPUImage,drewwilson/GPUImage,geowarsong/GPUImage,wangwei1237/GPUImage,bragil-massoud/GPUImage,SanjoDeundiak/GPUImage,Learn-IOS/GPUImage,odyth/GPUImage,bgulanowski/GPUImage,eunmin/GPUImage,rFlex/GPUImage,zzhhui/GPUImage,jimydotorg/GGGPUImage,nonoBruce/GPUImage,Kevin775263419/GPUImage,3drobotics/GPUImage,catbus/GPUImage,SanChain/GPUImage,Learn-IOS/GPUImage,cesare-montresor/GPUImage,appone/GPUImage,Dexterp37/GPUImage,nickplee/GPUImage,bragil-massoud/GPUImage,birthmark/GPUImage,u-engine/GPUImage,SanjoDeundiak/GPUImage,rtsbtx/GPUImage,gank0326/GPUImage,tuo/GPUImage,evfemist/GPUImage,cesare-montresor/GPUImage,drewwilson/GPUImage,jianwoo/GPUImage,rromanchuk/GPUImage,zhengfuzhe2013/GPUImage,lacyrhoades/GPUImage,SinnerSchraderMobileMirrors/GPUImage,mingming1986/GPUImage,picmonkey/GPUImage,loi32456/GPUImage,tuo/GPUImage,lacyrhoades/GPUImage,xingyuniu/GPUImage,PodRepo/GPUImage,0x4d52/GPUImage,kalsariyac/GPUImage,Naithar/GPUImage,pevasquez/GPUImage,dachaoisme/GPUImage,Hybridity/GPUImage,u-engine/GPUImage,silvansky/GPUImage,jackeychens/GPUImage,Amnysia/GPUImage,AmiaoCat/GPUImage,TimorCan/GPUImage,UndaApp/GPUImage,wysaid/GPUImage,zilaiyedaren/GPUImage,geowarsong/GPUImage,YuAo/GPUImage,liduanw/GPUImage,thinkrad/GPUImage,eighteight/GPUImage,appone/GPUImage,pengleelove/GPUImage,picmonkey/GPUImage,Matzo/GPUImage,ramoslin02/GPUImage,YuAo/GPUImage,lauraskelton/GPUImage,lauraskelton/GPUImage,IncredibleDucky/GPUImage,HSFGitHub/GPUImage,BlessNeo/GPUImage,nonoBruce/GPUImage,faceleg/GPUImage,Creolophus/GPUImage,Hybridity/GPUImage,pheed/GPUImage,denivip/GPUImage,StratAguilar/GPUImage,mumer92/GPUImage,smule/GPUImage,howandhao/GPUImage,UltravisualApp/GPUImage,HSFGitHub/GPUImage,PlanetaToBe/GPUImage,pevasquez/GPUImage,stelabouras/GPUImage,catbus/GPUImage,Learn-IOS/GPUImage,RavishankarDuMCA10/GPUImage,937447974/GPUImage,appone/GPUImage,pengleelove/GPUImage,dachaoisme/GPUImage,java02014/GPUImage,njucsyyh/GPUImage,sdonly/GPUImage,ashishgabani/GPUImage,ask-fm/GPUImage,loi32456/GPUImage,drewwilson/GPUImage,rocklive/GPUImage,UndaApp/GPUImage,YuAo/GPUImage,pheed/GPUImage,PlanetaToBe/GPUImage,agan112/GPUImage,jimydotorg/GGGPUImage,headupinclouds/GPUImage,howandhao/GPUImage,headupinclouds/GPUImage,nickplee/GPUImage,yshiga/GPUImage,SinnerSchraderMobileMirrors/GPUImage,jackeychens/GPUImage,SinnerSchraderMobileMirrors/GPUImage,Kevin775263419/GPUImage,horaceho/GPUImage,hyperconnect/GPUImage,xingyuniu/GPUImage,silvansky/GPUImage,bgulanowski/GPUImage,eighteight/GPUImage,LIQC/GPUImage,skonb/GPUImage,appone/GPUImage,BradLarson/GPUImage,nickplee/GPUImage,devluyy/GPUImage,duanhjlt/GPUImage,gank0326/GPUImage,rocklive/GPUImage,wjszf/GPUImage,mad102190/GPUImage,wjszf/GPUImage,zakinaeem/GPUImage,horaceho/GPUImage,ohad7/GPUImage,dawangjiaowolaixunshan/GPUImage,sprint84/GPUImage,skonb/GPUImage,AmiaoCat/GPUImage,haikusw/GPUImage,Slin/GPUImage,yaoxiaoyong/GPUImage,IncredibleDucky/GPUImage,mtxs007/GPUImage,tuo/GPUImage,Creolophus/GPUImage,3drobotics/GPUImage,SuPair/GPUImage,SanChain/GPUImage,hakanw/GPUImage,efremidze/GPUImage,wfxiang08/GPUImage,mumer92/GPUImage,zilaiyedaren/GPUImage,r3mus/GPUImage,inb4ohnoes/GPUImage,ozetadev/GPUImage,ozetadev/GPUImage,devluyy/GPUImage,SanjoDeundiak/GPUImage,cnbin/GPUImage,u-engine/GPUImage,hakanw/GPUImage,odyth/GPUImage,lauraskelton/GPUImage,alex-learn/GPUImage,jimydotorg/GGGPUImage,TimorCan/GPUImage,lauraskelton/GPUImage,yimouleng/GPUImage,cookov/GPUImage,kalsariyac/GPUImage,lauraskelton/GPUImage,powerhome/GPUImage,dawangjiaowolaixunshan/GPUImage,j364960953/GPUImage,levyleo/LGPUImage,bgulanowski/GPUImage,levyleo/LGPUImage,BradLarson/GPUImage,agan112/GPUImage,jsharp83/GPUImage,hoanganhx86/GPUImage,bragil-massoud/GPUImage,birthmark/GPUImage,BlessNeo/GPUImage,hanangellove/GPUImage,pheed/GPUImage,hoanganhx86/GPUImage,IncredibleDucky/GPUImage,stelabouras/GPUImage,Creolophus/GPUImage,937447974/GPUImage,csjlengxiang/GPUImage,cnbin/GPUImage,jimydotorg/GGGPUImage,xqz001/GPUImage,powerhome/GPUImage,AlanJN/GPUImage,SuPair/GPUImage,AskaCai/GPUImage,wjszf/GPUImage,TuSDK/GPUImage,yshiga/GPUImage,jianwoo/GPUImage,BradLarson/GPUImage,Matzo/GPUImage,skonb/GPUImage,TuSDK/GPUImage,headupinclouds/GPUImage,BlessNeo/GPUImage,3drobotics/GPUImage,DepositDev/GPUImage,ramoslin02/GPUImage,lydonchandra/GPUImage,LIQC/GPUImage,stelabouras/GPUImage,denivip/GPUImage,zakinaeem/GPUImage,smule/GPUImage,zhengfuzhe2013/GPUImage,eunmin/GPUImage,rromanchuk/GPUImage,hoanganhx86/GPUImage,hanton/GPUImage,pcKanso/GPUImage,njucsyyh/GPUImage,rromanchuk/GPUImage,yimouleng/GPUImage,shi-yan/GPUImage,AlanJN/GPUImage,UltravisualApp/GPUImage,lily4ever/GPUImage,sprint84/GPUImage,wysaid/GPUImage,sujeking/GPUImage,sujeking/GPUImage,Dexterp37/GPUImage,mervekeles/repo,eighteight/GPUImage,r3mus/GPUImage,hgl888/GPUImage,tastyone/GPUImage,zzhhui/GPUImage,liovch/GPUImage,rtsbtx/GPUImage,thinkrad/GPUImage,gank0326/GPUImage,jianwoo/GPUImage,hanangellove/GPUImage,xingyuniu/GPUImage,zhengfuzhe2013/GPUImage,cocologics/GPUImage,Lcarvajal/GPUImage,hgl888/GPUImage,tastyone/GPUImage,kalsariyac/GPUImage,mattwymore/GPUImage,DavidWangTM/GPUImage,mingming1986/GPUImage,DavidWangTM/GPUImage,wysaid/GPUImage,KBvsMJ/GPUImage,hanangellove/GPUImage,msfeldstein/GPUImage,FiftyThree/GPUImage,yaoxiaoyong/GPUImage,stelabouras/GPUImage,wangwei1237/GPUImage,msfeldstein/GPUImage,alex-learn/GPUImage,evfemist/GPUImage,0x4d52/GPUImage,sdonly/GPUImage,cookov/GPUImage,howandhao/GPUImage,picmonkey/GPUImage,KBvsMJ/GPUImage,lily4ever/GPUImage,liduanw/GPUImage,sansuiso/GPUImage,somegeekintn/GPUImage,AskaCai/GPUImage,pcKanso/GPUImage,faceleg/GPUImage,j364960953/GPUImage,jakeva/GPUImage,jsharp83/GPUImage,Amnysia/GPUImage