Spinner
From Avisynth wiki
(Difference between revisions)
(→Requirements) |
(→Syntax and Parameters) |
||
(3 intermediate revisions by one user not shown) | |||
Line 14: | Line 14: | ||
<!-- a one-sentence description --> | <!-- a one-sentence description --> | ||
Turn function rotates a frame or selected part of it about the specified fulcrum. [http://www.avisynth.nl/users/vcmohan/movePlus/Turn.html Full description] | Turn function rotates a frame or selected part of it about the specified fulcrum. [http://www.avisynth.nl/users/vcmohan/movePlus/Turn.html Full description] | ||
− | |||
+ | <br> | ||
== Requirements == | == Requirements == | ||
* AviSynth+ r2347 or later | * AviSynth+ r2347 or later | ||
− | |||
+ | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
− | :{{Template:FuncDef| | + | :{{Template:FuncDef| 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")}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
− | :::Input clip | + | ::: Input clip |
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2| |clip| }} |
− | ::: | + | ::: clip to be used as background |
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2|r|int|half of diagonal of frame}} |
− | ::: | + | ::: (Initial) radius of rotating disc |
− | + | ::::* More than 0 | |
<br> | <br> | ||
− | ::{{Par2|float| | + | ::{{Par2|angle|float|45}} |
− | ::: | + | ::: (Initial) angle of rotation in degrees |
+ | ::::* No limit. +ve clockwise | ||
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2|x|float|width/2}} |
− | ::: | + | ::: (Initial) x coordinate of rotation axis |
+ | ::::* At least part of disc should be in frame | ||
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2|y|float|height/2}} |
− | ::: | + | ::: (Initial) y coordinate of rotation axis |
+ | ::::* At least part of disc should be in frame | ||
<br> | <br> | ||
− | ::{{Par2 | + | ::{{Par2|q|int|3 (Bicubic)}} |
− | ::: | + | ::: Interpolation type |
+ | ::::* 1 = Nearest neighbor | ||
+ | ::::* 2 = Bilinear | ||
+ | ::::* 3 = Bicubic | ||
+ | ::::* 4 = Lanczos 6x6 point | ||
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2|er|int|r}} |
− | ::: | + | ::: End radius of rotating disc |
+ | ::::* More than 0 | ||
<br> | <br> | ||
− | ::{{Par2| | + | ::{{Par2|eangle|float|angle}} |
− | ::: | + | ::: End angle of rotation in degrees |
+ | ::::* No limit. -ve clockwise | ||
<br> | <br> | ||
+ | ::{{Par2|ex|float|x}} | ||
+ | ::: End x coordinate of rotation axis | ||
+ | ::::* At least part of disc should be in frame | ||
<br> | <br> | ||
+ | ::{{Par2|ey|float|y}} | ||
+ | ::: End y coordinate of rotation axis | ||
+ | ::::* At least part of disc should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|lx|int|0}} | ||
+ | ::: (Initial) left x coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|rx|int|width - 1}} | ||
+ | ::: (Initial) right x coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|ty|int|0}} | ||
+ | ::: (Initial) top y coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|by|int|height - 1}} | ||
+ | ::: (Initial) bottom y coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|elx|int|lx}} | ||
+ | ::: End left x coordinate of rctangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|rx|int|rx}} | ||
+ | ::: End right x coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|ety|int|ty}} | ||
+ | ::: End top y coordinate of rctangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|eby|int|by}} | ||
+ | ::: End bottom y coordinate of rectangle to display | ||
+ | ::::* Should be in frame | ||
+ | <br> | ||
+ | ::{{Par2|p|int|50}} | ||
+ | ::: Location percentile accuracy | ||
+ | ::::* Should be 5 to 100 | ||
+ | <br> | ||
+ | ::{{Par2|p|int|4}} | ||
+ | ::: Location precision to be maintained | ||
+ | ::::* 2 to 10 | ||
+ | <br> | ||
+ | ::{{Par2|norm|bool|false}} | ||
+ | ::: Location precision to be maintained | ||
+ | ::::* true or false | ||
+ | <br> | ||
== Examples == | == Examples == | ||
<!-- example code block: 1st char in each line = space --> | <!-- example code block: 1st char in each line = space --> | ||
− | + | 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) | |
− | + | ||
− | + | ||
− | + | ||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters|External Filters]] ←''' | '''Back to [[External_filters|External Filters]] ←''' |
Latest revision as of 04:37, 3 July 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 9 Apr 2018 |
Download | movePlus.7z |
Category | External filters |
License | GPLv2 |
Discussion | Spinner plugin |
Contents |
[edit] Description
Turn function rotates a frame or selected part of it about the specified fulcrum. Full description
[edit] Requirements
- AviSynth+ r2347 or later
[edit] 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 =
- clip to be used as background
- clip =
- int r = half of diagonal of frame
- (Initial) radius of rotating disc
- More than 0
- (Initial) radius of rotating disc
- int r = half of diagonal of frame
- float angle = 45
- (Initial) angle of rotation in degrees
- No limit. +ve clockwise
- (Initial) angle of rotation in degrees
- float angle = 45
- float x = width/2
- (Initial) x coordinate of rotation axis
- At least part of disc should be in frame
- (Initial) x coordinate of rotation axis
- float x = width/2
- float y = height/2
- (Initial) y coordinate of rotation axis
- At least part of disc should be in frame
- (Initial) y coordinate of rotation axis
- float y = height/2
- int q = 3 (Bicubic)
- Interpolation type
- 1 = Nearest neighbor
- 2 = Bilinear
- 3 = Bicubic
- 4 = Lanczos 6x6 point
- Interpolation type
- int q = 3 (Bicubic)
- int er = r
- End radius of rotating disc
- More than 0
- End radius of rotating disc
- int er = r
- float eangle = angle
- End angle of rotation in degrees
- No limit. -ve clockwise
- End angle of rotation in degrees
- float eangle = angle
- float ex = x
- End x coordinate of rotation axis
- At least part of disc should be in frame
- End x coordinate of rotation axis
- float ex = x
- float ey = y
- End y coordinate of rotation axis
- At least part of disc should be in frame
- End y coordinate of rotation axis
- float ey = y
- int lx = 0
- (Initial) left x coordinate of rectangle to display
- Should be in frame
- (Initial) left x coordinate of rectangle to display
- int lx = 0
- int rx = width - 1
- (Initial) right x coordinate of rectangle to display
- Should be in frame
- (Initial) right x coordinate of rectangle to display
- int rx = width - 1
- int ty = 0
- (Initial) top y coordinate of rectangle to display
- Should be in frame
- (Initial) top y coordinate of rectangle to display
- int ty = 0
- int by = height - 1
- (Initial) bottom y coordinate of rectangle to display
- Should be in frame
- (Initial) bottom y coordinate of rectangle to display
- int by = height - 1
- int elx = lx
- End left x coordinate of rctangle to display
- Should be in frame
- End left x coordinate of rctangle to display
- int elx = lx
- int rx = rx
- End right x coordinate of rectangle to display
- Should be in frame
- End right x coordinate of rectangle to display
- int rx = rx
- int ety = ty
- End top y coordinate of rctangle to display
- Should be in frame
- End top y coordinate of rctangle to display
- int ety = ty
- int eby = by
- End bottom y coordinate of rectangle to display
- Should be in frame
- End bottom y coordinate of rectangle to display
- int eby = by
- int p = 50
- Location percentile accuracy
- Should be 5 to 100
- Location percentile accuracy
- int p = 50
- int p = 4
- Location precision to be maintained
- 2 to 10
- Location precision to be maintained
- int p = 4
- bool norm = false
- Location precision to be maintained
- true or false
- Location precision to be maintained
- bool norm = false
[edit] 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 ←