



<div class="detailCon">
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.fssGenParam%}</label>
		</div>
		<div class="configDiv">
			<ul class="line lineL">
				<li class="line lineI">
					<div id="genSpeedDragLine" class="ipcDragLineDiv"></div>
				</li>
				<li class="line lineI">
					<div id="sensDragLine" class="ipcDragLineDiv"></div>
				</li>
				<li class="line lineI long">
					<label class="des desA">{%label.fssMode%}</label>
					<span class="select modeSelect">
						<i name="fssModeSel" id="bestName" value="best" style="scale:0.75"></i>
						<label class="des desH1" style="font-size:12px">{%label.fssBest%}</label>
					</span>
					<span class="select modeSelect">
						<i name="fssModeSel" id="fastName" value="fast" style="scale:0.75"></i>
						<label class="des desH1" style="font-size:12px">{%label.fssFast%}</label>
					</span>
				</li>
				<li class="line lineI bestModeSet">
					<label class="des desA">{%label.fssNum%}</label>
					<span class="selCon IEPZD">
						<span id="numSel" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
				<li class="line lineI bestModeSet long withInputSel">
					<label class="des desG" style="margin-right:8px">{%label.fssBestDes1%}</label>
					<input class="inputSel" id="bestQualityInput" maxlength="3"></input>
					<span class="selCon IEPZD">
						<span id="bestQuality" class="select">
							<span class="value hsValueA inputSelSpan"></span>
							<i class="arrow inputSelArrow"></i>
						</span>
					</span>
					<label class="des desG" style="margin-left:8px">{%label.fssEndDes%}</label>
				</li>
				<li class="line lineI fastModeSet long">
					<label class="des desA">{%label.fssNum%}</label>
					<span class="selCon IEPZD">
						<span id="numModeSel" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
					<input class="text textA3 fssFastNumInput" style="width:100px;margin-left:8px" id="fastNumInput"></input>
					<label class="des desG hint fssFastNumInput">{%label.numHint%}</label>
				</li>
				<li class="line lineI fastModeSet long withInputSel">
					<label class="des desG" style="margin-right:8px">{%label.fssFastDes1%}</label>
					<input class="inputSel" id="fastSecondInput" maxlength="3"></input>
					<span class="selCon IEPZD">
						<span id="secondSel" class="select">
							<span class="value hsValueA inputSelSpan"></span>
							<i class="arrow inputSelArrow"></i>
						</span>
					</span>
					<label class="des desG" style="margin-left:8px;margin-right:8px">{%label.fssFastDes2%}</label>
					<input class="inputSel" id="fastQualityInput" maxlength="3"></input>
					<span class="selCon IEPZD">
						<span id="fastQuality" class="select">
							<span class="value hsValueA inputSelSpan"></span>
							<i class="arrow inputSelArrow"></i>
						</span>
					</span>
					<label class="des desG" style="margin-left:8px">{%label.fssEndDes%}</label>
				</li>
			</ul>
		</div>
	</div>
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.featureCode%}</label>
		</div>
		<div class="configDiv">
			<ul class="line lineL">
				<li class="line lineI">
					<label class="des desG" style="margin-right:8px">{%label.featureCodeSwitch%}</label>
					<div id="fssFeatureCodeSwitch" class="switchCon">
						<i class="switchBg"></i>
						<i class="switchBall"></i>
					</div>
				</li>
			</ul>
		</div>
	</div>
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.faceExpComp%}</label>
		</div>
		<div class="configDiv">
			<ul class="line lineL">
				<li class="line lineI">
					<label class="des desG" style="margin-right:8px">{%label.enabled%}{%label.faceExpComp%}</label>
					<div id="fssExpSwitch" class="switchCon">
						<i class="switchBg"></i>
						<i class="switchBall"></i>
					</div>
				</li>
				<li class="line lineI long">
					<div style="position:relative;*z-index:1;">
						<div id="hidebg"></div>
					</div>
					<div id="fssLuma" class="ipcDragLineDiv fssExp"></div>
					<label class="des desG hint">{%label.rangeHint%}</label>
				</li>
				<!---
				<li class="line lineI long">
					<div style="position:relative;*z-index:1;">
						<div id="hidebg"></div>
					</div>
					<div id="fssExpDuration" class="ipcDragLineDiv fssExp"></div>
					<label class="des desG hint">{%label.timeHint%}</label>
				</li>
				--->
			</ul>
		</div>
	</div>
	<div class="actionBarDiv" id="filterTimeSet">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.fssFilterTime%}</label>
		</div>
		<div class="configDiv">
			<ul class="line lineL">
				<li class="line lineI long withInputSel">
					<label class="des desG" style="margin-right:8px">{%label.fssFilterTimeDes1%}</label>
					<input class="inputSel" id="fssFilterTimeInput" maxlength="3"></input>
					<span class="selCon IEPZD">
						<span id="fssFilterTime" class="select">
							<span class="value hsValueA inputSelSpan"></span>
							<i class="arrow inputSelArrow"></i>
						</span>
					</span>
					<label class="des desG" style="margin-left:8px">{%label.fssFilterTimeDes2%}</label>
				</li>
			</ul>
		</div>
	</div>
	<div class="funcBtnCon">
		<input class="subBtnB btnA" type="button" id="resetDefault" value="{%btn.resetDefault%}" />
		<input id="fssGenCfgSave" type="button" class="subBtn btnA" value="{%btn.save%}" />
	</div>
