Lines Matching refs:coef
73 my_coef_ptr coef = (my_coef_ptr)cinfo->coef; in start_iMCU_row() local
80 coef->MCU_rows_per_iMCU_row = 1; in start_iMCU_row()
82 if (coef->iMCU_row_num < (cinfo->total_iMCU_rows - 1)) in start_iMCU_row()
83 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->v_samp_factor; in start_iMCU_row()
85 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->last_row_height; in start_iMCU_row()
88 coef->mcu_ctr = 0; in start_iMCU_row()
89 coef->MCU_vert_offset = 0; in start_iMCU_row()
100 my_coef_ptr coef = (my_coef_ptr)cinfo->coef; in start_pass_coef() local
102 coef->iMCU_row_num = 0; in start_pass_coef()
107 if (coef->whole_image[0] != NULL) in start_pass_coef()
109 coef->pub.compress_data = compress_data; in start_pass_coef()
113 if (coef->whole_image[0] == NULL) in start_pass_coef()
115 coef->pub.compress_data = compress_first_pass; in start_pass_coef()
118 if (coef->whole_image[0] == NULL) in start_pass_coef()
120 coef->pub.compress_data = compress_output; in start_pass_coef()
143 my_coef_ptr coef = (my_coef_ptr)cinfo->coef; in compress_data() local
152 for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row; in compress_data()
154 for (MCU_col_num = coef->mcu_ctr; MCU_col_num <= last_MCU_col; in compress_data()
173 if (coef->iMCU_row_num < last_iMCU_row || in compress_data()
177 coef->MCU_buffer[blkn], in compress_data()
181 jzero_far((void *)coef->MCU_buffer[blkn + blockcnt], in compress_data()
184 coef->MCU_buffer[blkn + bi][0][0] = in compress_data()
185 coef->MCU_buffer[blkn + bi - 1][0][0]; in compress_data()
190 jzero_far((void *)coef->MCU_buffer[blkn], in compress_data()
193 coef->MCU_buffer[blkn + bi][0][0] = in compress_data()
194 coef->MCU_buffer[blkn - 1][0][0]; in compress_data()
204 if (!(*cinfo->entropy->encode_mcu) (cinfo, coef->MCU_buffer)) { in compress_data()
206 coef->MCU_vert_offset = yoffset; in compress_data()
207 coef->mcu_ctr = MCU_col_num; in compress_data()
212 coef->mcu_ctr = 0; in compress_data()
215 coef->iMCU_row_num++; in compress_data()
247 my_coef_ptr coef = (my_coef_ptr)cinfo->coef; in compress_first_pass() local
260 ((j_common_ptr)cinfo, coef->whole_image[ci], in compress_first_pass()
261 coef->iMCU_row_num * compptr->v_samp_factor, in compress_first_pass()
264 if (coef->iMCU_row_num < last_iMCU_row) in compress_first_pass()
301 if (coef->iMCU_row_num == last_iMCU_row) { in compress_first_pass()
343 my_coef_ptr coef = (my_coef_ptr)cinfo->coef; in compress_output() local
358 ((j_common_ptr)cinfo, coef->whole_image[compptr->component_index], in compress_output()
359 coef->iMCU_row_num * compptr->v_samp_factor, in compress_output()
364 for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row; in compress_output()
366 for (MCU_col_num = coef->mcu_ctr; MCU_col_num < cinfo->MCUs_per_row; in compress_output()
376 coef->MCU_buffer[blkn++] = buffer_ptr++; in compress_output()
381 if (!(*cinfo->entropy->encode_mcu) (cinfo, coef->MCU_buffer)) { in compress_output()
383 coef->MCU_vert_offset = yoffset; in compress_output()
384 coef->mcu_ctr = MCU_col_num; in compress_output()
389 coef->mcu_ctr = 0; in compress_output()
392 coef->iMCU_row_num++; in compress_output()
407 my_coef_ptr coef; in jinit_c_coef_controller() local
409 coef = (my_coef_ptr) in jinit_c_coef_controller()
412 cinfo->coef = (struct jpeg_c_coef_controller *)coef; in jinit_c_coef_controller()
413 coef->pub.start_pass = start_pass_coef; in jinit_c_coef_controller()
425 coef->whole_image[ci] = (*cinfo->mem->request_virt_barray) in jinit_c_coef_controller()
445 coef->MCU_buffer[i] = buffer + i; in jinit_c_coef_controller()
447 coef->whole_image[0] = NULL; /* flag for no virtual arrays */ in jinit_c_coef_controller()