View Single Post
Old 30th August 2011, 14:38   #18  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Emulgator View Post
Code:
 # x and y allow to set the center of the aberration circle.
 # It defaults to the center of the image.
 #
 ## Emulgator: The latter is not true, since width and height have not been handed over as function parameters.
Huh? The width and height are got from the clip itself:
Code:
     c= (IsRGB(clip)) ? clip : ConvertToRGB(clip)
     w= c.Width()
     w2= round(w*0.5)
     h= c.Height()
     h2= round(h*0.5)
     xi= default(x,w*0.5)
     xi= (xi<0)?0:xi
     xi= (xi>=w)?w-1:xi
     yi= default(y,h*0.5)
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote