View Single Post
Old 3rd January 2017, 16:20   #24  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
Code:
	# Get maximum temporal radius needed
	maxTR = (temporalSL)       ? SLRad : 0
	maxTR = (MatchTR2 > maxTR) ? MatchTR2 : maxTR
	maxTR = (TR1 > maxTR)      ? TR1 : maxTR
   	maxTR = (TR2 > maxTR)      ? TR2 : maxTR
   	maxTR = (NoiseTR > maxTR)  ? NoiseTR : maxTR
	maxTR = (ProgSADMask > 0.0 || StabilizeNoise || ShutterBlur > 0) ? (maxTR > 1 ? maxTR : 1) : maxTR
	maxTR = (ForceTR > MaxTR)  ? ForceTR : maxTR
Just curious if this mess in QTGMC is actually necessary given that there's always been a max function in AVISynth.

I'm pretty sure a line or two of consisting of max() would be easier to read and this just makes the script look more complicated than it actually is.
ndjamena is offline   Reply With Quote