X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Freversevideo%2Freversevideo.C;h=e770c7d020da01fcf4e646a7cb5bd696358652bb;hb=e8345395298725df42211b8b2c6472c4ce31340a;hp=367b0bdbf3606667bd793798c85234e9ab7e7fb1;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/reversevideo/reversevideo.C b/cinelerra-5.1/plugins/reversevideo/reversevideo.C index 367b0bdb..e770c7d0 100644 --- a/cinelerra-5.1/plugins/reversevideo/reversevideo.C +++ b/cinelerra-5.1/plugins/reversevideo/reversevideo.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU 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 General Public License for more details. - * + * * You should have received a copy of the GNU 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 "bcdisplayinfo.h" @@ -101,11 +101,11 @@ ReverseVideoConfig::ReverseVideoConfig() ReverseVideoWindow::ReverseVideoWindow(ReverseVideo *plugin) - : PluginClientWindow(plugin, - 210, - 160, - 200, - 160, + : PluginClientWindow(plugin, + 210, + 160, + 200, + 160, 0) { this->plugin = plugin; @@ -119,8 +119,8 @@ void ReverseVideoWindow::create_objects() { int x = 10, y = 10; - add_subwindow(enabled = new ReverseVideoEnabled(plugin, - x, + add_subwindow(enabled = new ReverseVideoEnabled(plugin, + x, y)); show_window(); flush(); @@ -137,11 +137,11 @@ void ReverseVideoWindow::create_objects() -ReverseVideoEnabled::ReverseVideoEnabled(ReverseVideo *plugin, - int x, +ReverseVideoEnabled::ReverseVideoEnabled(ReverseVideo *plugin, + int x, int y) - : BC_CheckBox(x, - y, + : BC_CheckBox(x, + y, plugin->config.enabled, _("Enabled")) { @@ -166,13 +166,13 @@ int ReverseVideoEnabled::handle_event() ReverseVideo::ReverseVideo(PluginServer *server) : PluginVClient(server) { - + } ReverseVideo::~ReverseVideo() { - + } const char* ReverseVideo::plugin_title() { return _("Reverse video"); } @@ -217,7 +217,7 @@ int ReverseVideo::load_configuration() int64_t prev_position = edl_to_local(prev_keyframe->position); int64_t next_position = edl_to_local(next_keyframe->position); - if(prev_position == 0 && next_position == 0) + if(prev_position == 0 && next_position == 0) { next_position = prev_position = get_source_start(); } @@ -268,9 +268,9 @@ int ReverseVideo::load_configuration() input_position = range_end - get_source_position(); input_position = range_start + input_position + 1; } -// printf("ReverseVideo::load_configuration 2 start=%lld end=%lld current=%lld input=%lld\n", -// range_start, -// range_end, +// printf("ReverseVideo::load_configuration 2 start=%lld end=%lld current=%lld input=%lld\n", +// range_start, +// range_end, // get_source_position(), // input_position);