/*
* CINELERRA
* Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
+ *
* 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 "1080to540.h"
first_field = that.first_field;
}
-void _1080to540Config::interpolate(_1080to540Config &prev,
- _1080to540Config &next,
- long prev_frame,
- long next_frame,
+void _1080to540Config::interpolate(_1080to540Config &prev,
+ _1080to540Config &next,
+ long prev_frame,
+ long next_frame,
long current_frame)
{
copy_from(prev);
_1080to540Window::_1080to540Window(_1080to540Main *client)
- : PluginClientWindow(client,
- 200,
- 100,
- 200,
- 100,
+ : PluginClientWindow(client,
+ 200,
+ 100,
+ 200,
+ 100,
0)
-{
- this->client = client;
+{
+ this->client = client;
}
-_1080to540Option::_1080to540Option(_1080to540Main *client,
- _1080to540Window *window,
- int output,
- int x,
- int y,
+_1080to540Option::_1080to540Option(_1080to540Main *client,
+ _1080to540Window *window,
+ int output,
+ int x,
+ int y,
char *text)
- : BC_Radial(x,
- y,
- client->config.first_field == output,
+ : BC_Radial(x,
+ y,
+ client->config.first_field == output,
text)
{
this->client = client;
_1080to540Main::_1080to540Main(PluginServer *server)
: PluginVClient(server)
{
-
+
temp = 0;
}
_1080to540Main::~_1080to540Main()
{
-
+
if(temp) delete temp;
}
-const char* _1080to540Main::plugin_title() { return _("1080 to 540"); }
+const char* _1080to540Main::plugin_title() { return N_("1080 to 540"); }
int _1080to540Main::is_realtime() { return 1; }
NEW_WINDOW_MACRO(_1080to540Main, _1080to540Window)
load_configuration();
if(!temp)
{
- temp = new VFrame(0,
- -1,
- input->get_w(),
- input->get_h(),
- input->get_color_model(),
- -1);
+ temp = new VFrame(input->get_w(), input->get_h(),
+ input->get_color_model(), 0);
temp->clear_frame();
}
reduce_field(temp, input, config.first_field == 0 ? 0 : 1, 0);
reduce_field(temp, input, config.first_field == 0 ? 1 : 0, 1);
-
+
output->copy_from(temp);
return 0;
void _1080to540Main::update_gui()
{
- if(thread)
+ if(thread)
{
load_configuration();
thread->window->lock_window();