X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fzoom%2Fzoom.C;h=b5c74d0373d35763253658f5a295abf8b7932a08;hp=1ab1a7e3d4f322c6a55bc3d6d9d906c0fbdf70ce;hb=48c313de28fe6d39d9431dbe2dca6ffb176541ff;hpb=3f6a262cfe390b3f8b275297d64565a5b6272969 diff --git a/cinelerra-5.1/plugins/zoom/zoom.C b/cinelerra-5.1/plugins/zoom/zoom.C index 1ab1a7e3..b5c74d03 100644 --- a/cinelerra-5.1/plugins/zoom/zoom.C +++ b/cinelerra-5.1/plugins/zoom/zoom.C @@ -253,41 +253,22 @@ int ZoomMain::process_realtime(VFrame *incoming, VFrame *outgoing) if(is_before) { - if(!temp) temp = new VFrame(outgoing->get_w(), - outgoing->get_h(), - outgoing->get_color_model()); + if(!temp) temp = new VFrame(outgoing->get_w(), outgoing->get_h(), + outgoing->get_color_model(), 0); temp->clear_frame(); - overlayer->overlay(temp, - outgoing, - in_x, - in_y, - in_x + in_w, - in_y + in_h, - 0, - 0, - temp->get_w(), - temp->get_h(), - 1.0, - TRANSFER_REPLACE, - CUBIC_LINEAR); + overlayer->overlay(temp, outgoing, + in_x, in_y, in_x + in_w, in_y + in_h, + 0, 0, temp->get_w(), temp->get_h(), + 1.0, TRANSFER_REPLACE, CUBIC_LINEAR); outgoing->copy_from(temp); } else { outgoing->clear_frame(); - overlayer->overlay(outgoing, - incoming, - in_x, - in_y, - in_x + in_w, - in_y + in_h, - 0, - 0, - temp->get_w(), - temp->get_h(), - 1.0, - TRANSFER_REPLACE, - CUBIC_LINEAR); + overlayer->overlay(outgoing, incoming, + in_x, in_y, in_x + in_w, in_y + in_h, + 0, 0, temp->get_w(), temp->get_h(), + 1.0, TRANSFER_REPLACE, CUBIC_LINEAR); } return 0;