Lines Matching refs:coef
75 my_coef_ptr coef = (my_coef_ptr) cinfo->coef; in start_iMCU_row() local
82 coef->MCU_rows_per_iMCU_row = 1; in start_iMCU_row()
84 if (coef->iMCU_row_num < (cinfo->total_iMCU_rows-1)) in start_iMCU_row()
85 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->v_samp_factor; in start_iMCU_row()
87 coef->MCU_rows_per_iMCU_row = cinfo->cur_comp_info[0]->last_row_height; in start_iMCU_row()
90 coef->mcu_ctr = 0; in start_iMCU_row()
91 coef->MCU_vert_offset = 0; in start_iMCU_row()
102 my_coef_ptr coef = (my_coef_ptr) cinfo->coef; in start_pass_coef() local
104 coef->iMCU_row_num = 0; in start_pass_coef()
109 if (coef->whole_image[0] != NULL) in start_pass_coef()
111 coef->pub.compress_data = compress_data; in start_pass_coef()
115 if (coef->whole_image[0] == NULL) in start_pass_coef()
117 coef->pub.compress_data = compress_first_pass; in start_pass_coef()
120 if (coef->whole_image[0] == NULL) in start_pass_coef()
122 coef->pub.compress_data = compress_output; in start_pass_coef()
145 my_coef_ptr coef = (my_coef_ptr) cinfo->coef; in compress_data() local
154 for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row; in compress_data()
156 for (MCU_col_num = coef->mcu_ctr; MCU_col_num <= last_MCU_col; in compress_data()
175 if (coef->iMCU_row_num < last_iMCU_row || in compress_data()
179 coef->MCU_buffer[blkn], in compress_data()
183 jzero_far((void FAR *) coef->MCU_buffer[blkn + blockcnt], in compress_data()
186 coef->MCU_buffer[blkn+bi][0][0] = coef->MCU_buffer[blkn+bi-1][0][0]; in compress_data()
191 jzero_far((void FAR *) coef->MCU_buffer[blkn], in compress_data()
194 coef->MCU_buffer[blkn+bi][0][0] = 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()