1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
|
Import("zooming.avs")
i = ImageSource("g:\yun_3054.jpg")
iheight = i.height()/2.0
#zoomt in 250 Frames rein am linkten Rand auf mitte des Bildes und erzeugt dabei immer ein tWidthxtHeight großes Bild
zoomin = i.zooming(tWidth=720, tHeight=576, coX=0.0, coY=iheight, zoomFactor=6, steps=250).trim(0,249)
#bewegt den Rahmen in 1000 Schritten über das Bild
inzoom = calcInitFactor(i, 720,576)
walk = i.zoomedWalk(zoom=6.0/inzoom, startX=576/4.0, startY=iheight, steps = 1000).trim(0,999)
#zoomt in 250 Schritten wieder raus
zoomout = zooming(i, tWidth=720, tHeight=576, coX=i.width()-576/4.0, coY=iheight, beginZoom=(6.0/inzoom), zoomFactor=1.0/6.0, steps=250).trim(0,249)
return (zoomin+walk+zoomout).AssumeFPS(25).ConverttoYv12() |