#include #include #include "plugin.h" void perform_effect(_frame f, _args a) { byte pixelsize = f.pixelformat/8; int x, y, pos, pos2, widthminuspos, widthminuspos2; pixel8 *p, *tp=0; char *t; if(!a.s) return; pos = atoi(a.s); if(t = strstr(a.s, " ")) { pos2 = atoi(t+1); tp = (pixel8 *)malloc(f.width*pixelsize); } if(pos<0) pos=0; if(pos>=f.width) pos=f.width-1; if(pos2<0) pos2=0; if(pos2>=f.width) pos2=f.width-1; widthminuspos = f.width-pos; widthminuspos2 = f.width-pos2; for(y=0; y=w) pos=w-1; if(pos2<0) pos2=0; if(pos2>=w) pos2=w-1; widthminuspos = f1.width-pos; widthminuspos2 = f1.width-pos2; widthminusone = w-1; for(y=0; y