w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

jdmarker.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
Include dependency graph for jdmarker.c:

Go to the source code of this file.

Classes

struct  my_marker_reader
 

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 get_dac(cinfo)   skip_variable(cinfo)
 
#define APP0_DATA_LEN   14 /* Length of interesting data in APP0 */
 
#define APP14_DATA_LEN   12 /* Length of interesting data in APP14 */
 
#define APPN_DATA_LEN   14 /* Must be the largest of the above!! */
 

Typedefs

typedef my_marker_readermy_marker_ptr
 

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 , 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 ,
  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 , 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

static boolean get_soi (j_decompress_ptr cinfo)
 
static boolean get_sof (j_decompress_ptr cinfo, boolean is_prog, boolean is_arith)
 
static boolean get_sos (j_decompress_ptr cinfo)
 
static boolean get_dht (j_decompress_ptr cinfo)
 
static boolean get_dqt (j_decompress_ptr cinfo)
 
static boolean get_dri (j_decompress_ptr cinfo)
 
static void examine_app0 (j_decompress_ptr cinfo, JOCTET *data, unsigned int datalen, INT32 remaining)
 
static void examine_app14 (j_decompress_ptr cinfo, JOCTET *data, unsigned int datalen, INT32 remaining)
 
static boolean get_interesting_appn (j_decompress_ptr cinfo)
 
static boolean save_marker (j_decompress_ptr cinfo)
 
static boolean skip_variable (j_decompress_ptr cinfo)
 
static boolean next_marker (j_decompress_ptr cinfo)
 
static boolean first_marker (j_decompress_ptr cinfo)
 
static int read_markers (j_decompress_ptr cinfo)
 
static boolean read_restart_marker (j_decompress_ptr cinfo)
 
boolean jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired)
 
static void reset_marker_reader (j_decompress_ptr cinfo)
 
void jinit_marker_reader (j_decompress_ptr cinfo)
 
void jpeg_save_markers (j_decompress_ptr cinfo, int marker_code, unsigned int length_limit)
 
void jpeg_set_marker_processor (j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)
 

Macro Definition Documentation

◆ APP0_DATA_LEN

#define APP0_DATA_LEN   14 /* Length of interesting data in APP0 */

Definition at line 578 of file jdmarker.c.

◆ APP14_DATA_LEN

#define APP14_DATA_LEN   12 /* Length of interesting data in APP14 */

Definition at line 579 of file jdmarker.c.

◆ APPN_DATA_LEN

#define APPN_DATA_LEN   14 /* Must be the largest of the above!! */

Definition at line 580 of file jdmarker.c.

◆ get_dac

#define get_dac (   cinfo)    skip_variable(cinfo)

Definition at line 413 of file jdmarker.c.

◆ INPUT_2BYTES

#define INPUT_2BYTES (   cinfo,
  V,
  action 
)
Value:
bytes_in_buffer--; \
V = ((unsigned int) GETJOCTET(*next_input_byte++)) << 8; \
MAKE_BYTE_AVAIL(cinfo,action); \
bytes_in_buffer--; \
V += GETJOCTET(*next_input_byte++); )
#define MAKE_BYTE_AVAIL(cinfo, action)
Definition: jdmarker.c:138
#define MAKESTMT(stuff)
Definition: jerror.h:235
#define GETJOCTET(value)
Definition: jmorecfg.h:119
action
Definition: epdf.c:220
return() int(((double) *(font_tbl[cur_fnt].wtbl+(int)(*(font_tbl[cur_fnt].char_wi+(int)(ch - font_tbl[cur_fnt].char_f)% 256)))/(double)(1L<< 20)) *(double) font_tbl[cur_fnt].scale)

Definition at line 156 of file jdmarker.c.

◆ INPUT_BYTE

#define INPUT_BYTE (   cinfo,
  V,
  action 
)
Value:
bytes_in_buffer--; \
V = GETJOCTET(*next_input_byte++); )

Definition at line 148 of file jdmarker.c.

◆ INPUT_RELOAD

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

Definition at line 130 of file jdmarker.c.

◆ INPUT_SYNC

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

Definition at line 125 of file jdmarker.c.

◆ INPUT_VARS

