Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Copyright 1995, Brown University, Providence, RI |
||
3 | * |
||
4 | * Permission to use and modify this software and its documentation for |
||
5 | * any purpose other than its incorporation into a commercial product is |
||
6 | * hereby granted without fee. Permission to copy and distribute this |
||
7 | * software and its documentation only for non-commercial use is also |
||
8 | * granted without fee, provided, however, that the above copyright notice |
||
9 | * appear in all copies, that both that copyright notice and this permission |
||
10 | * notice appear in supporting documentation, that the name of Brown |
||
11 | * University not be used in advertising or publicity pertaining to |
||
12 | * distribution of the software without specific, written prior permission, |
||
13 | * and that the person doing the distribution notify Brown University of |
||
14 | * such distributions outside of his or her organization. Brown University |
||
15 | * makes no representations about the suitability of this software for |
||
16 | * any purpose. It is provided "as is" without express or implied warranty. |
||
17 | * Brown University requests notification of any modifications to this |
||
18 | * software or its documentation. |
||
19 | * |
||
20 | * Send the following redistribution information: |
||
21 | * |
||
22 | * Name: |
||
23 | * Organization: |
||
24 | * Address (postal and/or electronic): |
||
25 | * |
||
26 | * To: |
||
27 | * Software Librarian |
||
28 | * Computer Science Department, Box 1910 |
||
29 | * Brown University |
||
30 | * Providence, RI 02912 |
||
31 | * |
||
32 | * or |
||
33 | * |
||
34 | * brusd@cs.brown.edu |
||
35 | * |
||
36 | * We will acknowledge all electronic notifications. |
||
37 | */ |
||
38 | |||
39 | #include <stdio.h> |
||
40 | #include <iostream.h> |
||
41 | #include "ANIMmpeg.H" |
||
42 | |||
43 | extern unsigned long wpixel[256]; |
||
44 | //extern int quietFlag; |
||
45 | |||
46 | class ANIMdisplay { |
||
47 | public: |
||
48 | //Constructor for first movie |
||
49 | ANIMdisplay(ANIMbase *movie, char *displayName, |
||
50 | Boolean loopMovie=TRUE, |
||
51 | int allocateFrame=1, int starty=5); |
||
52 | |||
53 | //Constructor for later movies |
||
54 | ANIMdisplay(ANIMbase *movie, ANIMdisplay *lastMovie, |
||
55 | Boolean loopMovie=TRUE, |
||
56 | int allocateFrame=1); |
||
57 | |||
58 | //Destructor |
||
59 | ~ANIMdisplay(); |
||
60 | |||
61 | //Replace with a new movie |
||
62 | void newMovie(const char * const movie); |
||
63 | |||
64 | void display(char *frame=NULL); |
||
65 | |||
66 | Boolean movieDone(); |
||
67 | ANIMbase *_movie; |
||
68 | |||
69 | private: |
||
70 | ANIMdisplay& operator=(const ANIMdisplay& rhs); //disallow = operator |
||
71 | void init_image(Boolean allocateFrame); |
||
72 | void init(Boolean allocateFrame); |
||
73 | |||
74 | XInfo xinfo; |
||
75 | int largy, displayWidth; |
||
76 | Boolean originalMovie,frameAllocated, loop, movieEnded; |
||
77 | char *_displayName; |
||
78 | }; |