EffectDistort
EffectDistort function distorts the image. The distortion can be either
vertical or horizontal. If vertical, then max point of distortion moves
from left to right on image in the selected frame range. Conversely if
horizontal is selected it moves vertically. Horizontal and vertical
results may be looking opposite but really they represent in which
direction the image is distorted. So please check output image if the
desired distortion is achieved or not. Grade of distortion can be selected.
Suggest it be between 1 and 10.
RGB32, RGB24, YUY2 and YV12 formats only are supported. The YV12 format
may run colors. Note: For some frame sizes streaks may appear.
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 |
direction of distortion |
dir/td>
| string |
"hor", "ver" |
"hor" |
centre is pinched or expanded |
pinch |
boolean |
true for pinch, false for expand |
true |
grade of distortion |
grade |
integer |
1 to 10 |
4 |
#Usage examples:-
EffectDistort(last,50,90, "ver",false,1)
Image with effect :