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