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 "motioncache-hv.inc"
28 #include "motionscan-hv.inc"
29 #include "opticflow.inc"
31 // Need a 2nd table if a large number of packages
32 class OpticFlowMacroblock
35 OpticFlowMacroblock();
36 void copy_from(OpticFlowMacroblock *src);
41 // Temporaries for blending macroblocks
47 class OpticFlowPackage : public LoadPackage
55 class OpticFlowUnit : public LoadClient
58 OpticFlowUnit(OpticFlow *server);
60 void process_package(LoadPackage *package);
66 class OpticFlow : public LoadServer
69 OpticFlow(InterpolateVideo *plugin,
74 LoadClient* new_client();
75 LoadPackage* new_package();
76 InterpolateVideo *plugin;
77 MotionHVCache *downsample_cache;
88 class WarpPackage : public LoadPackage
95 class WarpUnit : public LoadClient
98 WarpUnit(Warp *server);
100 void process_package(LoadPackage *package);
105 class Warp : public LoadServer
108 Warp(InterpolateVideo *plugin,
112 void init_packages();
113 LoadClient* new_client();
114 LoadPackage* new_package();
115 InterpolateVideo *plugin;
123 class BlendPackage : public LoadPackage
127 int number0, number1;
132 class BlendMacroblockUnit : public LoadClient
135 BlendMacroblockUnit(BlendMacroblock *server);
136 ~BlendMacroblockUnit();
137 void process_package(LoadPackage *package);
138 BlendMacroblock *server;
142 class BlendMacroblock : public LoadServer
145 BlendMacroblock(InterpolateVideo *plugin,
149 void init_packages();
150 LoadClient* new_client();
151 LoadPackage* new_package();
152 InterpolateVideo *plugin;