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)
40 // used to determine whether the video's resources should be freed or not
42 // when lasttime - realtime > THRESHOLD, all but the stream is freed
45 char filename[MAX_QPATH];
48 clvideo_t* CL_OpenVideo( const char *filename, const char *name, int owner );
49 clvideo_t* CL_GetVideo( const char *name );
50 void CL_SetVideoState( clvideo_t *video, clvideostate_t state );
51 void CL_RestartVideo( clvideo_t *video );
53 void CL_CloseVideo( clvideo_t * video );
54 void CL_PurgeOwner( int owner );
56 void CL_VideoFrame( void ); // update all videos
57 void CL_Video_Init( void );
58 void CL_Video_Shutdown( void );
61 extern int cl_videoplaying;
63 void CL_DrawVideo( void );
64 void CL_VideoStart( char *filename );
65 void CL_VideoStop( void );