Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / fadeengine.h
blob1ddcf2ac5d5a008b89fea006122cebf04c92db8a
1 #ifndef FADEENGINE_H
2 #define FADEENGINE_H
4 #include "loadbalance.h"
5 #include "vframe.inc"
8 class FadeEngine;
10 class FadePackage : public LoadPackage
12 public:
13 FadePackage();
15 int out_row1, out_row2;
20 class FadeUnit : public LoadClient
22 public:
23 FadeUnit(FadeEngine *engine);
24 ~FadeUnit();
26 void process_package(LoadPackage *package);
28 FadeEngine *engine;
31 class FadeEngine : public LoadServer
33 public:
34 FadeEngine(int cpus);
35 ~FadeEngine();
37 // the input pointer is never different than the output pointer in any
38 // of the callers
39 void do_fade(VFrame *output, VFrame *input, float alpha);
41 void init_packages();
42 LoadClient* new_client();
43 LoadPackage* new_package();
45 VFrame *output;
46 VFrame *input;
47 float alpha;
52 #endif
54 // Local Variables:
55 // mode: C++
56 // c-file-style: "linux"
57 // End: