3 * Copyright (C) 1997-2011 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
25 #include "interpolatevideo.inc"
26 #include "loadbalance.h"
27 #include "motionscan.inc"
28 #include "opticflow.inc"
30 // Need a 2nd table if a large number of packages
31 class OpticFlowMacroblock
34 OpticFlowMacroblock();
35 void copy_from(OpticFlowMacroblock *src);
40 // Temporaries for blending macroblocks
46 class OpticFlowPackage : public LoadPackage
54 class OpticFlowUnit : public LoadClient
57 OpticFlowUnit(OpticFlow *server);
59 void process_package(LoadPackage *package);
65 class OpticFlow : public LoadServer
68 OpticFlow(InterpolateVideo *plugin,
73 LoadClient* new_client();
74 LoadPackage* new_package();
75 InterpolateVideo *plugin;
86 class WarpPackage : public LoadPackage
93 class WarpUnit : public LoadClient
96 WarpUnit(Warp *server);
98 void process_package(LoadPackage *package);
103 class Warp : public LoadServer
106 Warp(InterpolateVideo *plugin,
110 void init_packages();
111 LoadClient* new_client();
112 LoadPackage* new_package();
113 InterpolateVideo *plugin;
121 class BlendPackage : public LoadPackage
125 int number0, number1;
130 class BlendMacroblockUnit : public LoadClient
133 BlendMacroblockUnit(BlendMacroblock *server);
134 ~BlendMacroblockUnit();
135 void process_package(LoadPackage *package);
136 BlendMacroblock *server;
140 class BlendMacroblock : public LoadServer
143 BlendMacroblock(InterpolateVideo *plugin,
147 void init_packages();
148 LoadClient* new_client();
149 LoadPackage* new_package();
150 InterpolateVideo *plugin;