View Single Post
Old 3rd January 2017, 18:31   #25  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by ndjamena View Post
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.
I will check it later (when there is a bug or really needed change)
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote