Lines Matching refs:sinfo
61 void (*read_pixel) (tga_source_ptr sinfo);
73 JDIMENSION (*get_pixel_rows) (j_compress_ptr cinfo, cjpeg_source_ptr sinfo);
89 read_byte (tga_source_ptr sinfo) in read_byte() argument
92 register FILE *infile = sinfo->pub.input_file; in read_byte()
96 ERREXIT(sinfo->cinfo, JERR_INPUT_EOF); in read_byte()
102 read_colormap (tga_source_ptr sinfo, int cmaplen, int mapentrysize) in read_colormap() argument
109 ERREXIT(sinfo->cinfo, JERR_TGA_BADCMAP); in read_colormap()
112 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
113 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
114 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
124 read_non_rle_pixel (tga_source_ptr sinfo) in read_non_rle_pixel() argument
127 register FILE *infile = sinfo->pub.input_file; in read_non_rle_pixel()
130 for (i = 0; i < sinfo->pixel_size; i++) { in read_non_rle_pixel()
131 sinfo->tga_pixel[i] = (U_CHAR) getc(infile); in read_non_rle_pixel()
137 read_rle_pixel (tga_source_ptr sinfo) in read_rle_pixel() argument
140 register FILE *infile = sinfo->pub.input_file; in read_rle_pixel()
144 if (sinfo->dup_pixel_count > 0) { in read_rle_pixel()
145 sinfo->dup_pixel_count--; in read_rle_pixel()
150 if (--sinfo->block_count < 0) { /* decrement pixels remaining in block */ in read_rle_pixel()
151 i = read_byte(sinfo); in read_rle_pixel()
153 sinfo->dup_pixel_count = i & 0x7F; /* number of dups after this one */ in read_rle_pixel()
154 sinfo->block_count = 0; /* then read new block header */ in read_rle_pixel()
156 sinfo->block_count = i & 0x7F; /* number of pixels after this one */ in read_rle_pixel()
161 for (i = 0; i < sinfo->pixel_size; i++) { in read_rle_pixel()
162 sinfo->tga_pixel[i] = (U_CHAR) getc(infile); in read_rle_pixel()
175 get_8bit_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_8bit_gray_row() argument
178 tga_source_ptr source = (tga_source_ptr) sinfo; in get_8bit_gray_row()
191 get_8bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_8bit_row() argument
194 tga_source_ptr source = (tga_source_ptr) sinfo; in get_8bit_row()
212 get_16bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_16bit_row() argument
215 tga_source_ptr source = (tga_source_ptr) sinfo; in get_16bit_row()
240 get_24bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_24bit_row() argument
243 tga_source_ptr source = (tga_source_ptr) sinfo; in get_24bit_row()
274 get_memory_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in get_memory_row() argument
276 tga_source_ptr source = (tga_source_ptr) sinfo; in get_memory_row()
301 preload_image (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in preload_image() argument
303 tga_source_ptr source = (tga_source_ptr) sinfo; in preload_image()
316 (*source->get_pixel_rows) (cinfo, sinfo); in preload_image()
325 return get_memory_row(cinfo, sinfo); in preload_image()
334 start_input_tga (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in start_input_tga() argument
336 tga_source_ptr source = (tga_source_ptr) sinfo; in start_input_tga()
475 finish_input_tga (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) in finish_input_tga() argument