doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
Cinematic.cpp File Reference
#include "../idlib/precompiled.h"
#include "jpeg-6/jpeglib.h"
#include "tr_local.h"

Go to the source code of this file.

Classes

class  idCinematicLocal
 
struct  my_source_mgr
 

Macros

#define JPEG_INTERNALS
 
#define CIN_system   1
 
#define CIN_loop   2
 
#define CIN_hold   4
 
#define CIN_silent   8
 
#define CIN_shader   16
 
#define VQ2TO4(a, b, c, d)
 
#define VQ2TO2(a, b, c, d)
 
#define INPUT_BUF_SIZE   32768 /* choose an efficiently fread'able size */
 

Typedefs

typedef my_source_mgrmy_src_ptr
 

Functions

METHODDEF boolean fill_input_buffer (j_decompress_ptr cinfo)
 
METHODDEF void init_source (j_decompress_ptr cinfo)
 
METHODDEF void skip_input_data (j_decompress_ptr cinfo, long num_bytes)
 
METHODDEF void term_source (j_decompress_ptr cinfo)
 
GLOBAL void jpeg_memory_src (j_decompress_ptr cinfo, byte *infile, int size)
 
int JPEGBlit (byte *wStatus, byte *data, int datasize)
 

Variables

const int DEFAULT_CIN_WIDTH = 512
 
const int DEFAULT_CIN_HEIGHT = 512
 
const int MAXSIZE = 8
 
const int MINSIZE = 4
 
const int ROQ_FILE = 0x1084
 
const int ROQ_QUAD = 0x1000
 
const int ROQ_QUAD_INFO = 0x1001
 
const int ROQ_CODEBOOK = 0x1002
 
const int ROQ_QUAD_VQ = 0x1011
 
const int ROQ_QUAD_JPEG = 0x1012
 
const int ROQ_QUAD_HANG = 0x1013
 
const int ROQ_PACKET = 0x1030
 
const int ZA_SOUND_MONO = 0x1020
 
const int ZA_SOUND_STEREO = 0x1021
 
struct jpeg_error_mgr jerr
 

Macro Definition Documentation

#define CIN_hold   4

Definition at line 41 of file Cinematic.cpp.

#define CIN_loop   2

Definition at line 40 of file Cinematic.cpp.

#define CIN_shader   16

Definition at line 43 of file Cinematic.cpp.

#define CIN_silent   8

Definition at line 42 of file Cinematic.cpp.

#define CIN_system   1

Definition at line 39 of file Cinematic.cpp.

#define INPUT_BUF_SIZE   32768 /* choose an efficiently fread'able size */

Definition at line 1298 of file Cinematic.cpp.

#define JPEG_INTERNALS

Definition at line 32 of file Cinematic.cpp.

#define VQ2TO2 (   a,
  b,
  c,
 
)
Value:
{ \
*c++ = *a; \
*d++ = *a; \
*d++ = *a; \
*c++ = *b; \
*d++ = *b; \
*d++ = *b; \
*d++ = *a; \
*d++ = *a; \
*d++ = *b; \
*d++ = *b; \
a++; b++; }
const GLubyte * c
Definition: glext.h:4677
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662

Definition at line 916 of file Cinematic.cpp.

#define VQ2TO4 (   a,
  b,
  c,
 
)
Value:
{ \
*c++ = a[0]; \
*d++ = a[0]; \
*d++ = a[0]; \
*c++ = a[1]; \
*d++ = a[1]; \
*d++ = a[1]; \
*c++ = b[0]; \
*d++ = b[0]; \
*d++ = b[0]; \
*c++ = b[1]; \
*d++ = b[1]; \
*d++ = b[1]; \
*d++ = a[0]; \
*d++ = a[0]; \
*d++ = a[1]; \
*d++ = a[1]; \
*d++ = b[0]; \
*d++ = b[0]; \
*d++ = b[1]; \
*d++ = b[1]; \
a += 2; b += 2; }
const GLubyte * c
Definition: glext.h:4677
GLubyte GLubyte GLubyte a
Definition: glext.h:4662
GLubyte GLubyte b
Definition: glext.h:4662

Definition at line 893 of file Cinematic.cpp.

Typedef Documentation

Definition at line 1296 of file Cinematic.cpp.

Function Documentation

METHODDEF boolean fill_input_buffer ( j_decompress_ptr  cinfo)

Definition at line 1337 of file Cinematic.cpp.

METHODDEF void init_source ( j_decompress_ptr  cinfo)

Definition at line 1366 of file Cinematic.cpp.

GLOBAL void jpeg_memory_src ( j_decompress_ptr  cinfo,
byte infile,
int  size 
)

Definition at line 1432 of file Cinematic.cpp.

int JPEGBlit ( byte wStatus,
byte data,
int  datasize 
)

Definition at line 1465 of file Cinematic.cpp.

METHODDEF void skip_input_data ( j_decompress_ptr  cinfo,
long  num_bytes 
)

Definition at line 1390 of file Cinematic.cpp.

METHODDEF void term_source ( j_decompress_ptr  cinfo)

Definition at line 1425 of file Cinematic.cpp.

Variable Documentation

const int DEFAULT_CIN_HEIGHT = 512

Definition at line 118 of file Cinematic.cpp.

const int DEFAULT_CIN_WIDTH = 512

Definition at line 117 of file Cinematic.cpp.

struct jpeg_error_mgr jerr

Definition at line 1301 of file Cinematic.cpp.

const int MAXSIZE = 8

Definition at line 119 of file Cinematic.cpp.

const int MINSIZE = 4

Definition at line 120 of file Cinematic.cpp.

const int ROQ_CODEBOOK = 0x1002

Definition at line 125 of file Cinematic.cpp.

const int ROQ_FILE = 0x1084

Definition at line 122 of file Cinematic.cpp.

const int ROQ_PACKET = 0x1030

Definition at line 129 of file Cinematic.cpp.

const int ROQ_QUAD = 0x1000

Definition at line 123 of file Cinematic.cpp.

const int ROQ_QUAD_HANG = 0x1013

Definition at line 128 of file Cinematic.cpp.

const int ROQ_QUAD_INFO = 0x1001

Definition at line 124 of file Cinematic.cpp.

const int ROQ_QUAD_JPEG = 0x1012

Definition at line 127 of file Cinematic.cpp.

const int ROQ_QUAD_VQ = 0x1011

Definition at line 126 of file Cinematic.cpp.

const int ZA_SOUND_MONO = 0x1020

Definition at line 130 of file Cinematic.cpp.

const int ZA_SOUND_STEREO = 0x1021

Definition at line 131 of file Cinematic.cpp.