4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #include "yuvwindow.h"
33 #include "pluginvclient.h"
36 class YUVMain : public PluginVClient
39 YUVMain(int argc, char *argv[]);
42 // required for all realtime plugins
43 int process_realtime(long size, VFrame **input_ptr, VFrame **output_ptr);
44 int plugin_is_realtime();
45 int plugin_is_multi_channel();
46 const char* plugin_title();
52 int save_data(char *text);
53 int read_data(char *text);
56 int reconfigure(); // Rebuild tables
60 int automated_function;
68 class YUVEngine : public Thread
71 YUVEngine(YUVMain *plugin, int start_y, int end_y);
74 int start_process_frame(VFrame **output, VFrame **input, int size);
75 int wait_process_frame();
82 VFrame **output, **input;
84 Mutex input_lock, output_lock;