Rotate
From Avisynth wiki
(Difference between revisions)
m (→Syntax and Parameters: typo) |
(→Description: update link) |
||
Line 13: | Line 13: | ||
It may be used for perspective correction of amateur films or for special effect. AviSynth internal functions TurnLeft and TurnRight can rotate image on 90 degrees only. The [[Rotate]] plugin is faster than [[Zoom]] plugin (by WarpEnterprises) and EffectRotation (from [[EffectsMany]] plugin by vcmohan) and produces good quality images (IMO). Implemented Alan Paeth's method of bitmap rotation by means of 3 shears. Pixel (linear) interpolation is used at every shear. Size (scale) and aspect ratio of source picture are preserved. | It may be used for perspective correction of amateur films or for special effect. AviSynth internal functions TurnLeft and TurnRight can rotate image on 90 degrees only. The [[Rotate]] plugin is faster than [[Zoom]] plugin (by WarpEnterprises) and EffectRotation (from [[EffectsMany]] plugin by vcmohan) and produces good quality images (IMO). Implemented Alan Paeth's method of bitmap rotation by means of 3 shears. Pixel (linear) interpolation is used at every shear. Size (scale) and aspect ratio of source picture are preserved. | ||
− | *Official documentation: http:// | + | *Official documentation: http://www.avisynth.nl/users/fizick/rotate/rotate.html |
<br> | <br> | ||
+ | |||
== Requirements == | == Requirements == | ||
* [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | * [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6] |
Latest revision as of 08:50, 9 February 2023
Abstract | |
---|---|
Author | Fizick |
Version | v1.6.0 |
Download | Rotate_25_26_x86_x64_dll_v1.6.0_20200627.zip |
Category | Rotation |
License | GPLv2 |
Discussion | Doom9 Thread |
Contents |
[edit] Description
Rotate plugin makes frames rotation or shear on any given angle.
It may be used for perspective correction of amateur films or for special effect. AviSynth internal functions TurnLeft and TurnRight can rotate image on 90 degrees only. The Rotate plugin is faster than Zoom plugin (by WarpEnterprises) and EffectRotation (from EffectsMany plugin by vcmohan) and produces good quality images (IMO). Implemented Alan Paeth's method of bitmap rotation by means of 3 shears. Pixel (linear) interpolation is used at every shear. Size (scale) and aspect ratio of source picture are preserved.
- Official documentation: http://www.avisynth.nl/users/fizick/rotate/rotate.html
[edit] Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: RGB32, Y8, YV12, YV16, YV24, YV411
- *** vcredist_x86.exe is required for Rotate-x86
- *** vcredist_x64.exe is required for Rotate-x64
[edit] Syntax and Parameters
Rotate
is rotation, HShear
is horizontal shear, VShear
is vertical shear.
- Rotate (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")
- HShear (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")
- VShear (clip, float "angle", int "color", int "start", int "end", float "endangle", int "width", int "height", float "aspect")
- clip =
- Input clip.
- clip =
- float angle = 0.0
angle
is rotation angle in degrees clock wise. Default 0.
- float angle = 0.0
- int color = 0
color
is background color of part of clip. Integer or hex or global color constant like color_gray (see colors_rgb.avsi). Default 0 (color_black)
- int color = 0
- int start = 0
start
is first frame number to rotate. Default 0.
- int start = 0
- int end = -1
end
is last frame number to rotate. Default is -1 (as final frame).
- int end = -1
- int endangle =
endangle
is rotation angle of end frame. Default is same asangle
. If not the same, then rotation angle of intermediate frames is linear function.
- int endangle =
- int width = 0
- int height = 0
width
andheight
are sizes of destination output frame. Default 0 is to be equal to input clip size.
- int width = 0
- float aspect = 1.0
aspect
is pixel aspect ratio. Default 1.0 (square pixel).
- float aspect = 1.0
[edit] Examples
1 degree rotation:
AviSource("Blah.avi") Rotate(angle=1.0)
[edit] Changelog
Version Date Changes
v1.6 2020/06/27 - Mods by StainlessS, compile for avs 2.58 and 2.60 x86 and x64. v1.5 2016/03/11 - Added support for differently subsampled planar formats. - Added parameter "aspect". - Changed processing of big angles (about 90) to be compatible with aspect, but it is more blurred now. v1.4 2016/02/28 - Updated to vc2005. Upgrade to avisynth 2.6 (all planar formats).
[edit] Archived Downloads
Version | Download | Mirror |
---|---|---|
v1.6 | Rotate_25&26_x86_x64_dll_v1.6.0_20200627.zip | Rotate_25_26_x86_x64_dll_v1.6.0_20200627.zip |
v1.5 | rotate15.zip | rotate15.zip |
[edit] External Links
- GitHub - Rotate for AviSynth+ (source code only)
Back to External Filters ←