Go to the documentation of this file.
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);
219 for (
i=0 ;
i<numhnodes ;
i++)
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;
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)];
431 byte samples[22050/14*4];
432 byte compressed[0x20000];
436 int start, end,
count;
458 if (size >
sizeof(compressed) || size < 1)
471 in.
data = compressed;
588 dot = strstr (arg,
".");
589 if (dot && !strcmp (dot,
".pcx"))
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]
qboolean SCR_DrawCinematic(void)
void SCR_PlayCinematic(char *arg)
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 SCR_RunCinematic(void)
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)