X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fshapewipe%2Fshapewipe.C;h=b11006d078d48b1371eca3bbe598b597e3d862ee;hp=ca675e2d14fc2107d561e8877f6d581073b39fe8;hb=21af3206552d78919dad02f83c08439bedb05c89;hpb=2d6e0243914af46dbc07eb91aeb951630d71adf4 diff --git a/cinelerra-5.1/plugins/shapewipe/shapewipe.C b/cinelerra-5.1/plugins/shapewipe/shapewipe.C index ca675e2d..b11006d0 100644 --- a/cinelerra-5.1/plugins/shapewipe/shapewipe.C +++ b/cinelerra-5.1/plugins/shapewipe/shapewipe.C @@ -565,20 +565,40 @@ void ShapeWipeMain::reset_pattern_image() float scale = feather ? 1/feather : 0xff; \ type **in_rows = (type**)input->get_rows(); \ type **out_rows = (type**)output->get_rows(); \ - for( int y=y1; y 0xff ) d = 0xff; \ - else if( d < -0xff ) d = -0xff; \ - tmp_type a = (d + 0xff) / 2, b = 0xff - a; \ - for( int i=0; i 0xff ) d = 0xff; \ + else if( d < -0xff ) d = -0xff; \ + tmp_type a = (d + 0xff) / 2, b = 0xff - a; \ + for( int i=0; i 0xff ) d = 0xff; \ + else if( d < -0xff ) d = -0xff; \ + tmp_type b = (d + 0xff) / 2, a = 0xff - b; \ + for( int i=0; iplugin->input; VFrame *output = server->plugin->output; int w = input->get_w(); + int dir = server->plugin->config.direction; unsigned char **pattern_image = server->plugin->pattern_image; unsigned char threshold = server->plugin->threshold;