Zoom

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Zoom: add documentation)
 
m
Line 3: Line 3:
 
|1={{Author/WarpEnterprises}}
 
|1={{Author/WarpEnterprises}}
 
|2=v1.4
 
|2=v1.4
|3=[http://www.avisynth.nl/users/warpenterprises/files/zoom_5F25_dll_20050122.zip zoom_dll_20050122.zip] - [x86]
+
|3=[x86] - [http://www.avisynth.nl/users/warpenterprises/files/zoom_5F25_dll_20050122.zip zoom_dll_20050122.zip]
[https://forum.doom9.org/attachment.php?attachmentid=14054&d=1392574410 Zoom.7z ] - [x64]
+
[x64] - [https://forum.doom9.org/attachment.php?attachmentid=14054&d=1392574410 Zoom.7z ]
 
|4=Rotation
 
|4=Rotation
 
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]

Revision as of 17:46, 27 March 2020

Abstract
Author WarpEnterprises
Version v1.4
Download [x86] - zoom_dll_20050122.zip

[x64] - Zoom.7z

Category Rotation
License GPLv2
Discussion Doom9 Thread

Contents

Description

Plugin to Zoom, Pan & Rotate.

Requirements

  • AviSynth 2.5.8, or 2.6.0 or greater
  • Supported color formats: RGB32


Syntax and Parameters

Zoom (clip, string "srcx", string "srcy", string "dstx", string "dsty", string "factorX", string "factorY", string "angle", int "width", int "height", bool "show")


clip   =
Input clip.


string  srcx = ""
string  srcy = ""
The "center" coordinates in the original frame.


string  dstx = ""
string  dsty = ""
The center coordinates in the moved frame


string  factorX = ""
string  factorY = ""
The magnification factors.


string  angle = ""
The rotation angle in radian.


int  width = 0
int  height = 0
The new image dimensions.


bool  show = false
If true, it prints the calculated values on the image.


Examples

Sounds complicated? Not really, try this:

Version().ConverttoRGB32().zoom(dstx="n", angle="n/10")

Here you see that the variable "n" can be used to reference to the current frame number (and this is of course the most important thingie).


Or try:

Version().ConverttoRGB32()
zoom(factorx="n<41 ? pow((n+1)/41,0.5) : 1", factory="n<41 ? pow((n+1)/41,0.5) : 1", dstx="n<41 ? width/2 : width/2+5*(n-41)", angle="n<41 ? 3.1415*n/10 : 0")

And the new image gets a defined alpha layer (black=transparent, else opaque), so you can layer the result on top of another video.


Changelog

Version      Date            Changes
2005/01/22 - latest release


External Links




Back to External Filters

Personal tools