5 //#define MAXCLVIDEOS 64 + 1 // 1 video is reserved for the cinematic mode
7 #define CLVIDEOPREFIX "_video/"
8 #define CLTHRESHOLD 2.0
12 typedef enum clvideostate_e
19 CLVIDEO_RESETONWAKEUP,
23 typedef struct clvideo_s
39 // if a video is suspended, it is automatically paused (else we'd still have to process the frames)
40 double lasttime; // used to determine whether the video's resources should be freed or not
41 qboolean suspended; // when lasttime - realtime > THRESHOLD, all but the stream is freed
43 char filename[MAX_QPATH];
46 clvideo_t* CL_OpenVideo( char *filename, char *name, int owner );
47 clvideo_t* CL_GetVideo( char *name );
48 void CL_SetVideoState( clvideo_t *video, clvideostate_t state );
49 void CL_RestartVideo( clvideo_t *video );
51 void CL_CloseVideo( clvideo_t * video );
52 void CL_PurgeOwner( int owner );
54 void CL_VideoFrame( void ); // update all videos
55 void CL_Video_Init( void );
56 void CL_Video_Shutdown( void );
59 extern int cl_videoplaying;
61 void CL_DrawVideo( void );
62 void CL_VideoStart( char *filename );
63 void CL_VideoStop( void );