|
UFO: Alien Invasion
|
#include "cl_cinematic_roq.h"#include "cl_cinematic.h"#include "../client.h"#include "../renderer/r_draw.h"#include "../sound/s_main.h"#include "../sound/s_music.h"
Go to the source code of this file.
Data Structures | |
| struct | yuvTable_t |
| struct | roqChunk_t |
| struct | roqQuadVector_t |
| struct | roqQuadCell_t |
| struct | roqCinematic_t |
Macros | |
| #define | ROQ_IDENT 0x1084 |
| #define | ROQ_QUAD_INFO 0x1001 |
| #define | ROQ_QUAD_CODEBOOK 0x1002 |
| #define | ROQ_QUAD_VQ 0x1011 |
| #define | ROQ_SOUND_MONO 0x1020 |
| #define | ROQ_SOUND_STEREO 0x1021 |
| #define | ROQ_CHUNK_HEADER_SIZE 8 /* Size of a RoQ chunk header */ |
| #define | ROQ_MAX_CHUNK_SIZE 65536 /* Max size of a RoQ chunk */ |
| #define | ROQ_SOUND_RATE 22050 |
| #define | ROQ_ID_FCC 0x4000 |
| #define | ROQ_ID_SLD 0x8000 |
| #define | ROQ_ID_CCC 0xC000 |
| #define | ROQCIN (*((roqCinematic_t*)cin->codecData)) |
Variables | |
| static short | roqCin_sqrTable [256] |
| static yuvTable_t | roqCin_yuvTable |
| static int | roqCin_quadOffsets2 [2][4] |
| static int | roqCin_quadOffsets4 [2][4] |
Definition in file cl_cinematic_roq.cpp.
| #define ROQ_CHUNK_HEADER_SIZE 8 /* Size of a RoQ chunk header */ |
Definition at line 49 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk(), and CIN_ROQ_OpenCinematic().
| #define ROQ_ID_CCC 0xC000 |
Definition at line 57 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeVideo().
| #define ROQ_ID_FCC 0x4000 |
Definition at line 55 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeVideo().
| #define ROQ_ID_SLD 0x8000 |
Definition at line 56 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeVideo().
| #define ROQ_IDENT 0x1084 |
Definition at line 41 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk(), and CIN_ROQ_OpenCinematic().
| #define ROQ_MAX_CHUNK_SIZE 65536 /* Max size of a RoQ chunk */ |
Definition at line 51 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk(), CIN_ROQ_DecodeSoundMono(), and CIN_ROQ_DecodeSoundStereo().
| #define ROQ_QUAD_CODEBOOK 0x1002 |
Definition at line 44 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk().
| #define ROQ_QUAD_INFO 0x1001 |
Definition at line 43 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk().
| #define ROQ_QUAD_VQ 0x1011 |
Definition at line 45 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk().
| #define ROQ_SOUND_MONO 0x1020 |
Definition at line 46 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk().
| #define ROQ_SOUND_RATE 22050 |
Definition at line 53 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeSoundMono(), and CIN_ROQ_DecodeSoundStereo().
| #define ROQ_SOUND_STEREO 0x1021 |
Definition at line 47 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeChunk().
| #define ROQCIN (*((roqCinematic_t*)cin->codecData)) |
Definition at line 102 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_ApplyMotion4x4(), CIN_ROQ_ApplyMotion8x8(), CIN_ROQ_ApplyVector2x2(), CIN_ROQ_ApplyVector4x4(), CIN_ROQ_CloseCinematic(), CIN_ROQ_DecodeChunk(), CIN_ROQ_DecodeCodeBook(), CIN_ROQ_DecodeInfo(), CIN_ROQ_DecodeSoundMono(), CIN_ROQ_DecodeSoundStereo(), CIN_ROQ_DecodeVideo(), CIN_ROQ_DrawCinematic(), and CIN_ROQ_OpenCinematic().
Definition at line 181 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeVideo().
Definition at line 199 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeVideo().
|
static |
Definition at line 121 of file cl_cinematic_roq.cpp.
References i, ROQCIN, and roqCin_quadOffsets2.
Referenced by CIN_ROQ_DecodeVideo().
|
static |
Definition at line 142 of file cl_cinematic_roq.cpp.
References i, ROQCIN, and roqCin_quadOffsets4.
Referenced by CIN_ROQ_DecodeVideo().
Clamps integer value into byte.
Definition at line 107 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeCodeBook().
| void CIN_ROQ_CloseCinematic | ( | cinematic_t * | cin | ) |
Definition at line 525 of file cl_cinematic_roq.cpp.
References cinematic_t::codecData, Com_Printf(), FS_CloseFile(), M_StopMusicStream(), Mem_Free, and ROQCIN.
Referenced by CIN_CloseCinematic(), and CIN_ROQ_OpenCinematic().
|
static |
Definition at line 444 of file cl_cinematic_roq.cpp.
References CIN_ROQ_DecodeCodeBook(), CIN_ROQ_DecodeInfo(), CIN_ROQ_DecodeSoundMono(), CIN_ROQ_DecodeSoundStereo(), CIN_ROQ_DecodeVideo(), CL_Milliseconds(), Com_Printf(), FS_Read(), LittleLong, LittleShort, cinematic_t::noSound, cinematic_t::replay, ROQ_CHUNK_HEADER_SIZE, ROQ_IDENT, ROQ_MAX_CHUNK_SIZE, ROQ_QUAD_CODEBOOK, ROQ_QUAD_INFO, ROQ_QUAD_VQ, ROQ_SOUND_MONO, ROQ_SOUND_STEREO, ROQCIN, and cinematic_t::status.
Referenced by CIN_ROQ_RunCinematic().
|
static |
Definition at line 243 of file cl_cinematic_roq.cpp.
References CIN_ROQ_ClampByte(), data, i, ROQCIN, and roqCin_yuvTable.
Referenced by CIN_ROQ_DecodeChunk().
|
static |
Definition at line 221 of file cl_cinematic_roq.cpp.
References cl_genericPool, Com_Error(), data, ERR_DROP, LittleShort, Mem_PoolAllocTypeN, Q_IsPowerOfTwo(), and ROQCIN.
Referenced by CIN_ROQ_DecodeChunk().
|
static |
Definition at line 403 of file cl_cinematic_roq.cpp.
References data, i, M_AddToSampleBuffer(), ROQ_MAX_CHUNK_SIZE, ROQ_SOUND_RATE, ROQCIN, and roqCin_sqrTable.
Referenced by CIN_ROQ_DecodeChunk().
|
static |
Definition at line 422 of file cl_cinematic_roq.cpp.
References data, i, M_AddToSampleBuffer(), ROQ_MAX_CHUNK_SIZE, ROQ_SOUND_RATE, ROQCIN, and roqCin_sqrTable.
Referenced by CIN_ROQ_DecodeChunk().
|
static |
Definition at line 301 of file cl_cinematic_roq.cpp.
References CIN_ROQ_ApplyMotion4x4(), CIN_ROQ_ApplyMotion8x8(), CIN_ROQ_ApplyVector2x2(), CIN_ROQ_ApplyVector4x4(), data, i, index, LittleShort, ROQ_ID_CCC, ROQ_ID_FCC, ROQ_ID_SLD, ROQCIN, and roqCin_quadOffsets4.
Referenced by CIN_ROQ_DecodeChunk().
|
static |
Definition at line 504 of file cl_cinematic_roq.cpp.
References CIN_STATUS_NONE, cinematic_t::h, R_DrawTexture(), R_UploadData(), ROQCIN, cinematic_t::status, cinematic_t::w, cinematic_t::x, and cinematic_t::y.
Referenced by CIN_ROQ_RunCinematic().
Definition at line 604 of file cl_cinematic_roq.cpp.
References f, i, Q_ftol, roqCin_quadOffsets2, roqCin_quadOffsets4, roqCin_sqrTable, and roqCin_yuvTable.
Referenced by CIN_Init().
| int CIN_ROQ_OpenCinematic | ( | cinematic_t * | cin, |
| const char * | fileName ) |
Definition at line 541 of file cl_cinematic_roq.cpp.
References CIN_ROQ_CloseCinematic(), CINEMATIC_TYPE_ROQ, cinematic_t::cinematicType, CL_Milliseconds(), cinematic_t::codecData, Com_Printf(), FILE_READ, roqChunk_t::flags, FS_CloseFile(), FS_OpenFile(), FS_Read(), roqChunk_t::id, LittleLong, LittleShort, Mem_Free, Mem_PoolAllocType, cinematic_t::name, OBJZERO, Q_strncpyz(), ROQ_CHUNK_HEADER_SIZE, ROQ_IDENT, ROQCIN, roqChunk_t::size, and vid_genericPool.
Referenced by CIN_OpenCinematic().
| bool CIN_ROQ_RunCinematic | ( | cinematic_t * | cin | ) |
Definition at line 517 of file cl_cinematic_roq.cpp.
References CIN_ROQ_DecodeChunk(), and CIN_ROQ_DrawCinematic().
Referenced by CIN_RunCinematic().
|
static |
Definition at line 99 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_ApplyVector2x2(), and CIN_ROQ_Init().
|
static |
Definition at line 100 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_ApplyVector4x4(), CIN_ROQ_DecodeVideo(), and CIN_ROQ_Init().
|
static |
Definition at line 96 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeSoundMono(), CIN_ROQ_DecodeSoundStereo(), and CIN_ROQ_Init().
|
static |
Definition at line 97 of file cl_cinematic_roq.cpp.
Referenced by CIN_ROQ_DecodeCodeBook(), and CIN_ROQ_Init().