40 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE,
51 void * client_data = cinfo->client_data;
54 cinfo->client_data = client_data;
56 cinfo->is_decompressor =
FALSE;
62 cinfo->progress =
NULL;
65 cinfo->comp_info =
NULL;
68 cinfo->quant_tbl_ptrs[
i] =
NULL;
69 cinfo->q_scale_factor[
i] = 100;
73 cinfo->dc_huff_tbl_ptrs[
i] =
NULL;
74 cinfo->ac_huff_tbl_ptrs[
i] =
NULL;
82 cinfo->script_space =
NULL;
84 cinfo->input_gamma = 1.0;
134 if ((qtbl = cinfo->quant_tbl_ptrs[
i]) !=
NULL)
139 if ((htbl = cinfo->dc_huff_tbl_ptrs[
i]) !=
NULL)
141 if ((htbl = cinfo->ac_huff_tbl_ptrs[
i]) !=
NULL)
162 if (cinfo->next_scanline < cinfo->image_height)
163 ERREXIT(cinfo, JERR_TOO_LITTLE_DATA);
164 (*cinfo->master->finish_pass) (cinfo);
166 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
168 while (! cinfo->master->is_last_pass) {
169 (*cinfo->master->prepare_for_pass) (cinfo);
170 for (iMCU_row = 0; iMCU_row < cinfo->total_iMCU_rows; iMCU_row++) {
171 if (cinfo->progress !=
NULL) {
172 cinfo->progress->pass_counter = (
long) iMCU_row;
173 cinfo->progress->pass_limit = (
long) cinfo->total_iMCU_rows;
174 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
180 ERREXIT(cinfo, JERR_CANT_SUSPEND);
182 (*cinfo->master->finish_pass) (cinfo);
185 (*cinfo->marker->write_file_trailer) (cinfo);
186 (*cinfo->dest->term_destination) (cinfo);
205 if (cinfo->next_scanline != 0 ||
209 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
211 (*cinfo->marker->write_marker_header) (cinfo,
marker,
datalen);
214 (*write_marker_byte) (cinfo, *
dataptr);
224 if (cinfo->next_scanline != 0 ||
228 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
230 (*cinfo->marker->write_marker_header) (cinfo,
marker,
datalen);
236 (*cinfo->marker->write_marker_byte) (cinfo,
val);
265 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
269 (*cinfo->dest->init_destination) (cinfo);
273 (*cinfo->marker->write_tables_only) (cinfo);
275 (*cinfo->dest->term_destination) (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_write_m_byte(j_compress_ptr cinfo, int val)
jpeg_destroy_compress(j_compress_ptr cinfo)
jpeg_write_m_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
jpeg_finish_compress(j_compress_ptr cinfo)
jpeg_write_tables(j_compress_ptr cinfo)
jpeg_write_marker(j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)
jpeg_abort_compress(j_compress_ptr cinfo)
write_marker_byte(j_compress_ptr cinfo, int val)
jinit_marker_writer(j_compress_ptr cinfo)
jpeg_abort(j_common_ptr cinfo)
jpeg_destroy(j_common_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
#define ERREXIT2(cinfo, code, p1, p2)
jinit_memory_mgr(j_common_ptr cinfo)
#define JMETHOD(type, methodname, arglist)
struct jpeg_common_struct * j_common_ptr
int const JOCTET unsigned int datalen
int const JOCTET * dataptr
const int jpeg_natural_order[DCTSIZE2+16]
#define MEMZERO(addr, type, size)