• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/jpeg-7/

Lines Matching refs:source

83   rle_source_ptr source = (rle_source_ptr) sinfo;
90 source->header = *rle_hdr_init(NULL);
91 source->header.rle_file = source->pub.input_file;
92 switch (rle_get_setup(&(source->header))) {
115 width = source->header.xmax - source->header.xmin + 1;
116 height = source->header.ymax - source->header.ymin + 1;
117 source->header.xmin = 0; /* realign horizontally */
118 source->header.xmax = width-1;
124 if (source->header.ncolors == 1 && source->header.ncmap == 0) {
125 source->visual = GRAYSCALE;
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) {
128 source->visual = MAPPEDGRAY;
130 1 << source->header.cmaplen);
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) {
132 source->visual = PSEUDOCOLOR;
134 1 << source->header.cmaplen);
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) {
136 source->visual = TRUECOLOR;
138 1 << source->header.cmaplen);
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) {
140 source->visual = DIRECTCOLOR;
145 if (source->visual == GRAYSCALE || source->visual == MAPPEDGRAY) {
157 if (source->visual != GRAYSCALE) {
158 source->rle_row = (rle_pixel**) (*cinfo->mem->alloc_sarray)
164 source->image = (*cinfo->mem->request_virt_sarray)
166 (JDIMENSION) (width * source->header.ncolors),
176 source->pub.buffer_height = 1;
189 rle_source_ptr source = (rle_source_ptr) sinfo;
191 source->row--;
192 source->pub.buffer = (*cinfo->mem->access_virt_sarray)
193 ((j_common_ptr) cinfo, source->image, source->row, (JDIMENSION) 1, FALSE);
207 rle_source_ptr source = (rle_source_ptr) sinfo;
213 colormap = source->header.cmap;
214 dest_row = source->pub.buffer[0];
215 source->row--;
217 ((j_common_ptr) cinfo, source->image, source->row, (JDIMENSION) 1, FALSE);
236 * we set source->pub.get_pixel_rows so that subsequent calls go straight to
243 rle_source_ptr source = (rle_source_ptr) sinfo;
253 colormap = source->header.cmap;
254 rle_row = source->rle_row;
260 RLE_CLR_BIT(source->header, RLE_ALPHA); /* don't read the alpha channel */
270 switch (source->visual) {
276 ((j_common_ptr) cinfo, source->image, row, (JDIMENSION) 1, TRUE);
277 rle_getrow(&source->header, rle_row);
291 ((j_common_ptr) cinfo, source->image, row, (JDIMENSION) 1, TRUE);
292 rle_row = source->rle_row;
293 rle_getrow(&source->header, rle_row);
296 for (channel = 0; channel < source->header.ncolors; channel++) {
314 ((j_common_ptr) cinfo, source->image, row, (JDIMENSION) 1, TRUE);
315 rle_getrow(&source->header, rle_row);
342 if (source->visual == PSEUDOCOLOR) {
343 source->pub.buffer = source->rle_row;
344 source->pub.get_pixel_rows = get_pseudocolor_row;
346 source->pub.get_pixel_rows = get_rle_row;
348 source->row = cinfo->image_height;
351 return (*source->pub.get_pixel_rows) (cinfo, sinfo);
373 rle_source_ptr source;
376 source = (rle_source_ptr)
380 source->pub.start_input = start_input_rle;
381 source->pub.finish_input = finish_input_rle;
382 source->pub.get_pixel_rows = load_image;
384 return (cjpeg_source_ptr) source;