42 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
47 (*cinfo->
dest->init_destination) (cinfo);
100 if (srcinfo->quant_tbl_ptrs[
tblno] !=
NULL) {
102 if (*qtblptr ==
NULL)
105 srcinfo->quant_tbl_ptrs[
tblno]->quantval,
106 SIZEOF((*qtblptr)->quantval));
107 (*qtblptr)->sent_table =
FALSE;
118 ci < dstinfo->num_components; ci++, incomp++, outcomp++) {
131 slot_quant = srcinfo->quant_tbl_ptrs[
tblno];
133 if (c_quant !=
NULL) {
134 for (coefi = 0; coefi <
DCTSIZE2; coefi++) {
150 if (srcinfo->saw_JFIF_marker) {
151 if (srcinfo->JFIF_major_version == 1 ||
152 srcinfo->JFIF_major_version == 2) {
167 if (cinfo->min_DCT_h_scaled_size != cinfo->min_DCT_v_scaled_size)
169 cinfo->min_DCT_h_scaled_size, cinfo->min_DCT_v_scaled_size);
171 cinfo->block_size = cinfo->min_DCT_h_scaled_size;
191 if (cinfo->arith_code)
203 (*cinfo->mem->realize_virt_arrays) ((
j_common_ptr) cinfo);
209 (*cinfo->marker->write_file_header) (cinfo);
229 int MCU_rows_per_iMCU_row;
251 if (cinfo->comps_in_scan > 1) {
275 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
297 JDIMENSION last_MCU_col = cinfo->MCUs_per_row - 1;
298 JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
299 int blkn, ci, xindex, yindex,
yoffset, blockcnt;
307 for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
308 compptr = cinfo->cur_comp_info[ci];
309 buffer[ci] = (*cinfo->mem->access_virt_barray)
318 for (MCU_col_num = coef->
mcu_ctr; MCU_col_num < cinfo->MCUs_per_row;
322 for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
323 compptr = cinfo->cur_comp_info[ci];
329 yindex+yoffset < compptr->last_row_height) {
332 for (xindex = 0; xindex < blockcnt; xindex++)
333 MCU_buffer[blkn++] = buffer_ptr++;
346 MCU_buffer[blkn][0][0] = MCU_buffer[blkn-1][0][0];
352 if (! (*cinfo->entropy->encode_mcu) (cinfo, MCU_buffer)) {
388 cinfo->coef = &coef->
pub;
GLint GLint GLint yoffset
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_suppress_tables(j_compress_ptr cinfo, boolean suppress)
jinit_arith_encoder(j_compress_ptr cinfo)
jinit_huff_encoder(j_compress_ptr cinfo)
jinit_marker_writer(j_compress_ptr cinfo)
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
jpeg_alloc_quant_table(j_common_ptr cinfo)
jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
jpeg_set_defaults(j_compress_ptr cinfo)
start_pass_coef(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
transencode_coef_controller(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
start_iMCU_row(j_compress_ptr cinfo)
jpeg_calc_trans_dimensions(j_compress_ptr cinfo)
my_coef_controller * my_coef_ptr
jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
transencode_master_selection(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
compress_output(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
JSAMPARRAY JDIMENSION start_col
jpeg_component_info * compptr
#define ERREXIT1(cinfo, code, p1)
#define ERREXIT2(cinfo, code, p1, p2)
#define MEMCOPY(dest, src, size)
#define FMEMZERO(target, size)
struct jpeg_common_struct * j_common_ptr
#define C_MAX_BLOCKS_IN_MCU
#define MAX_COMPS_IN_SCAN
jvirt_barray_ptr * coef_arrays
UINT16 quantval[DCTSIZE2]
J_COLOR_TRANSFORM color_transform
jpeg_component_info * comp_info
int min_DCT_v_scaled_size
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
J_COLOR_SPACE jpeg_color_space
int min_DCT_h_scaled_size
struct jpeg_destination_mgr * dest
J_COLOR_SPACE in_color_space
int MCU_rows_per_iMCU_row
struct jpeg_c_coef_controller pub
JBLOCKROW dummy_buffer[C_MAX_BLOCKS_IN_MCU]
jvirt_barray_ptr whole_image[MAX_COMPONENTS]
jvirt_barray_ptr * whole_image