</div>

<script type="text/javascript">function init(){function h(b){var a="";closeNoteAll();switch(parseInt(b)){case ENONE:return!1;default:a=errStr.unknown+b}closeToast();showAlert(a);return!1}function I(b){b==uciFaceSnapShot.optValue.best?($(".bestModeSet").show(),$(".fastModeSet").hide(),$("#filterTimeSet").show()):($(".bestModeSet").hide(),$(".fastModeSet").show(),$("#filterTimeSet").hide())}function V(){var b=getRadioChs(J);f!=b&&(f=b,I(b))}function l(b,a,c){id(a).value=c.toString()}function K(){var b={};b[d]={};b[d][NAME]=v;$.query(b,
function(a){if(!0!=h(a[ERR_CODE])){a=a[d][v];m=parseInt(a[L]);w.setValue(parseInt(a[M]));x.setValue(parseInt(a[N]));W.resetSel(m);n.value=a[y].toString();p.value=a[z].toString();q.value=a[A].toString();r.value=a[B].toString();X.resetSel(a[y].toString());Y.resetSel(a[z].toString());Z.resetSel(a[A].toString());aa.resetSel(a[B].toString());var c=a[O];-1==c?(k=2,P.resetSel(2),$(".fssFastNumInput").hide()):(k=1,P.resetSel(1),g.value=c.toString());f=a[Q];I(f);f==uciFaceSnapShot.optValue.best?(changeRadioInput("bestName",
!0),changeRadioInput("fastName",!1)):(changeRadioInput("bestName",!1),changeRadioInput("fastName",!0));b[d][NAME]=C;$.query(b,function(a){!0!=h(a[ERR_CODE])&&(a=a[d][C],D.setValue(parseInt(a[R])),a=a[s]==t?1:0,id("hidebg").style.height=id("fssLuma").clientHeight+"px",0==a?$("#hidebg").show():$("#hidebg").hide(),S.setState(a),u=a,showDetailCon())})}});b[d]={};b[d][NAME]=E;$.query(b,function(a){!0!=h(a[ERR_CODE])&&(a=a[d][E][s]==t?1:0,T.setState(a),F=a)})}for(var f,J="fssModeSel",d=uciFaceSnapShot.fileName,
v=uciFaceSnapShot.secName.fssGenCfg,Q=uciFaceSnapShot.optName.ssMode,M=uciFaceSnapShot.optName.genSpeed,B=uciFaceSnapShot.optName.filterTime,L=uciFaceSnapShot.optName.optSsNum,y=uciFaceSnapShot.optName.optQaThre,N=uciFaceSnapShot.optName.sensitivity,z=uciFaceSnapShot.optName.fastQaThre,A=uciFaceSnapShot.optName.fastSsInterval,O=uciFaceSnapShot.optName.fastSsNum,C=uciFaceSnapShot.secName.autoExp,R=uciFaceSnapShot.optName.fssLuma,s=uciFaceSnapShot.optName.enabled,E=uciFaceSnapShot.secName.featureCode,
u=0,m=1,k=1,t=uciFaceSnapShot.optValue.enableOn,U=uciFaceSnapShot.optValue.enableOff,W=id("numSel"),P=id("numModeSel"),n=id("bestQualityInput"),p=id("fastQualityInput"),g=id("fastNumInput"),q=id("fastSecondInput"),r=id("fssFilterTimeInput"),ba=id("fssGenCfgSave"),X=id("bestQuality"),Z=id("secondSel"),Y=id("fastQuality"),aa=id("fssFilterTime"),w,x,D,S,T,F=0,ca=[{str:label.oneTime,value:1},{str:label.twoTimes,value:2},{str:label.threeTimes,value:3}],G=[],e=0,c=0;10>=c;c++)e=10*c,G[c]={str:e.toString(),
value:e};for(var e=[1,2,3,4,5,6,7,8,9,10,15,30,60,100,120,150,180,200,240,300],H=[],c=0;c<e.length;c++)H[c]={str:e[c].toString(),value:e[c]};var da=[{str:label.customize,value:1},{str:label.infTimes,value:2}];(function(){initRadioInput(J,V);selectInit("numSel",ca,1,function(b){m=b.toString()});selectInit("numModeSel",da,1,function(b){k=parseInt(b);2==k?$(".fssFastNumInput").hide():($(".fssFastNumInput").show(),""==g.value&&(g.value="1"))});w=new DragLine({id:"genSpeedDragLine",name:label.fssGenSpeed,
lowerBound:1,upperBound:5,errFix:!0});x=new DragLine({id:"sensDragLine",name:label.sensitivity,lowerBound:1,upperBound:5,errFix:!0});D=new DragLine({id:"fssLuma",name:label.luma,lowerBound:1,upperBound:100,errFix:!0});selectInit("bestQuality",G,0,l.bind(null,null,"bestQualityInput"));selectInit("secondSel",H,1,l.bind(null,null,"fastSecondInput"));selectInit("fastQuality",G,0,l.bind(null,null,"fastQualityInput"));selectInit("fssFilterTime",H,1,l.bind(null,null,"fssFilterTimeInput"));S=new Switch("fssExpSwitch",
1,function(b){u=b;0==u?$("#hidebg").show():$("#hidebg").hide()});T=new Switch("fssFeatureCodeSwitch",0,function(b){F=b})})();c=function(b,a){var c=parseInt(b.value);b.value=c<a[0]?a[0].toString():c>a[1]?a[1].toString():""==b.value?a[0].toString():c.toString()};q.onchange=c.bind(null,q,[1,300]);p.onchange=c.bind(null,p,[0,100]);n.onchange=c.bind(null,n,[0,100]);r.onchange=c.bind(null,r,[1,300]);g.onchange=c.bind(null,g,[1,100]);ba.onclick=function(){var b={},a={};b[d]={};b[d][v]=a;a[Q]=f;a[M]=w.getValue();
a[N]=x.getValue();a[B]=r.value;a[L]=m;a[y]=n.value;a[z]=p.value;a[A]=q.value;a[O]=1==k?g.value:-1;a={};b[d][C]=a;a[s]=1==u?t:U;a[R]=D.getValue();a={};b[d][E]=a;a[s]=1==F?t:U;showToast("loading");$.modify(b,function(a){h(a[ERR_CODE])?closeToast():showToast("success")})};id("resetDefault").onclick=function(){showConfirmC(btn.resetDefault,label.resetDefaultConfirm,function(b){if(!0==b){b={};var a={};b[d]=a;a[uciFaceSnapShot.actionName.cfgRecover]=null;showToast();$.action(b,function(a){!1==h(a[ERR_CODE])&&
K()})}})};K()}init();
</script><style type="text/css">ul.line li.lineI,ul.line li.lineC{display:block}li.withInputSel{position:relative}#bestQualityInput{position:absolute;left:265px;top:5px}#fastSecondInput{position:absolute;left:164px;top:5px}#fastQualityInput{position:absolute;left:404px;top:5px}#fssFilterTimeInput{position:absolute;left:174px;top:5px}ul.lineL{margin-bottom:25px}input.inputSel{margin:1px;height:26px;line-height:26px;width:36px;padding-left:14px;border-top:0;border-bottom:0;border-left:0;z-index:2}span.inputSelSpan{width:24px!important}i.inputSelArrow{margin-left:25px}li.long{width:600px!important}label.hint{margin-left:8px!important}span.modeSelect{width:110px;text-align:center}div.fssExp{display:inline-block;vertical-align:middle}</style>