doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Enumerations | Functions
jdmarker.c File Reference
#include "jinclude.h"
#include "jpeglib.h"

Go to the source code of this file.

Macros

#define JPEG_INTERNALS
 
#define INPUT_VARS(cinfo)
 
#define INPUT_SYNC(cinfo)
 
#define INPUT_RELOAD(cinfo)
 
#define MAKE_BYTE_AVAIL(cinfo, action)
 
#define INPUT_BYTE(cinfo, V, action)
 
#define INPUT_2BYTES(cinfo, V, action)
 
#define JFIF_LEN   14
 
#define ADOBE_LEN   12
 

Enumerations

enum  JPEG_MARKER {
  M_SOF0 = 0xc0, M_SOF1 = 0xc1, M_SOF2 = 0xc2, M_SOF3 = 0xc3,
  M_SOF5 = 0xc5, M_SOF6 = 0xc6, M_SOF7 = 0xc7, M_JPG = 0xc8,
  M_SOF9 = 0xc9, M_SOF10 = 0xca, M_SOF11 = 0xcb, M_SOF13 = 0xcd,
  M_SOF14 = 0xce, M_SOF15 = 0xcf, M_DHT = 0xc4, M_DAC = 0xcc,
  M_RST0 = 0xd0, M_RST1 = 0xd1, M_RST2 = 0xd2, M_RST3 = 0xd3,
  M_RST4 = 0xd4, M_RST5 = 0xd5, M_RST6 = 0xd6, M_RST7 = 0xd7,
  M_SOI = 0xd8, M_EOI = 0xd9, M_SOS = 0xda, M_DQT = 0xdb,
  M_DNL = 0xdc, M_DRI = 0xdd, M_DHP = 0xde, M_EXP = 0xdf,
  M_APP0 = 0xe0, M_APP1 = 0xe1, M_APP2 = 0xe2, M_APP3 = 0xe3,
  M_APP4 = 0xe4, M_APP5 = 0xe5, M_APP6 = 0xe6, M_APP7 = 0xe7,
  M_APP8 = 0xe8, M_APP9 = 0xe9, M_APP10 = 0xea, M_APP11 = 0xeb,
  M_APP12 = 0xec, M_APP13 = 0xed, M_APP14 = 0xee, M_APP15 = 0xef,
  M_JPG0 = 0xf0, M_JPG13 = 0xfd, M_COM = 0xfe, M_TEM = 0x01,
  M_ERROR = 0x100, M_SOF0 = 0xc0, M_SOF1 = 0xc1, M_SOF2 = 0xc2,
  M_SOF3 = 0xc3, M_SOF5 = 0xc5, M_SOF6 = 0xc6, M_SOF7 = 0xc7,
  M_JPG = 0xc8, M_SOF9 = 0xc9, M_SOF10 = 0xca, M_SOF11 = 0xcb,
  M_SOF13 = 0xcd, M_SOF14 = 0xce, M_SOF15 = 0xcf, M_DHT = 0xc4,
  M_DAC = 0xcc, M_RST0 = 0xd0, M_RST1 = 0xd1, M_RST2 = 0xd2,
  M_RST3 = 0xd3, M_RST4 = 0xd4, M_RST5 = 0xd5, M_RST6 = 0xd6,
  M_RST7 = 0xd7, M_SOI = 0xd8, M_EOI = 0xd9, M_SOS = 0xda,
  M_DQT = 0xdb, M_DNL = 0xdc, M_DRI = 0xdd, M_DHP = 0xde,
  M_EXP = 0xdf, M_APP0 = 0xe0, M_APP1 = 0xe1, M_APP2 = 0xe2,
  M_APP3 = 0xe3, M_APP4 = 0xe4, M_APP5 = 0xe5, M_APP6 = 0xe6,
  M_APP7 = 0xe7, M_APP8 = 0xe8, M_APP9 = 0xe9, M_APP10 = 0xea,
  M_APP11 = 0xeb, M_APP12 = 0xec, M_APP13 = 0xed, M_APP14 = 0xee,
  M_APP15 = 0xef, M_JPG0 = 0xf0, M_JPG13 = 0xfd, M_COM = 0xfe,
  M_TEM = 0x01, M_ERROR = 0x100
}
 

