X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fmotion51%2Fmotion51.C;h=702d43e7d638f604d4bf92eb1ffe3a8b1d22b417;hb=fdf615e4b9eb6ce8faecc7f138c28edf0efac3be;hp=b61e22442b91109f35c2fa69255a888a2b175374;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/motion51/motion51.C b/cinelerra-5.1/plugins/motion51/motion51.C index b61e2244..702d43e7 100644 --- a/cinelerra-5.1/plugins/motion51/motion51.C +++ b/cinelerra-5.1/plugins/motion51/motion51.C @@ -1,3 +1,24 @@ +/* + * CINELERRA + * Copyright (C) 2020 William Morrow + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + + #include "affine.h" #include "bchash.h" #include "clip.h" @@ -434,7 +455,9 @@ int Motion51Main::process_buffer(VFrame **frame, int64_t position, double frame_ &corner_float : &corner_uint8; int use_opengl = get_use_opengl(); - read_frame(out, target_layer, out_position, frame_rate, use_opengl); +// Do NOT use opengl here because if you so than dissolve, flash, and zoome can cause problems. +// read_frame(out, target_layer, out_position, frame_rate, use_opengl); + read_frame(out, target_layer, out_position, frame_rate, 0); out_w = out->get_w(); out_h = out->get_h(); out_r = 0.5 * (out_w < out_h ? out_w : out_h);