1 2 #define MAX_SCALE_SIZE 256 3 4 typedef struct 5 { 6 int s_rate; 7 int s_width; 8 int s_channels; 9 10 int width; 11 int height; 12 int p2_width; 13 int p2_height; 14 byte *pic; 15 byte *pic_pending; 16 17 // order 1 huffman stuff 18 int *hnodes1; // [256][256][2]; 19 int numhnodes1[256]; 20 21 int h_used[512]; 22 int h_count[512]; 23 24 byte *cinematic_file; 25 byte *offset; 26 byte *framestart; 27 28 int time; 29 int lastupload; 30 int frame; 31 byte rawpalette[768]; 32 unsigned palette[256]; 33 34 int texnum; 35 36 } cinematics_t; 37 38 cinematics_t *CIN_OpenCin (char *name); 39 void CIN_ProcessCins(void); 40 void CIN_FreeCin (int texnum); 41 42 extern cinematics_t *cin; 43