![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | clvideo_t |
Macros | |
#define | CLTHRESHOLD 2.0 |
#define | CLVIDEO_MAX_SUBTITLES 512 |
#define | CLVIDEOPREFIX "video/" |
#define | MENUOWNER 1 |
Enumerations | |
enum | clvideostate_t { CLVIDEO_UNUSED , CLVIDEO_PLAY , CLVIDEO_LOOP , CLVIDEO_PAUSE , CLVIDEO_FIRSTFRAME , CLVIDEO_RESETONWAKEUP , CLVIDEO_STATECOUNT } |
Functions | |
void | CL_CloseVideo (clvideo_t *video) |
void | CL_DrawVideo (void) |
clvideo_t * | CL_GetVideoByName (const char *name) |
clvideo_t * | CL_OpenVideo (const char *filename, const char *name, int owner, const char *subtitlesfile) |
void | CL_PurgeOwner (int owner) |
void | CL_RestartVideo (clvideo_t *video) |
void | CL_SetVideoState (clvideo_t *video, clvideostate_t state) |
void | CL_Video_Frame (void) |
void | CL_Video_Init (void) |
void | CL_Video_KeyEvent (int key, int ascii, qbool down) |
void | CL_Video_Shutdown (void) |
void | CL_VideoStart (char *filename, const char *subtitlesfile) |
void | CL_VideoStop (void) |
Variables | |
struct cvar_s | cl_video_brightness |
struct cvar_s | cl_video_keepaspectratio |
struct cvar_s | cl_video_scale |
struct cvar_s | cl_video_scale_vpos |
struct cvar_s | cl_video_stipple |
struct cvar_s | cl_video_subtitles |
struct cvar_s | cl_video_subtitles_lines |
struct cvar_s | cl_video_subtitles_textsize |
int | cl_videoplaying |
#define CLTHRESHOLD 2.0 |
Definition at line 9 of file cl_video.h.
Referenced by CL_Video_Frame().
#define CLVIDEO_MAX_SUBTITLES 512 |
Definition at line 24 of file cl_video.h.
Referenced by LoadSubtitles().
#define CLVIDEOPREFIX "video/" |
Definition at line 8 of file cl_video.h.
Referenced by CL_OpenVideo(), and OpenVideo().
#define MENUOWNER 1 |
Definition at line 11 of file cl_video.h.
Referenced by VM_cin_open(), and VM_Cmd_Reset().
enum clvideostate_t |
Enumerator | |
---|---|
CLVIDEO_UNUSED | |
CLVIDEO_PLAY | |
CLVIDEO_LOOP | |
CLVIDEO_PAUSE | |
CLVIDEO_FIRSTFRAME | |
CLVIDEO_RESETONWAKEUP | |
CLVIDEO_STATECOUNT |
Definition at line 13 of file cl_video.h.
Definition at line 327 of file cl_video.c.
References clvideo_t::close, CLVIDEO_FIRSTFRAME, CLVIDEO_UNUSED, i, NULL, clvideo_t::state, clvideo_t::stream, clvideo_t::subtitle_text, clvideo_t::subtitles, clvideo_t::suspended, UnlinkVideoTexture(), and Z_Free.
Referenced by CL_PurgeOwner(), CL_Video_Shutdown(), CL_VideoStart(), CL_VideoStop(), and VM_cin_close().
Definition at line 460 of file cl_video.c.
References a, cl_video_subtitle_info_t::alignment, b, bound, clvideo_t::cachepic, CL_DrawVideo_DisplaySubtitleLine(), CL_DrawVideo_WordWidthFunc(), CL_GetVideoBySlot(), cl_video_brightness, cl_video_fadein, cl_video_fadeout, cl_video_keepaspectratio, cl_video_scale, cl_video_scale_vpos, cl_video_stipple, cl_video_subtitles, cl_video_subtitles_lines, cl_video_subtitles_textsize, cl_videoplaying, COM_Wordwrap(), Con_Print(), Cvar_SetValueQuick(), DRAWFLAG_NOGAMMA, DrawQ_Fill(), DrawQ_SuperPic(), float, cl_video_subtitle_info_t::font, FONT_NOTIFY, cl_video_subtitle_info_t::fontsize, clvideo_t::framenum, clvideo_t::framerate, clvideo_t::getaspectratio, cl_video_subtitle_info_t::height, viddef_mode_t::height, host, i, cvar_t::integer, max, min, viddef_t::mode, pow(), px, host_static_t::realtime, scr_stipple, clvideo_t::starttime, clvideo_t::stream, strlen(), clvideo_t::subtitle_end, clvideo_t::subtitle_start, clvideo_t::subtitle_text, clvideo_t::subtitles, cl_video_subtitle_info_t::textalpha, v_glslgamma_video, cvar_t::value, vid, vid_conheight, vid_conwidth, cl_video_subtitle_info_t::width, viddef_mode_t::width, cl_video_subtitle_info_t::x, and cl_video_subtitle_info_t::y.
Referenced by SCR_DrawScreen().
clvideo_t * CL_GetVideoByName | ( | const char * | name | ) |
Definition at line 284 of file cl_video.c.
References CL_GetVideoBySlot(), cl_num_videos, cl_videos, CLVIDEO_UNUSED, i, name, and NULL.
Referenced by VM_cin_close(), VM_cin_getstate(), VM_cin_restart(), and VM_cin_setstate().
clvideo_t * CL_OpenVideo | ( | const char * | filename, |
const char * | name, | ||
int | owner, | ||
const char * | subtitlesfile ) |
Definition at line 245 of file cl_video.c.
References cl_num_videos, cl_videos, CLVIDEOPREFIX, Con_DPrintf(), CON_ERROR, Con_Printf(), FindUnusedVid(), max, name, NULL, OpenVideo(), and owner.
Referenced by VM_cin_open().
Definition at line 411 of file cl_video.c.
References CL_CloseVideo(), cl_num_videos, cl_videos, i, and owner.
Referenced by VM_Cmd_Reset().
Definition at line 309 of file cl_video.c.
References clvideo_t::close, CLVIDEO_UNUSED, clvideo_t::framenum, host, clvideo_t::lasttime, NULL, OpenStream(), host_static_t::realtime, clvideo_t::starttime, clvideo_t::state, and clvideo_t::stream.
Referenced by CL_SetVideoState(), CL_Video_Frame(), CL_VideoStart(), and VM_cin_restart().
void CL_SetVideoState | ( | clvideo_t * | video, |
clvideostate_t | state ) |
Definition at line 298 of file cl_video.c.
References CL_RestartVideo(), CLVIDEO_FIRSTFRAME, host, clvideo_t::lasttime, host_static_t::realtime, and clvideo_t::state.
Referenced by CL_VideoStart(), and VM_cin_setstate().
Definition at line 355 of file cl_video.c.
References clvideo_t::cachepic, cl_num_videos, CL_RestartVideo(), cl_videobmask, cl_videobytesperpixel, cl_videogmask, cl_videormask, cl_videos, CL_VideoStop(), CLTHRESHOLD, CLVIDEO_FIRSTFRAME, CLVIDEO_PAUSE, CLVIDEO_PLAY, CLVIDEO_UNUSED, clvideo_t::decodeframe, Draw_GetPicTexture(), clvideo_t::framenum, clvideo_t::framerate, host, i, clvideo_t::imagedata, int(), clvideo_t::lasttime, R_MarkDirtyTexture(), host_static_t::realtime, clvideo_t::starttime, clvideo_t::state, clvideo_t::stream, clvideo_t::suspended, SuspendVideo(), and clvideo_t::width.
Referenced by CL_Frame().
Definition at line 675 of file cl_video.c.
References b, CF_CLIENT, cl_num_videos, CL_PlayVideo_f(), CL_StopVideo_f(), cl_video_brightness, cl_video_fadein, cl_video_fadeout, cl_video_keepaspectratio, cl_video_newmap(), cl_video_scale, cl_video_scale_vpos, cl_video_shutdown(), cl_video_start(), cl_video_stipple, cl_video_subtitles, cl_video_subtitles_lines, cl_video_subtitles_textsize, cl_videobmask, cl_videobytesperpixel, cl_videogmask, cl_videormask, Cmd_AddCommand(), Cvar_RegisterVariable(), i, LibAvW_OpenLibrary(), NULL, R_RegisterModule(), and v_glslgamma_video.
Referenced by CL_Init().
Definition at line 596 of file cl_video.c.
References CL_VideoStop(), K_ENTER, K_ESCAPE, and K_SPACE.
Referenced by Key_Event().
Definition at line 713 of file cl_video.c.
References CL_CloseVideo(), cl_num_videos, cl_videos, i, and LibAvW_CloseLibrary().
Referenced by CL_Shutdown().
void CL_VideoStart | ( | char * | filename, |
const char * | subtitlesfile ) |
Definition at line 578 of file cl_video.c.
References CL_CloseVideo(), cl_num_videos, CL_RestartVideo(), CL_SetVideoState(), CL_StartVideo(), cl_videoplaying, cl_videos, CLVIDEO_PLAY, CLVIDEO_UNUSED, max, OpenVideo(), and clvideo_t::state.
Referenced by CL_PlayVideo_f().
Definition at line 606 of file cl_video.c.
References CL_CloseVideo(), cl_videoplaying, and cl_videos.
Referenced by CL_ParseServerInfo(), CL_StopVideo_f(), CL_Video_Frame(), and CL_Video_KeyEvent().
|
extern |
Definition at line 12 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 13 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 9 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 10 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 11 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 6 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
Definition at line 7 of file cl_video.c.
Referenced by CL_DrawVideo(), and CL_Video_Init().
|
extern |
|
extern |
Definition at line 458 of file cl_video.c.
Referenced by CL_DrawVideo(), CL_VideoStart(), CL_VideoStop(), Key_Event(), R_RenderView(), and VM_CL_videoplaying().