DepthSA
DepthSALuma=NormalizedWeightedSum(DepthLuma,FrameLumaBE16x16)
DepthSATarget=[setparam/tr:lux+lux]
DepthSADistanceStorage=(TriggerCtrlDistance>0.0)?TriggerCtrlDistance:DepthSADistanceStorage
DepthSALumaWeight=[setparam/tr:lux+DepthSADistanceStorage]
DepthSAFrameWeight=1.0-DepthSALumaWeight
DepthSADepthLumaScale=DepthSALuma1000000/TriggerCtrlSafeExp
DepthSADepthLumaStorage=(TriggerCtrlDistance>0)?DeptjSADepthLumaScale:DepthSADepthLumaStorage
DepthSADepthLumaSelection=DepthSADepthLumaStorageTriggerCtrlSafeExp/1000000
DepthSAAdjRatioDepth=DepthSATarget/DepthSADepthLumaSelection
DepthSAAdjRatioHigh=[setparam/tr:lux+lux]/DepthHighPCTLLuma
DepthSAAdjRatioLow=[setparam/tr:lux+lux]/DepthLowPCTLLuma
DepthSAAdjRatioMin=Max(DepthSAAdjRatioDepth0.5,Min(DepthSAAdjRatioDepth,[settparam/tr:lux+DepthSAAdjRatio