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
25 class BrightnessEngine;
28 #include "brightnesswindow.h"
29 #include "loadbalance.h"
31 #include "pluginvclient.h"
33 class BrightnessConfig
38 int equivalent(BrightnessConfig &that);
39 void copy_from(BrightnessConfig &that);
40 void interpolate(BrightnessConfig &prev,
41 BrightnessConfig &next,
44 int64_t current_frame);
51 class BrightnessMain : public PluginVClient
54 BrightnessMain(PluginServer *server);
57 // required for all realtime plugins
58 int process_buffer(VFrame *frame,
59 int64_t start_position,
63 void save_data(KeyFrame *keyframe);
64 void read_data(KeyFrame *keyframe);
69 PLUGIN_CLASS_MEMBERS(BrightnessConfig)
75 BrightnessEngine *engine;
79 VFrame *input, *output;
87 class BrightnessPackage : public LoadPackage
95 class BrightnessUnit : public LoadClient
98 BrightnessUnit(BrightnessEngine *server, BrightnessMain *plugin);
101 void process_package(LoadPackage *package);
103 BrightnessMain *plugin;
106 class BrightnessEngine : public LoadServer
109 BrightnessEngine(BrightnessMain *plugin, int cpus);
112 void init_packages();
113 LoadClient* new_client();
114 LoadPackage* new_package();
116 BrightnessMain *plugin;