Lines Matching refs:prep
80 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; in start_pass_prep() local
86 prep->rows_to_go = cinfo->image_height; in start_pass_prep()
88 prep->next_buf_row = 0; in start_pass_prep()
93 prep->this_row_group = 0; in start_pass_prep()
95 prep->next_buf_stop = 2 * cinfo->max_v_samp_factor; in start_pass_prep()
134 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; in pre_process_data() local
143 numrows = cinfo->max_v_samp_factor - prep->next_buf_row; in pre_process_data()
146 prep->color_buf, in pre_process_data()
147 (JDIMENSION) prep->next_buf_row, in pre_process_data()
150 prep->next_buf_row += numrows; in pre_process_data()
151 prep->rows_to_go -= numrows; in pre_process_data()
153 if (prep->rows_to_go == 0 && in pre_process_data()
154 prep->next_buf_row < cinfo->max_v_samp_factor) { in pre_process_data()
156 expand_bottom_edge(prep->color_buf[ci], cinfo->image_width, in pre_process_data()
157 prep->next_buf_row, cinfo->max_v_samp_factor); in pre_process_data()
159 prep->next_buf_row = cinfo->max_v_samp_factor; in pre_process_data()
162 if (prep->next_buf_row == cinfo->max_v_samp_factor) { in pre_process_data()
164 prep->color_buf, (JDIMENSION) 0, in pre_process_data()
166 prep->next_buf_row = 0; in pre_process_data()
172 if (prep->rows_to_go == 0 && in pre_process_data()
201 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; in pre_process_context() local
210 numrows = prep->next_buf_stop - prep->next_buf_row; in pre_process_context()
213 prep->color_buf, in pre_process_context()
214 (JDIMENSION) prep->next_buf_row, in pre_process_context()
217 if (prep->rows_to_go == cinfo->image_height) { in pre_process_context()
221 jcopy_sample_rows(prep->color_buf[ci], 0, in pre_process_context()
222 prep->color_buf[ci], -row, in pre_process_context()
228 prep->next_buf_row += numrows; in pre_process_context()
229 prep->rows_to_go -= numrows; in pre_process_context()
232 if (prep->rows_to_go != 0) in pre_process_context()
235 if (prep->next_buf_row < prep->next_buf_stop) { in pre_process_context()
237 expand_bottom_edge(prep->color_buf[ci], cinfo->image_width, in pre_process_context()
238 prep->next_buf_row, prep->next_buf_stop); in pre_process_context()
240 prep->next_buf_row = prep->next_buf_stop; in pre_process_context()
244 if (prep->next_buf_row == prep->next_buf_stop) { in pre_process_context()
246 prep->color_buf, in pre_process_context()
247 (JDIMENSION) prep->this_row_group, in pre_process_context()
251 prep->this_row_group += cinfo->max_v_samp_factor; in pre_process_context()
252 if (prep->this_row_group >= buf_height) in pre_process_context()
253 prep->this_row_group = 0; in pre_process_context()
254 if (prep->next_buf_row >= buf_height) in pre_process_context()
255 prep->next_buf_row = 0; in pre_process_context()
256 prep->next_buf_stop = prep->next_buf_row + cinfo->max_v_samp_factor; in pre_process_context()
269 my_prep_ptr prep = (my_prep_ptr) cinfo->prep; in create_context_buffer() local
302 prep->color_buf[ci] = fake_buffer + rgroup_height; in create_context_buffer()
317 my_prep_ptr prep; in jinit_c_prep_controller() local
324 prep = (my_prep_ptr) in jinit_c_prep_controller()
327 cinfo->prep = (struct jpeg_c_prep_controller *) prep; in jinit_c_prep_controller()
328 prep->pub.start_pass = start_pass_prep; in jinit_c_prep_controller()
337 prep->pub.pre_process_data = pre_process_context; in jinit_c_prep_controller()
344 prep->pub.pre_process_data = pre_process_data; in jinit_c_prep_controller()
347 prep->color_buf[ci] = (*cinfo->mem->alloc_sarray) in jinit_c_prep_controller()