40 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,
51 void * client_data = cinfo->client_data;
54 cinfo->client_data = client_data;
56 cinfo->is_decompressor =
TRUE;
62 cinfo->progress =
NULL;
66 cinfo->quant_tbl_ptrs[
i] =
NULL;
69 cinfo->dc_huff_tbl_ptrs[
i] =
NULL;
70 cinfo->ac_huff_tbl_ptrs[
i] =
NULL;
76 cinfo->marker_list =
NULL;
117 int cid0, cid1, cid2;
121 switch (cinfo->num_components) {
128 cid0 = cinfo->comp_info[0].component_id;
129 cid1 = cinfo->comp_info[1].component_id;
130 cid2 = cinfo->comp_info[2].component_id;
133 if (cid0 == 0x01 && cid1 == 0x02 && cid2 == 0x03)
135 else if (cid0 == 0x01 && cid1 == 0x22 && cid2 == 0x23)
137 else if (cid0 == 0x52 && cid1 == 0x47 && cid2 == 0x42)
138 cinfo->jpeg_color_space =
JCS_RGB;
139 else if (cid0 == 0x72 && cid1 == 0x67 && cid2 == 0x62)
141 else if (cinfo->saw_JFIF_marker)
143 else if (cinfo->saw_Adobe_marker) {
144 switch (cinfo->Adobe_transform) {
146 cinfo->jpeg_color_space =
JCS_RGB;
152 WARNMS1(cinfo, JWRN_ADOBE_XFORM, cinfo->Adobe_transform);
157 TRACEMS3(cinfo, 1, JTRC_UNKNOWN_IDS, cid0, cid1, cid2);
161 cinfo->out_color_space =
JCS_RGB;
165 if (cinfo->saw_Adobe_marker) {
166 switch (cinfo->Adobe_transform) {
174 WARNMS1(cinfo, JWRN_ADOBE_XFORM, cinfo->Adobe_transform);
192 cinfo->scale_num = cinfo->block_size;
193 cinfo->scale_denom = cinfo->block_size;
194 cinfo->output_gamma = 1.0;
195 cinfo->buffered_image =
FALSE;
196 cinfo->raw_data_out =
FALSE;
198 cinfo->do_fancy_upsampling =
TRUE;
199 cinfo->do_block_smoothing =
TRUE;
200 cinfo->quantize_colors =
FALSE;
203#ifdef QUANT_2PASS_SUPPORTED
204 cinfo->two_pass_quantize =
TRUE;
206 cinfo->two_pass_quantize =
FALSE;
208 cinfo->desired_number_of_colors = 256;
209 cinfo->colormap =
NULL;
211 cinfo->enable_1pass_quant =
FALSE;
212 cinfo->enable_external_quant =
FALSE;
213 cinfo->enable_2pass_quant =
FALSE;
251 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
296 switch (cinfo->global_state) {
299 (*cinfo->inputctl->reset_input_controller) (cinfo);
301 (*cinfo->src->init_source) (cinfo);
305 retcode = (*cinfo->inputctl->consume_input) (cinfo);
324 retcode = (*cinfo->inputctl->consume_input) (cinfo);
327 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
343 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
344 return cinfo->inputctl->eoi_reached;
358 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
359 return cinfo->inputctl->has_multiple_scans;
376 cinfo->global_state ==
DSTATE_RAW_OK) && ! cinfo->buffered_image) {
378 if (cinfo->output_scanline < cinfo->output_height)
379 ERREXIT(cinfo, JERR_TOO_LITTLE_DATA);
380 (*cinfo->master->finish_output_pass) (cinfo);
387 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
390 while (! cinfo->inputctl->eoi_reached) {
395 (*cinfo->src->term_source) (cinfo);
static const WCHAR version[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
jpeg_abort(j_common_ptr cinfo)
jpeg_destroy(j_common_ptr cinfo)
jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)
default_decompress_parms(j_decompress_ptr cinfo)
jpeg_abort_decompress(j_decompress_ptr cinfo)
jpeg_consume_input(j_decompress_ptr cinfo)
jpeg_destroy_decompress(j_decompress_ptr cinfo)
jpeg_has_multiple_scans(j_decompress_ptr cinfo)
jpeg_finish_decompress(j_decompress_ptr cinfo)
jpeg_read_header(j_decompress_ptr cinfo, boolean require_image)
jpeg_input_complete(j_decompress_ptr cinfo)
jinit_marker_reader(j_decompress_ptr cinfo)
#define WARNMS1(cinfo, code, p1)
#define ERREXIT1(cinfo, code, p1)
#define ERREXIT2(cinfo, code, p1, p2)
#define TRACEMS3(cinfo, lvl, code, p1, p2, p3)
jinit_memory_mgr(j_common_ptr cinfo)
#define JPEG_HEADER_TABLES_ONLY
#define MEMZERO(addr, type, size)