View Single Post
Old 25th June 2012, 08:23   #6  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
With the same kind of strategy you could go even further and factorize almost all the code from the Deband* functions. You'll probably end up with everything at the top level or in a single bigger function. Filters in the script will be instantiated only once, not more. Just switch the signal path in your flowgraph with a ClipClop or ReplaceFramesSimple at each switching point. The latter is much easier to use than Trim because you can merge multiple sets of intervals just by concatenating the mapping strings.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote