add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / downsample / downsampleengine.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
23
24
25 #ifndef DOWNSAMPLEENGINE_H
26 #define DOWNSAMPLEENGINE_H
27
28 #include "loadbalance.h"
29 #include "vframe.inc"
30
31 class DownSampleServer;
32
33 class DownSamplePackage : public LoadPackage
34 {
35 public:
36         DownSamplePackage();
37         int y1, y2;
38 };
39
40 class DownSampleUnit : public LoadClient
41 {
42 public:
43         DownSampleUnit(DownSampleServer *server);
44         void process_package(LoadPackage *package);
45         DownSampleServer *server;
46 };
47
48 class DownSampleServer : public LoadServer
49 {
50 public:
51         DownSampleServer(int total_clients,
52                 int total_packages);
53         void process_frame(VFrame *output,
54                 VFrame *input,
55                 int r,
56                 int g,
57                 int b,
58                 int a,
59                 int vertical,
60                 int horizontal,
61                 int vertical_y,
62                 int horizontal_x);
63         void init_packages();
64         LoadClient* new_client();
65         LoadPackage* new_package();
66
67         VFrame *output;
68         VFrame *input;
69         int r;
70         int g;
71         int b;
72         int a;
73         int vertical;
74         int horizontal;
75         int vertical_y;
76         int horizontal_x;
77 };
78
79
80 #endif
81