EffectLens
EffectLens function magnifies a specified circular disc area. The
magnification can be constant in the disc or vary from center to edges
( drop=true). The lens center moves from the initial center coordinates
in pixels to the final coordinates.
RGB32, RGB24, YUY2 and YV12 formats only are supported
Details of parameters
Description |
Name |
Type |
Limits |
Default |
clip |
|
clip |
|
none |
Effect start frame number |
sf |
Integer |
within clip |
first frame |
Effect end frame number |
ef |
Integer |
within clip |
last frame |
Radius of lens |
radius |
integer |
8 or more, less than half of smaller dimension of frame |
1/8th smaller frame dimension |
magnification at start |
magx |
integer |
2 to 12 |
4 |
initial x coordinate |
initx |
integer |
in frame |
mid frame |
initial y coordinate |
inity |
integer |
in frame |
mid frame |
Final x coordinate |
finalx |
integer |
in frame |
initx |
Final y coordinate |
finaly |
integer |
in frame |
inity |
is drop effect required? |
drop |
boolean |
true for yes, false for no |
false |
#Usage examples:-
EffectLens(last,51,158,60,5,40,240,400,240,false)
For stationary lens position, uniform magnification:-
EffectLens(last,51,158,60,5,40,240)
For stationary lens, varying magnification:-
EffectLens(last,51,158,drop=true)
Image with effect :