#define INPUT_VARS (   cinfo)
Value:
struct jpeg_source_mgr * datasrc = (cinfo)->src; \
const JOCTET * next_input_byte = datasrc->next_input_byte; \
size_t bytes_in_buffer = datasrc->bytes_in_buffer
char JOCTET
Definition: jmorecfg.h:115
const JOCTET * next_input_byte
Definition: jpeglib.h:726
size_t bytes_in_buffer
Definition: jpeglib.h:727

Definition at line 119 of file jdmarker.c.

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 15 of file jdmarker.c.

◆ MAKE_BYTE_AVAIL

#define MAKE_BYTE_AVAIL (   cinfo,
  action 
)
Value:
if (bytes_in_buffer == 0) { \
if (! (*datasrc->fill_input_buffer) (cinfo)) \
{ action; } \
INPUT_RELOAD(cinfo); \
}

Definition at line 138 of file jdmarker.c.

Typedef Documentation

◆ my_marker_ptr

Definition at line 107 of file jdmarker.c.

Enumeration Type Documentation

◆ JPEG_MARKER

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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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

◆ examine_app0()

◆ examine_app14()

static void examine_app14 ( j_decompress_ptr  cinfo,
JOCTET data,
unsigned int  datalen,
INT32  remaining 
)
static

Definition at line 660 of file jdmarker.c.

References APP14_DATA_LEN, data, GETJOCTET, JTRC_ADOBE, JTRC_APP14, TRACEMS1, TRACEMS4, transform, TRUE, and version.

Referenced by get_interesting_appn(), and save_marker().

◆ first_marker()

static boolean first_marker ( j_decompress_ptr  cinfo)
static

Definition at line 921 of file jdmarker.c.

References c, c2, ERREXIT2, FALSE, INPUT_BYTE, INPUT_SYNC, INPUT_VARS, JERR_NO_SOI, M_SOI, and TRUE.

Referenced by read_markers().

◆ get_dht()

◆ get_dqt()

◆ get_dri()

static boolean get_dri ( j_decompress_ptr  cinfo)
static

Definition at line 548 of file jdmarker.c.

References ERREXIT, FALSE, INPUT_2BYTES, INPUT_SYNC, INPUT_VARS, JERR_BAD_LENGTH, JTRC_DRI, length, TRACEMS1, and TRUE.

Referenced by read_markers().

◆ get_interesting_appn()

◆ get_sof()

◆ get_soi()

static boolean get_soi ( j_decompress_ptr  cinfo)
static

Definition at line 197 of file jdmarker.c.

References ERREXIT, FALSE, i, JCS_UNKNOWN, JERR_SOI_DUPLICATE, JTRC_SOI, NUM_ARITH_TBLS, TRACEMS, and TRUE.

Referenced by read_markers().

◆ get_sos()

◆ jinit_marker_reader()

◆ jpeg_resync_to_restart()

boolean jpeg_resync_to_restart ( j_decompress_ptr  cinfo,
int  desired 
)

◆ jpeg_save_markers()

void jpeg_save_markers ( j_decompress_ptr  cinfo,
int  marker_code,
unsigned int  length_limit 
)

◆ jpeg_set_marker_processor()

void jpeg_set_marker_processor ( j_decompress_ptr  cinfo,
int  marker_code,
jpeg_marker_parser_method  routine 
)

Definition at line 1349 of file jdmarker.c.

Referenced by main(), and setup_jpeg_input().

◆ next_marker()

static boolean next_marker ( j_decompress_ptr  cinfo)
static

◆ read_markers()

◆ read_restart_marker()

static boolean read_restart_marker ( j_decompress_ptr  cinfo)
static

Definition at line 1113 of file jdmarker.c.

References FALSE, JTRC_RST, M_RST0, next_marker(), TRACEMS1, and TRUE.

Referenced by jinit_marker_reader().

◆ reset_marker_reader()

static void reset_marker_reader ( j_decompress_ptr  cinfo)
static

Definition at line 1242 of file jdmarker.c.

References FALSE, NULL, and my_marker_writer::pub.

Referenced by jinit_marker_reader().

◆ save_marker()

◆ skip_variable()

static boolean skip_variable ( j_decompress_ptr  cinfo)
static