add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / yuv / yuv.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef YUV_H
23 #define YUV_H
24
25 #define MAXVALUE 100
26
27 class YUVMain;
28 class YUVEngine;
29
30 #include "bcbase.h"
31 #include "bccolors.h"
32 #include "yuvwindow.h"
33 #include "pluginvclient.h"
34
35
36 class YUVMain : public PluginVClient
37 {
38 public:
39         YUVMain(int argc, char *argv[]);
40         ~YUVMain();
41
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();
47         int start_gui();
48         int stop_gui();
49         int show_gui();
50         int hide_gui();
51         int set_string();
52         int save_data(char *text);
53         int read_data(char *text);
54
55 // parameters needed
56         int reconfigure();    // Rebuild tables
57         int y;
58         int u;
59         int v;
60         int automated_function;
61         int reconfigure_flag;
62
63
64 private:
65         YUVEngine **engine;
66 };
67
68 class YUVEngine : public Thread
69 {
70 public:
71         YUVEngine(YUVMain *plugin, int start_y, int end_y);
72         ~YUVEngine();
73
74         int start_process_frame(VFrame **output, VFrame **input, int size);
75         int wait_process_frame();
76         void run();
77
78         YUVMain *plugin;
79         int start_y;
80         int end_y;
81         int size;
82         VFrame **output, **input;
83         int last_frame;
84         Mutex input_lock, output_lock;
85 };
86
87
88 #endif