Lines Matching refs:source
48 /* Private version of data source object */
60 JDIMENSION source_row; /* Current source row number */
122 bmp_source_ptr source = (bmp_source_ptr) sinfo;
123 register JSAMPARRAY colormap = source->colormap;
130 source->source_row--;
132 ((j_common_ptr) cinfo, source->whole_image,
133 source->source_row, (JDIMENSION) 1, FALSE);
137 outptr = source->pub.buffer[0];
153 bmp_source_ptr source = (bmp_source_ptr) sinfo;
159 source->source_row--;
161 ((j_common_ptr) cinfo, source->whole_image,
162 source->source_row, (JDIMENSION) 1, FALSE);
164 /* Transfer data. Note source values are in BGR order
168 outptr = source->pub.buffer[0];
189 bmp_source_ptr source = (bmp_source_ptr) sinfo;
190 register FILE *infile = source->pub.input_file;
205 ((j_common_ptr) cinfo, source->whole_image,
208 for (col = source->row_width; col > 0; col--) {
219 switch (source->bits_per_pixel) {
221 source->pub.get_pixel_rows = get_8bit_row;
224 source->pub.get_pixel_rows = get_24bit_row;
229 source->source_row = cinfo->image_height;
232 return (*source->pub.get_pixel_rows) (cinfo, sinfo);
243 bmp_source_ptr source = (bmp_source_ptr) sinfo;
265 if (! ReadOK(source->pub.input_file, bmpfileheader, 14))
275 if (! ReadOK(source->pub.input_file, bmpinfoheader, 4))
280 if (! ReadOK(source->pub.input_file, bmpinfoheader+4, headerSize-4))
289 source->bits_per_pixel = (int) GET_2B(bmpinfoheader,10);
291 switch (source->bits_per_pixel) {
313 source->bits_per_pixel = (int) GET_2B(bmpinfoheader,14);
320 switch (source->bits_per_pixel) {
359 source->colormap = (*cinfo->mem->alloc_sarray)
363 read_colormap(source, (int) biClrUsed, mapentrysize);
372 (void) read_byte(source);
376 if (source->bits_per_pixel == 24)
381 source->row_width = row_width;
384 source->whole_image = (*cinfo->mem->request_virt_sarray)
387 source->pub.get_pixel_rows = preload_image;
394 source->pub.buffer = (*cinfo->mem->alloc_sarray)
397 source->pub.buffer_height = 1;
425 bmp_source_ptr source;
428 source = (bmp_source_ptr)
431 source->cinfo = cinfo; /* make back link for subroutines */
433 source->pub.start_input = start_input_bmp;
434 source->pub.finish_input = finish_input_bmp;
436 return (cjpeg_source_ptr) source;