Functions

LOCAL boolean get_soi (j_decompress_ptr cinfo)
 
LOCAL boolean get_sof (j_decompress_ptr cinfo, boolean is_prog, boolean is_arith)
 
LOCAL boolean get_sos (j_decompress_ptr cinfo)
 
METHODDEF boolean get_app0 (j_decompress_ptr cinfo)
 
METHODDEF boolean get_app14 (j_decompress_ptr cinfo)
 
LOCAL boolean get_dac (j_decompress_ptr cinfo)
 
LOCAL boolean get_dht (j_decompress_ptr cinfo)
 
LOCAL boolean get_dqt (j_decompress_ptr cinfo)
 
LOCAL boolean get_dri (j_decompress_ptr cinfo)
 
METHODDEF boolean skip_variable (j_decompress_ptr cinfo)
 
LOCAL boolean next_marker (j_decompress_ptr cinfo)
 
LOCAL boolean first_marker (j_decompress_ptr cinfo)
 
METHODDEF int read_markers (j_decompress_ptr cinfo)
 
METHODDEF boolean read_restart_marker (j_decompress_ptr cinfo)
 
GLOBAL boolean jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired)
 
METHODDEF void reset_marker_reader (j_decompress_ptr cinfo)
 
GLOBAL void jinit_marker_reader (j_decompress_ptr cinfo)
 

Macro Definition Documentation

#define ADOBE_LEN   12
#define INPUT_2BYTES (   cinfo,
  V,
  action 
)
Value:
MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
V = ((unsigned int) GETJOCTET(*next_input_byte++)) << 8; \
MAKE_BYTE_AVAIL(cinfo,action); \
V += GETJOCTET(*next_input_byte++); )
#define GETJOCTET(value)
Definition: jmorecfg.h:119
case const int
Definition: Callbacks.cpp:52
Definition: eax4.h:1413
#define MAKESTMT(stuff)
Definition: jerror.h:223
#define MAKE_BYTE_AVAIL(cinfo, action)
Definition: jdmarker.c:116

Definition at line 134 of file jdmarker.c.

#define INPUT_BYTE (   cinfo,
  V,
  action 
)
Value:
MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
V = GETJOCTET(*next_input_byte++); )
#define GETJOCTET(value)
Definition: jmorecfg.h:119
Definition: eax4.h:1413
#define MAKESTMT(stuff)
Definition: jerror.h:223
#define MAKE_BYTE_AVAIL(cinfo, action)
Definition: jdmarker.c:116

Definition at line 127 of file jdmarker.c.

#define INPUT_RELOAD (   cinfo)
Value:
( next_input_byte = datasrc->next_input_byte, \
bytes_in_buffer = datasrc->bytes_in_buffer )

Definition at line 108 of file jdmarker.c.

#define INPUT_SYNC (   cinfo)
Value:
( datasrc->next_input_byte = next_input_byte, \
datasrc->bytes_in_buffer = bytes_in_buffer )

Definition at line 103 of file jdmarker.c.

#define INPUT_VARS (   cinfo)
Value:
struct jpeg_source_mgr * datasrc = (cinfo)->src; \
size_t bytes_in_buffer = datasrc->bytes_in_buffer
#define const
Definition: getdate.c:251
GLuint src
Definition: glext.h:5390
size_t bytes_in_buffer
Definition: jpeglib.h:714
char JOCTET
Definition: jmorecfg.h:115
const JOCTET * next_input_byte
Definition: jpeglib.h:713

Definition at line 97 of file jdmarker.c.

#define JFIF_LEN   14
#define JPEG_INTERNALS

Definition at line 15 of file jdmarker.c.

#define MAKE_BYTE_AVAIL (   cinfo,
  action 
)
Value:
if (bytes_in_buffer == 0) { \
if (! (*datasrc->fill_input_buffer) (cinfo)) \
{ action; } \
INPUT_RELOAD(cinfo); \
} \
size_t bytes_in_buffer
Definition: jpeglib.h:714
#define INPUT_RELOAD(cinfo)
Definition: jdmarker.c:108
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 116 of file jdmarker.c.

Enumeration Type Documentation

