add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / flipbook.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef FLIPBOOK_H
23 #define FLIPBOOK_H
24
25 #include "guicast.h"
26 #include "thread.h"
27
28 class FlipBookItem
29 {
30 public:
31         Asset asset;
32         long duration;     // samples or frames depending on the asset
33 };
34
35
36 class FlipBook : public BC_MenuItem
37 {
38 public:
39         FlipBook(MWindow *mwindow);
40         ~FlipBook();
41
42         handle_event();
43
44         MWindow *mwindow;
45 };
46
47 class FlipBookThread : public Thread
48 {
49 public:
50         FlipBookThread(MWindow *mwindow);
51         ~FlipBookThread();
52
53         void run();
54
55         MWindow *mwindow;
56 };
57
58 class FlipBookGUI : public BC_Window
59 {
60 public:
61         FlipBookGUI(FlipBookThread *thread, MWindow *mwindow);
62         ~FlipBookGUI();
63
64         FlipBookThread *thread;
65         MWindow *mwindow;
66 };
67
68
69
70
71 #endif