UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_cinematic_ogm.h File Reference

Header file for OGM cinematics. More...

Go to the source code of this file.

Functions

int CIN_OGM_OpenCinematic (struct cinematic_s *cin, const char *filename)
 
void CIN_OGM_CloseCinematic (struct cinematic_s *cin)
 
bool CIN_OGM_RunCinematic (struct cinematic_s *cin)
 
void CIN_OGM_Init (void)
 

Detailed Description

Header file for OGM cinematics.

Definition in file cl_cinematic_ogm.h.

Function Documentation

void CIN_OGM_CloseCinematic ( struct cinematic_s cin)
void CIN_OGM_Init ( void  )

Definition at line 774 of file cl_cinematic_ogm.cpp.

References f, i, long(), yuvTable_t::ub, yuvTable_t::ug, yuvTable_t::vg, yuvTable_t::vr, and yuvTable_t::yy.

Referenced by CIN_Init().

int CIN_OGM_OpenCinematic ( cinematic_t cin,
const char *  filename 
)
Returns
0 -> no problem
Todo:

vorbis/theora-header & init in sub-functions

"clean" error-returns ...

Todo:
FIXME? can serialno be 0 in ogg? (better way to check initialized?)
Todo:
support for more than one audio stream? / detect files with one stream(or without correct ones)

Definition at line 549 of file cl_cinematic_ogm.cpp.

References CIN_OGM_CloseCinematic(), CIN_OGM_LoadBlockToSync(), CIN_OGM_LoadPagesToStream(), CINEMATIC_TYPE_OGM, cinematic_s::cinematicType, CL_Milliseconds(), cinematic_s::codecData, Com_Printf(), FILE_READ, FS_OpenFile(), i, Mem_PoolAllocType, OGMCIN, and vid_genericPool.

Referenced by CIN_OpenCinematic().

bool CIN_OGM_RunCinematic ( cinematic_t cin)
Returns
true if the cinematic is still running, false otherwise

Definition at line 722 of file cl_cinematic_ogm.cpp.

References CIN_OGM_DrawCinematic(), CIN_OGM_LoadFrame(), CL_Milliseconds(), and OGMCIN.

Referenced by CIN_RunCinematic().