Spinner

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Syntax and Parameters)
(Examples)
Line 115: Line 115:
 
== Examples ==
 
== Examples ==
 
<!-- example code block: 1st char in each line = space -->
 
<!-- example code block: 1st char in each line = space -->
  ## This is some example code to use spinner in a transition.
+
  im1 = imagereader(...).ConvertToRGB24()
imagereader("C:\..........jpg", end = 10)
+
  r1 = Turn(im1, q = 0, angle = 240, eangle = 4800, lx = 100, rx = 400, ty = 200, by = 250)
a = avisource("C;\..........avi").converttoYV16()
+
  r2 = Turn(im1, q = 2, angle = 240, x = 210.4, y = 188.6, r = 140)
  converttoyv16()
+
 
  Spinner( angle = -30, eangle = 130, q=5, tclip = a)
+
+
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters|External Filters]] &larr;'''
 
'''Back to [[External_filters|External Filters]] &larr;'''

Revision as of 23:05, 18 June 2018


Abstract
Author V.C.Mohan
Version 9 Apr 2018
Download movePlus.7z
Category External filters
License GPLv2
Discussion Spinner plugin


Contents

Description

Turn function rotates a frame or selected part of it about the specified fulcrum. Full description

Requirements

  • AviSynth+ r2347 or later


Syntax and Parameters

Turn (clip, clip "bg", int "r", float "angle", float "x", float "y", int "q", int "er", float "eangle", float "ex", float "ey", int "lx", int "rx", int "ty", int "by", int "elx", int "rx", int "ety", int"eby", int "p", int "p", bool "norm")


clip   =
Input clip


clip   =
clip to be used as background


int  r = half of diagonal of frame
(Initial) radius of rotating disc
  • More than 0


float  angle = 45
(Initial) angle of rotation in degrees
  • No limit. +ve clockwise


float  x = width/2
(Initial) x coordinate of rotation axis
  • At least part of disc should be in frame


float  y = height/2
(Initial) y coordinate of rotation axis
  • At least part of disc should be in frame


int  q = 3 (Bicubic)
Interpolation type
  • 1 = Nearest neighbor
  • 2 = Bilinear
  • 3 = Bicubic
  • 4 = Lanczos 6x6 point


int  er = r
End radius of rotating disc
  • More than 0


float  eangle = angle
End angle of rotation in degrees
  • No limit. -ve clockwise


float  ex = x
End x coordinate of rotation axis
  • At least part of disc should be in frame


float  ey = y
End y coordinate of rotation axis
  • At least part of disc should be in frame


int  lx = 0
(Initial) left x coordinate of rectangle to display
  • Should be in frame


int  rx = width - 1
(Initial) right x coordinate of rectangle to display
  • Should be in frame


int  ty = 0
(Initial) top y coordinate of rectangle to display
  • Should be in frame


int  by = height - 1
(Initial) bottom y coordinate of rectangle to display
  • Should be in frame


int  elx = lx
End left x coordinate of rctangle to display
  • Should be in frame


int  rx = rx
End right x coordinate of rectangle to display
  • Should be in frame


int  ety = ty
End top y coordinate of rctangle to display
  • Should be in frame


int  eby = by
End bottom y coordinate of rectangle to display
  • Should be in frame


int  p = 50
Location percentile accuracy
  • Should be 5 to 100


int  p = 4
Location precision to be maintained
  • 2 to 10


bool  norm = false
Location precision to be maintained
  • true or false


Examples

im1 = imagereader(...).ConvertToRGB24()
r1 = Turn(im1, q = 0, angle = 240, eangle = 4800, lx = 100, rx = 400, ty = 200, by = 250)
r2 = Turn(im1, q = 2, angle = 240, x = 210.4, y = 188.6, r = 140)



Back to External Filters

Personal tools