3 * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "loadbalance.h"
27 #include "pluginvclient.h"
37 int equivalent(EdgeConfig &that);
38 void copy_from(EdgeConfig &that);
39 void interpolate(EdgeConfig &prev, EdgeConfig &next,
40 long prev_frame, long next_frame, long current_frame);
46 class EdgePackage : public LoadPackage
53 class EdgeUnit : public LoadClient
56 EdgeUnit(EdgeEngine *server);
58 float edge_detect(float *data, float max, int do_max);
59 void process_package(LoadPackage *package);
64 class EdgeEngine : public LoadServer
67 EdgeEngine(Edge *plugin,
74 LoadClient* new_client();
75 LoadPackage* new_package();
80 class Edge : public PluginVClient
83 Edge(PluginServer *server);
85 // required for all realtime plugins
86 PLUGIN_CLASS_MEMBERS2(EdgeConfig)
89 void save_data(KeyFrame *keyframe);
90 void read_data(KeyFrame *keyframe);
91 int process_buffer(VFrame *frame,
92 int64_t start_position,
97 int w, h, color_model, bpp;