• Home
  • Raw
  • Download

Lines Matching refs:source

144   ppm_source_ptr source = (ppm_source_ptr) sinfo;  in get_text_gray_row()  local
145 FILE * infile = source->pub.input_file; in get_text_gray_row()
147 register JSAMPLE *rescale = source->rescale; in get_text_gray_row()
150 ptr = source->pub.buffer[0]; in get_text_gray_row()
162 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_text_rgb_row() local
163 FILE * infile = source->pub.input_file; in get_text_rgb_row()
165 register JSAMPLE *rescale = source->rescale; in get_text_rgb_row()
168 ptr = source->pub.buffer[0]; in get_text_rgb_row()
182 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_scaled_gray_row() local
185 register JSAMPLE *rescale = source->rescale; in get_scaled_gray_row()
188 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_scaled_gray_row()
190 ptr = source->pub.buffer[0]; in get_scaled_gray_row()
191 bufferptr = source->iobuffer; in get_scaled_gray_row()
203 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_scaled_rgb_row() local
206 register JSAMPLE *rescale = source->rescale; in get_scaled_rgb_row()
209 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_scaled_rgb_row()
211 ptr = source->pub.buffer[0]; in get_scaled_rgb_row()
212 bufferptr = source->iobuffer; in get_scaled_rgb_row()
229 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_raw_row() local
231 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_raw_row()
241 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_word_gray_row() local
244 register JSAMPLE *rescale = source->rescale; in get_word_gray_row()
247 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_word_gray_row()
249 ptr = source->pub.buffer[0]; in get_word_gray_row()
250 bufferptr = source->iobuffer; in get_word_gray_row()
265 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_word_rgb_row() local
268 register JSAMPLE *rescale = source->rescale; in get_word_rgb_row()
271 if (! ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_word_rgb_row()
273 ptr = source->pub.buffer[0]; in get_word_rgb_row()
274 bufferptr = source->iobuffer; in get_word_rgb_row()
298 ppm_source_ptr source = (ppm_source_ptr) sinfo; in start_input_ppm() local
303 if (getc(source->pub.input_file) != 'P') in start_input_ppm()
306 c = getc(source->pub.input_file); /* subformat discriminator character */ in start_input_ppm()
321 w = read_pbm_integer(cinfo, source->pub.input_file); in start_input_ppm()
322 h = read_pbm_integer(cinfo, source->pub.input_file); in start_input_ppm()
323 maxval = read_pbm_integer(cinfo, source->pub.input_file); in start_input_ppm()
342 source->pub.get_pixel_rows = get_text_gray_row; in start_input_ppm()
350 source->pub.get_pixel_rows = get_text_rgb_row; in start_input_ppm()
359 source->pub.get_pixel_rows = get_word_gray_row; in start_input_ppm()
361 source->pub.get_pixel_rows = get_raw_row; in start_input_ppm()
365 source->pub.get_pixel_rows = get_scaled_gray_row; in start_input_ppm()
374 source->pub.get_pixel_rows = get_word_rgb_row; in start_input_ppm()
376 source->pub.get_pixel_rows = get_raw_row; in start_input_ppm()
380 source->pub.get_pixel_rows = get_scaled_rgb_row; in start_input_ppm()
387 source->buffer_width = (size_t) w * cinfo->input_components * in start_input_ppm()
389 source->iobuffer = (U_CHAR *) in start_input_ppm()
391 source->buffer_width); in start_input_ppm()
399 source->pixrow = (JSAMPROW) source->iobuffer; in start_input_ppm()
400 source->pub.buffer = & source->pixrow; in start_input_ppm()
401 source->pub.buffer_height = 1; in start_input_ppm()
404 source->pub.buffer = (*cinfo->mem->alloc_sarray) in start_input_ppm()
407 source->pub.buffer_height = 1; in start_input_ppm()
415 source->rescale = (JSAMPLE *) in start_input_ppm()
421 source->rescale[val] = (JSAMPLE) ((val*MAXJSAMPLE + half_maxval)/maxval); in start_input_ppm()
445 ppm_source_ptr source; in jinit_read_ppm() local
448 source = (ppm_source_ptr) in jinit_read_ppm()
452 source->pub.start_input = start_input_ppm; in jinit_read_ppm()
453 source->pub.finish_input = finish_input_ppm; in jinit_read_ppm()
455 return (cjpeg_source_ptr) source; in jinit_read_ppm()