• Home
  • Raw
  • Download

Lines Matching refs:cinfo

33 jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize)  in jpeg_CreateCompress()  argument
38 cinfo->mem = NULL; /* so jpeg_destroy knows mem mgr not called */ in jpeg_CreateCompress()
40 ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version); in jpeg_CreateCompress()
42 ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, in jpeg_CreateCompress()
52 struct jpeg_error_mgr * err = cinfo->err; in jpeg_CreateCompress()
53 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress()
54 MEMZERO(cinfo, sizeof(struct jpeg_compress_struct)); in jpeg_CreateCompress()
55 cinfo->err = err; in jpeg_CreateCompress()
56 cinfo->client_data = client_data; in jpeg_CreateCompress()
58 cinfo->is_decompressor = FALSE; in jpeg_CreateCompress()
61 jinit_memory_mgr((j_common_ptr) cinfo); in jpeg_CreateCompress()
64 cinfo->progress = NULL; in jpeg_CreateCompress()
65 cinfo->dest = NULL; in jpeg_CreateCompress()
67 cinfo->comp_info = NULL; in jpeg_CreateCompress()
70 cinfo->quant_tbl_ptrs[i] = NULL; in jpeg_CreateCompress()
72 cinfo->q_scale_factor[i] = 100; in jpeg_CreateCompress()
77 cinfo->dc_huff_tbl_ptrs[i] = NULL; in jpeg_CreateCompress()
78 cinfo->ac_huff_tbl_ptrs[i] = NULL; in jpeg_CreateCompress()
83 cinfo->block_size = DCTSIZE; in jpeg_CreateCompress()
84 cinfo->natural_order = jpeg_natural_order; in jpeg_CreateCompress()
85 cinfo->lim_Se = DCTSIZE2-1; in jpeg_CreateCompress()
88 cinfo->script_space = NULL; in jpeg_CreateCompress()
90 cinfo->input_gamma = 1.0; /* in case application forgets */ in jpeg_CreateCompress()
93 cinfo->global_state = CSTATE_START; in jpeg_CreateCompress()
102 jpeg_destroy_compress (j_compress_ptr cinfo) in jpeg_destroy_compress() argument
104 jpeg_destroy((j_common_ptr) cinfo); /* use common routine */ in jpeg_destroy_compress()
114 jpeg_abort_compress (j_compress_ptr cinfo) in jpeg_abort_compress() argument
116 jpeg_abort((j_common_ptr) cinfo); /* use common routine */ in jpeg_abort_compress()
133 jpeg_suppress_tables (j_compress_ptr cinfo, boolean suppress) in jpeg_suppress_tables() argument
140 if ((qtbl = cinfo->quant_tbl_ptrs[i]) != NULL) in jpeg_suppress_tables()
145 if ((htbl = cinfo->dc_huff_tbl_ptrs[i]) != NULL) in jpeg_suppress_tables()
147 if ((htbl = cinfo->ac_huff_tbl_ptrs[i]) != NULL) in jpeg_suppress_tables()
161 jpeg_finish_compress (j_compress_ptr cinfo) in jpeg_finish_compress() argument
165 if (cinfo->global_state == CSTATE_SCANNING || in jpeg_finish_compress()
166 cinfo->global_state == CSTATE_RAW_OK) { in jpeg_finish_compress()
168 if (cinfo->next_scanline < cinfo->image_height) in jpeg_finish_compress()
169 ERREXIT(cinfo, JERR_TOO_LITTLE_DATA); in jpeg_finish_compress()
170 (*cinfo->master->finish_pass) (cinfo); in jpeg_finish_compress()
171 } else if (cinfo->global_state != CSTATE_WRCOEFS) in jpeg_finish_compress()
172 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_finish_compress()
174 while (! cinfo->master->is_last_pass) { in jpeg_finish_compress()
175 (*cinfo->master->prepare_for_pass) (cinfo); in jpeg_finish_compress()
176 for (iMCU_row = 0; iMCU_row < cinfo->total_iMCU_rows; iMCU_row++) { in jpeg_finish_compress()
177 if (cinfo->progress != NULL) { in jpeg_finish_compress()
178 cinfo->progress->pass_counter = (long) iMCU_row; in jpeg_finish_compress()
179 cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows; in jpeg_finish_compress()
180 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_finish_compress()
185 if (! (*cinfo->coef->compress_data) (cinfo, (JSAMPIMAGE) NULL)) in jpeg_finish_compress()
186 ERREXIT(cinfo, JERR_CANT_SUSPEND); in jpeg_finish_compress()
188 (*cinfo->master->finish_pass) (cinfo); in jpeg_finish_compress()
191 (*cinfo->marker->write_file_trailer) (cinfo); in jpeg_finish_compress()
192 (*cinfo->dest->term_destination) (cinfo); in jpeg_finish_compress()
194 jpeg_abort((j_common_ptr) cinfo); in jpeg_finish_compress()
206 jpeg_write_marker (j_compress_ptr cinfo, int marker, in jpeg_write_marker() argument
211 if (cinfo->next_scanline != 0 || in jpeg_write_marker()
212 (cinfo->global_state != CSTATE_SCANNING && in jpeg_write_marker()
213 cinfo->global_state != CSTATE_RAW_OK && in jpeg_write_marker()
214 cinfo->global_state != CSTATE_WRCOEFS)) in jpeg_write_marker()
215 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_write_marker()
217 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_marker()
218 write_marker_byte = cinfo->marker->write_marker_byte; /* copy for speed */ in jpeg_write_marker()
220 (*write_marker_byte) (cinfo, *dataptr); in jpeg_write_marker()
228 jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen) in jpeg_write_m_header() argument
230 if (cinfo->next_scanline != 0 || in jpeg_write_m_header()
231 (cinfo->global_state != CSTATE_SCANNING && in jpeg_write_m_header()
232 cinfo->global_state != CSTATE_RAW_OK && in jpeg_write_m_header()
233 cinfo->global_state != CSTATE_WRCOEFS)) in jpeg_write_m_header()
234 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_write_m_header()
236 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_m_header()
240 jpeg_write_m_byte (j_compress_ptr cinfo, int val) in jpeg_write_m_byte() argument
242 (*cinfo->marker->write_marker_byte) (cinfo, val); in jpeg_write_m_byte()
268 jpeg_write_tables (j_compress_ptr cinfo) in jpeg_write_tables() argument
270 if (cinfo->global_state != CSTATE_START) in jpeg_write_tables()
271 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_write_tables()
274 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); in jpeg_write_tables()
275 (*cinfo->dest->init_destination) (cinfo); in jpeg_write_tables()
277 jinit_marker_writer(cinfo); in jpeg_write_tables()
279 (*cinfo->marker->write_tables_only) (cinfo); in jpeg_write_tables()
281 (*cinfo->dest->term_destination) (cinfo); in jpeg_write_tables()