GraMaMa

From Avisynth wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Abstract
Author E-Male, Wilbert Dijkhof
Version v0.2
Download GraMaMa_v02.zip
Category Masking
License Public domain
Discussion Doom9 Thread


Description

GraMaMa creates a mask (either greyscale or black/white) given a prescribed shape (such as circle, ellipse, line, square and rectangle). It replaces the input clip by a mask with the same dimensions and color format.

Requirements

  • AviSynth 2.5.8 or greater
  • Supported color formats: YV12


GraMaMa (clip, int "mode", int "a", int "b", int "rad", int "rad2", bool "binarize")


clip   =
Input clip.


int  mode = 1
  • 1 : circle
  • 2 : square
  • 3 : diamond
  • 4 : line
  • 5 : ellipse
  • 6 : rectangle


int  a = width/2
int  b = height/2
(a,b) is the center of the mask. It can be located outside the clip.


int  rad = width/4
rad is the horizontal radius of the mask.


int  rad2 =
rad2 is the vertical radius of the mask (for mode=1,3,4 it is equal to rad; for mode=5,6 (default rad/2) it can be set separately; for mode=2 is results in a vertical gradient mask (when rad2>0).


bool  binarize = false
binarize = false (gradient mask), binarize = true (black and white mask).


Examples

TO DO

Changelog

Version      Date            Changes
v0.2 14/02/2008 - Some corrections and other default values. - Added ellipse and rectangle. - Added binarize=true/false. - Added documentation. v0.1 21/01/2005 - Initial release by E_Male.


Archived Downloads

Version Download Mirror
v0.2 GraMaMa_v02.zip GraMaMa_v02.zip






Back to External Filters