cl_cinematic_ogm.h File Reference

Header file for OGM cinematics. More...

#include "../../shared/ufotypes.h"
Include dependency graph for cl_cinematic_ogm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int CIN_OGM_PlayCinematic (struct cinematic_s *cin, const char *filename)
qboolean CIN_OGM_RunCinematic (struct cinematic_s *cin)
void CIN_OGM_StopCinematic (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_Init ( void   ) 

Definition at line 794 of file cl_cinematic_ogm.c.

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

Referenced by CIN_Init().

int CIN_OGM_PlayCinematic ( 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)
Todo:
FIXME? better way to find audio stream

Definition at line 563 of file cl_cinematic_ogm.c.

References CIN_OGM_LoadBlockToSync(), CIN_OGM_LoadPagesToStream(), CIN_OGM_StopCinematic(), CINEMATIC_TYPE_OGM, cinematic_s::cinematicType, CL_Milliseconds(), cinematic_s::codecData, Com_Printf(), FILE_READ, FS_OpenFile(), M_PlayMusicStream(), Mem_PoolAlloc, OGMCIN, qtrue, and vid_genericPool.

Referenced by CIN_PlayCinematic().

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

Definition at line 745 of file cl_cinematic_ogm.c.

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

Referenced by CIN_RunCinematic().

void CIN_OGM_StopCinematic ( struct cinematic_s cin  ) 

Generated by  doxygen 1.6.2