Rotate

From Avisynth wiki
Revision as of 08:50, 9 February 2023 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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

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.


Requirements


*** vcredist_x86.exe is required for Rotate-x86
*** vcredist_x64.exe is required for Rotate-x64


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.


float  angle = 0.0
angle is rotation angle in degrees clock wise. Default 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  start = 0
start is first frame number to rotate. Default 0.


int  end = -1
end is last frame number to rotate. Default is -1 (as final frame).


int  endangle =
endangle is rotation angle of end frame. Default is same as angle. If not the same, then rotation angle of intermediate frames is linear function.


int  width = 0
int  height = 0
width and height are sizes of destination output frame. Default 0 is to be equal to input clip size.


float  aspect = 1.0
aspect is pixel aspect ratio. Default 1.0 (square pixel).


Examples

1 degree rotation:

AviSource("Blah.avi")
Rotate(angle=1.0)


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).


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


External Links

  • GitHub - Rotate for AviSynth+ (source code only)




Back to External Filters

Personal tools