10 #define JPEG_INTERNALS 38 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
43 (*cinfo->dest->init_destination) (cinfo);
47 cinfo->next_scanline = 0;
86 if (srcinfo->quant_tbl_ptrs[
tblno] != NULL) {
91 srcinfo->quant_tbl_ptrs[
tblno]->quantval,
92 SIZEOF((*qtblptr)->quantval));
93 (*qtblptr)->sent_table =
FALSE;
104 ci < dstinfo->num_components; ci++, incomp++, outcomp++) {
115 srcinfo->quant_tbl_ptrs[
tblno] == NULL)
117 slot_quant = srcinfo->quant_tbl_ptrs[
tblno];
119 if (c_quant != NULL) {
120 for (coefi = 0; coefi <
DCTSIZE2; coefi++) {
137 if (srcinfo->saw_JFIF_marker) {
138 if (srcinfo->JFIF_major_version == 1) {
161 cinfo->input_components = 1;
166 if (cinfo->arith_code) {
167 ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
169 if (cinfo->progressive_mode) {
170 #ifdef C_PROGRESSIVE_SUPPORTED 173 ERREXIT(cinfo, JERR_NOT_COMPILED);
185 (*cinfo->mem->realize_virt_arrays) ((
j_common_ptr) cinfo);
191 (*cinfo->marker->write_file_header) (cinfo);
211 int MCU_rows_per_iMCU_row;
233 if (cinfo->comps_in_scan > 1) {
257 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
279 JDIMENSION last_MCU_col = cinfo->MCUs_per_row - 1;
280 JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
281 int blkn, ci, xindex, yindex,
yoffset, blockcnt;
289 for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
290 compptr = cinfo->cur_comp_info[ci];
291 buffer[ci] = (*cinfo->mem->access_virt_barray)
300 for (MCU_col_num = coef->
mcu_ctr; MCU_col_num < cinfo->MCUs_per_row;
304 for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
305 compptr = cinfo->cur_comp_info[ci];
314 for (xindex = 0; xindex < blockcnt; xindex++)
315 MCU_buffer[blkn++] = buffer_ptr++;
328 MCU_buffer[blkn][0][0] = MCU_buffer[blkn-1][0][0];
334 if (! (*cinfo->entropy->encode_mcu) (cinfo, MCU_buffer)) {
jzero_far(void FAR *target, size_t bytestozero)
UINT16 quantval[DCTSIZE2]
J_COLOR_SPACE jpeg_color_space
jpeg_write_coefficients(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
#define MAX_COMPS_IN_SCAN
jpeg_set_defaults(j_compress_ptr cinfo)
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
start_iMCU_row(j_compress_ptr cinfo)
jpeg_component_info * compptr
jvirt_barray_ptr * coef_arrays
J_COLOR_SPACE in_color_space
jinit_phuff_encoder(j_compress_ptr cinfo)
jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
struct jpeg_c_coef_controller pub
jinit_huff_encoder(j_compress_ptr cinfo)
#define MEMCOPY(dest, src, size)
jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
GLint GLint GLint yoffset
jvirt_barray_ptr * whole_image
my_coef_controller * my_coef_ptr
JBLOCKROW dummy_buffer[C_MAX_BLOCKS_IN_MCU]
jpeg_alloc_quant_table(j_common_ptr cinfo)
#define C_MAX_BLOCKS_IN_MCU
#define ERREXIT1(cinfo, code, p1)
start_pass_coef(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
transencode_coef_controller(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
transencode_master_selection(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
#define ERREXIT2(cinfo, code, p1, p2)
jinit_marker_writer(j_compress_ptr cinfo)
LOCAL(void) transencode_master_selection JPP((j_compress_ptr cinfo
jpeg_component_info * comp_info
compress_output(j_compress_ptr cinfo, JSAMPIMAGE)
int MCU_rows_per_iMCU_row
jvirt_barray_ptr whole_image[MAX_COMPONENTS]