Go to the source code of this file.
◆ Huff1Decompress()
Definition at line 298 of file cl_cin.c.
306 int *hnodes, *hnodesbase;
326 hnodes = hnodesbase + (nodenum<<9);
332 nodenum = hnodes[nodenum*2 + (inbyte&1)];
337 hnodes = hnodesbase + (nodenum<<9);
343 nodenum = hnodes[nodenum*2 + (inbyte&1)];
348 hnodes = hnodesbase + (nodenum<<9);
354 nodenum = hnodes[nodenum*2 + (inbyte&1)];
359 hnodes = hnodesbase + (nodenum<<9);
365 nodenum = hnodes[nodenum*2 + (inbyte&1)];
370 hnodes = hnodesbase + (nodenum<<9);
376 nodenum = hnodes[nodenum*2 + (inbyte&1)];
381 hnodes = hnodesbase + (nodenum<<9);
387 nodenum = hnodes[nodenum*2 + (inbyte&1)];
392 hnodes = hnodesbase + (nodenum<<9);
398 nodenum = hnodes[nodenum*2 + (inbyte&1)];
403 hnodes = hnodesbase + (nodenum<<9);
409 nodenum = hnodes[nodenum*2 + (inbyte&1)];
Referenced by SCR_ReadNextFrame().
◆ Huff1TableInit()
Definition at line 247 of file cl_cin.c.
251 int *node, *nodebase;
258 for (prev=0 ; prev<256 ; prev++)
265 for (
j=0 ;
j<256 ;
j++)
272 while (numhnodes != 511)
274 node = nodebase + (numhnodes-256)*2;
Referenced by SCR_PlayCinematic().
◆ SCR_DrawCinematic()
◆ SCR_FinishCinematic()
◆ SCR_LoadPCX()
void SCR_LoadPCX |
( |
char * |
filename, |
|
|
byte ** |
pic, |
|
|
byte ** |
palette, |
|
|
int * |
width, |
|
|
int * |
height |
|
) |
| |
Definition at line 64 of file cl_cin.c.
70 int dataByte, runLength;
108 memcpy (*palette, (
byte *)pcx + len - 768, 768);
118 for (
x=0 ;
x<=pcx->
xmax ; )
122 if((dataByte & 0xC0) == 0xC0)
124 runLength = dataByte & 0x3F;
130 while(runLength-- > 0)
136 if ( raw - (
byte *)pcx > len)
138 Com_Printf (
"PCX file %s was malformed", filename);
Referenced by SCR_PlayCinematic().
◆ SCR_PlayCinematic()
void SCR_PlayCinematic |
( |
char * |
arg | ) |
|
◆ SCR_ReadNextFrame()
◆ SCR_RunCinematic()
◆ SCR_StopCinematic()
◆ SmallestNode1()
int SmallestNode1 |
( |
int |
numhnodes | ) |
|
◆ cin
void SCR_LoadPCX(char *filename, byte **pic, byte **palette, int *width, int *height)
void FS_Read(void *buffer, int len, FILE *f)
void SCR_EndLoadingPlaque(void)
void Huff1TableInit(void)
void(* DrawStretchRaw)(int x, int y, int w, int h, int cols, int rows, byte *data)
void SCR_BeginLoadingPlaque(void)
int FS_FOpenFile(char *filename, FILE **file)
char * va(char *format,...)
void SZ_Print(sizebuf_t *buf, char *data)
void CL_Snd_Restart_f(void)
char cinematicpalette[768]
byte * SCR_ReadNextFrame(void)
int FS_LoadFile(char *path, void **buffer)
void Cvar_SetValue(char *var_name, float value)
void(* CinematicSetPalette)(const unsigned char *palette)
void MSG_WriteByte(sizebuf_t *sb, int c)
void Miniaudio_Stop(void)
void Com_Error(int code, char *fmt,...)
void * Z_Malloc(int size)
qboolean cinematicpalette_active
void S_RawSamples(int samples, int rate, int width, int channels, byte *data)
void SCR_FinishCinematic(void)
int SmallestNode1(int numhnodes)
void FS_FreeFile(void *buffer)
void Com_Printf(char *fmt,...)
int Sys_Milliseconds(void)
void Com_sprintf(char *dest, int size, char *fmt,...)
cblock_t Huff1Decompress(cblock_t in)
void SCR_StopCinematic(void)
float Cvar_VariableValue(char *var_name)