13 #define JPEG_INTERNALS
41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
46 (*cinfo->
dest->init_destination) (cinfo);
73 ERREXIT1(dstinfo, JERR_BAD_STATE, dstinfo->global_state);
95 SIZEOF((*qtblptr)->quantval));
96 (*qtblptr)->sent_table =
FALSE;
107 ci < dstinfo->num_components; ci++, incomp++, outcomp++) {
117 if (tblno < 0 || tblno >= NUM_QUANT_TBLS ||
119 ERREXIT1(dstinfo, JERR_NO_QUANT_TABLE, tblno);
122 if (c_quant !=
NULL) {
123 for (coefi = 0; coefi <
DCTSIZE2; coefi++) {
125 ERREXIT1(dstinfo, JERR_MISMATCHED_QUANT_TABLE, tblno);
153 ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
156 #ifdef C_PROGRESSIVE_SUPPORTED
159 ERREXIT(cinfo, JERR_NOT_COMPILED);
171 (*cinfo->mem->realize_virt_arrays) ((
j_common_ptr) cinfo);
177 (*cinfo->
marker->write_file_header) (cinfo);
197 int MCU_rows_per_iMCU_row;
243 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
267 int blkn, ci, xindex, yindex,
yoffset, blockcnt;
277 buffer[ci] = (*cinfo->mem->access_virt_barray)
286 for (MCU_col_num = coef->
mcu_ctr; MCU_col_num < cinfo->MCUs_per_row;
292 start_col = MCU_col_num * compptr->
MCU_width;
293 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width
294 : compptr->last_col_width;
295 for (yindex = 0; yindex < compptr->MCU_height; yindex++) {
300 for (xindex = 0; xindex < blockcnt; xindex++)
301 MCU_buffer[blkn++] = buffer_ptr++;
312 for (; xindex < compptr->MCU_width; xindex++) {
314 MCU_buffer[blkn][0][0] = MCU_buffer[blkn-1][0][0];
320 if (! (*cinfo->
entropy->encode_mcu) (cinfo, MCU_buffer)) {
LOCAL void start_iMCU_row(j_compress_ptr cinfo)
UINT16 quantval[DCTSIZE2]
my_coef_controller * my_coef_ptr
jpeg_component_info * comp_info
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
METHODDEF void start_pass_coef(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
GLOBAL void jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
struct jpeg_entropy_encoder * entropy
J_COLOR_SPACE in_color_space
METHODDEF boolean compress_output(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
struct jpeg_c_coef_controller pub
LOCAL void transencode_coef_controller(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
#define MEMCOPY(dest, src, size)
jvirt_barray_ptr * whole_image
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
LOCAL void transencode_master_selection(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
#define C_MAX_BLOCKS_IN_MCU
struct jpeg_destination_mgr * dest
struct jpeg_marker_writer * marker
GLOBAL void jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
GLOBAL void jinit_huff_encoder(j_compress_ptr cinfo)
GLOBAL void jinit_phuff_encoder(j_compress_ptr cinfo)
GLint GLint GLint yoffset
JBLOCKROW dummy_buffer[C_MAX_BLOCKS_IN_MCU]
#define ERREXIT1(cinfo, code, p1)
LOCAL void transencode_master_selection JPP((j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays))
GLOBAL void jzero_far(void FAR *target, size_t bytestozero)
GLOBAL void jinit_marker_writer(j_compress_ptr cinfo)
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
GLOBAL JQUANT_TBL * jpeg_alloc_quant_table(j_common_ptr cinfo)
jvirt_barray_ptr whole_image[MAX_COMPONENTS]
GLOBAL void jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
GLOBAL void jpeg_write_coefficients(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
GLOBAL void jpeg_set_defaults(j_compress_ptr cinfo)
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
GLOBAL void jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
#define ERREXIT2(cinfo, code, p1, p2)
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
#define MAX_COMPS_IN_SCAN
jpeg_component_info * comp_info
J_COLOR_SPACE jpeg_color_space
int MCU_rows_per_iMCU_row