Enumerator
M_SOF0 
M_SOF1 
M_SOF2 
M_SOF3 
M_SOF5 
M_SOF6 
M_SOF7 
M_JPG 
M_SOF9 
M_SOF10 
M_SOF11 
M_SOF13 
M_SOF14 
M_SOF15 
M_DHT 
M_DAC 
M_RST0 
M_RST1 
M_RST2 
M_RST3 
M_RST4 
M_RST5 
M_RST6 
M_RST7 
M_SOI 
M_EOI 
M_SOS 
M_DQT 
M_DNL 
M_DRI 
M_DHP 
M_EXP 
M_APP0 
M_APP1 
M_APP2 
M_APP3 
M_APP4 
M_APP5 
M_APP6 
M_APP7 
M_APP8 
M_APP9 
M_APP10 
M_APP11 
M_APP12 
M_APP13 
M_APP14 
M_APP15 
M_JPG0 
M_JPG13 
M_COM 
M_TEM 
M_ERROR 
M_SOF0 
M_SOF1 
M_SOF2 
M_SOF3 
M_SOF5 
M_SOF6 
M_SOF7 
M_JPG 
M_SOF9 
M_SOF10 
M_SOF11 
M_SOF13 
M_SOF14 
M_SOF15 
M_DHT 
M_DAC 
M_RST0 
M_RST1 
M_RST2 
M_RST3 
M_RST4 
M_RST5 
M_RST6 
M_RST7 
M_SOI 
M_EOI 
M_SOS 
M_DQT 
M_DNL 
M_DRI 
M_DHP 
M_EXP 
M_APP0 
M_APP1 
M_APP2 
M_APP3 
M_APP4 
M_APP5 
M_APP6 
M_APP7 
M_APP8 
M_APP9 
M_APP10 
M_APP11 
M_APP12 
M_APP13 
M_APP14 
M_APP15 
M_JPG0 
M_JPG13 
M_COM 
M_TEM 
M_ERROR 

Definition at line 20 of file jdmarker.c.

Function Documentation

LOCAL boolean first_marker ( j_decompress_ptr  cinfo)

Definition at line 696 of file jdmarker.c.

METHODDEF boolean get_app0 ( j_decompress_ptr  cinfo)

Definition at line 338 of file jdmarker.c.

METHODDEF boolean get_app14 ( j_decompress_ptr  cinfo)

Definition at line 397 of file jdmarker.c.

LOCAL boolean get_dac ( j_decompress_ptr  cinfo)

Definition at line 444 of file jdmarker.c.

LOCAL boolean get_dht ( j_decompress_ptr  cinfo)

Definition at line 481 of file jdmarker.c.

LOCAL boolean get_dqt ( j_decompress_ptr  cinfo)

Definition at line 546 of file jdmarker.c.

LOCAL boolean get_dri ( j_decompress_ptr  cinfo)

Definition at line 598 of file jdmarker.c.

LOCAL boolean get_sof ( j_decompress_ptr  cinfo,
boolean  is_prog,
boolean  is_arith 
)

Definition at line 204 of file jdmarker.c.

LOCAL boolean get_soi ( j_decompress_ptr  cinfo)

Definition at line 166 of file jdmarker.c.

LOCAL boolean get_sos ( j_decompress_ptr  cinfo)

Definition at line 268 of file jdmarker.c.

GLOBAL void jinit_marker_reader ( j_decompress_ptr  cinfo)

Definition at line 1033 of file jdmarker.c.

GLOBAL boolean jpeg_resync_to_restart ( j_decompress_ptr  cinfo,
int  desired 
)

Definition at line 966 of file jdmarker.c.

LOCAL boolean next_marker ( j_decompress_ptr  cinfo)

Definition at line 649 of file jdmarker.c.

METHODDEF int read_markers ( j_decompress_ptr  cinfo)

Definition at line 727 of file jdmarker.c.

METHODDEF boolean read_restart_marker ( j_decompress_ptr  cinfo)

Definition at line 887 of file jdmarker.c.

METHODDEF void reset_marker_reader ( j_decompress_ptr  cinfo)

Definition at line 1016 of file jdmarker.c.

METHODDEF boolean skip_variable ( j_decompress_ptr  cinfo)

Definition at line 622 of file jdmarker.c.