• Home
  • Raw
  • Download

Lines Matching refs:cinfo

38 jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables)  in jpeg_start_compress()  argument
40 if (cinfo->global_state != CSTATE_START) in jpeg_start_compress()
41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_start_compress()
44 jpeg_suppress_tables(cinfo, FALSE); /* mark all tables to be written */ in jpeg_start_compress()
47 (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo); in jpeg_start_compress()
48 (*cinfo->dest->init_destination) (cinfo); in jpeg_start_compress()
50 jinit_compress_master(cinfo); in jpeg_start_compress()
52 (*cinfo->master->prepare_for_pass) (cinfo); in jpeg_start_compress()
56 cinfo->next_scanline = 0; in jpeg_start_compress()
57 cinfo->global_state = (cinfo->raw_data_in ? CSTATE_RAW_OK : CSTATE_SCANNING); in jpeg_start_compress()
77 jpeg_write_scanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, in jpeg_write_scanlines() argument
82 if (cinfo->global_state != CSTATE_SCANNING) in jpeg_write_scanlines()
83 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_write_scanlines()
84 if (cinfo->next_scanline >= cinfo->image_height) in jpeg_write_scanlines()
85 WARNMS(cinfo, JWRN_TOO_MUCH_DATA); in jpeg_write_scanlines()
88 if (cinfo->progress != NULL) { in jpeg_write_scanlines()
89 cinfo->progress->pass_counter = (long) cinfo->next_scanline; in jpeg_write_scanlines()
90 cinfo->progress->pass_limit = (long) cinfo->image_height; in jpeg_write_scanlines()
91 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_write_scanlines()
99 if (cinfo->master->call_pass_startup) in jpeg_write_scanlines()
100 (*cinfo->master->pass_startup) (cinfo); in jpeg_write_scanlines()
103 rows_left = cinfo->image_height - cinfo->next_scanline; in jpeg_write_scanlines()
108 (*cinfo->main->process_data) (cinfo, scanlines, &row_ctr, num_lines); in jpeg_write_scanlines()
109 cinfo->next_scanline += row_ctr; in jpeg_write_scanlines()
120 jpeg_write_raw_data (j_compress_ptr cinfo, JSAMPIMAGE data, in jpeg_write_raw_data() argument
125 if (cinfo->global_state != CSTATE_RAW_OK) in jpeg_write_raw_data()
126 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_write_raw_data()
127 if (cinfo->next_scanline >= cinfo->image_height) { in jpeg_write_raw_data()
128 WARNMS(cinfo, JWRN_TOO_MUCH_DATA); in jpeg_write_raw_data()
133 if (cinfo->progress != NULL) { in jpeg_write_raw_data()
134 cinfo->progress->pass_counter = (long) cinfo->next_scanline; in jpeg_write_raw_data()
135 cinfo->progress->pass_limit = (long) cinfo->image_height; in jpeg_write_raw_data()
136 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_write_raw_data()
144 if (cinfo->master->call_pass_startup) in jpeg_write_raw_data()
145 (*cinfo->master->pass_startup) (cinfo); in jpeg_write_raw_data()
148 lines_per_iMCU_row = cinfo->max_v_samp_factor * DCTSIZE; in jpeg_write_raw_data()
150 ERREXIT(cinfo, JERR_BUFFER_SIZE); in jpeg_write_raw_data()
153 if (! (*cinfo->coef->compress_data) (cinfo, data)) { in jpeg_write_raw_data()
159 cinfo->next_scanline += lines_per_iMCU_row; in jpeg_write_raw_data()