View Single Post
Old 18th June 2009, 14:11   #4  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Quote:
Originally Posted by leeperry View Post
nice! so basically this could be used w/ mod2 only scripts? if not mod2 > add padding lines?
Sure, it could. You could also buy a laser beam cutting machine when you need to cut a piece of paper.

For *such* a simple task, Avisynth's standard language (conditional operation through bool ? this : that) is fully sufficient ...

Code:
src = last

dest_modulo = 2    #  or 4, 6, 8, 1337, ...
src_modulo  = src.width()%dest_modulo
padding     = dest_modulo - src_modulo

src_modulo==0 ? src : src.addborders(0,0,padding,0)
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote