Searched refs:JSAMPLE (Results 1 - 25 of 52) sorted by relevance

123

/external/jpeg/
H A Djdsample.c195 register JSAMPLE invalue;
238 register JSAMPLE invalue;
266 register JSAMPLE invalue;
318 *outptr++ = (JSAMPLE) invalue;
319 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2);
324 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2);
325 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2);
330 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2);
331 *outptr++ = (JSAMPLE) invalue;
372 *outptr++ = (JSAMPLE) ((thiscolsu
[all...]
H A Djmorecfg.h75 /* JSAMPLE should be the smallest type that will hold the values 0..255.
81 typedef unsigned char JSAMPLE; typedef
86 typedef char JSAMPLE; typedef
102 /* JSAMPLE should be the smallest type that will hold the values 0..4095.
106 typedef short JSAMPLE; typedef
150 * extraction code like we did for JSAMPLE. (In other words, these
H A Drdppm.c77 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */
133 * In all cases, input is scaled to the size of JSAMPLE.
147 register JSAMPLE *rescale = source->rescale;
165 register JSAMPLE *rescale = source->rescale;
185 register JSAMPLE *rescale = source->rescale;
206 register JSAMPLE *rescale = source->rescale;
225 * In this case we just read right into the JSAMPLE buffer!
244 register JSAMPLE *rescale = source->rescale;
268 register JSAMPLE *rescale = source->rescale;
360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE)
[all...]
H A Djcsample.c91 register JSAMPLE pixval;
173 *outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix);
233 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1])
272 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
343 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
363 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
378 *outptr = (JSAMPLE) ((membersum + 32768) >> 16);
432 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
442 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
450 *outptr = (JSAMPLE) ((membersu
[all...]
H A Drdtarga.c111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
228 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F];
230 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F];
232 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F];
249 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */
250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]);
251 *ptr++ = (JSAMPLE) UC
[all...]
H A Drdcolmap.c67 colormap0[ncolors] = (JSAMPLE) R;
68 colormap1[ncolors] = (JSAMPLE) G;
69 colormap2[ncolors] = (JSAMPLE) B;
H A Djccolor.c161 outptr0[col] = (JSAMPLE)
165 outptr1[col] = (JSAMPLE)
169 outptr2[col] = (JSAMPLE)
210 outptr[col] = (JSAMPLE)
259 outptr0[col] = (JSAMPLE)
263 outptr1[col] = (JSAMPLE)
267 outptr2[col] = (JSAMPLE)
H A Djdmaster.c274 JSAMPLE * table;
277 table = (JSAMPLE *)
279 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE));
283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
286 table[i] = (JSAMPLE) i;
293 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE));
295 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE));
H A Drdbmp.c90 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
91 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
92 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
98 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
99 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
100 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
212 *out_ptr++ = (JSAMPLE) c;
H A Djidctred.c128 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
205 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
280 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
337 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
385 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
H A Djquant2.c401 * we have to shift back to JSAMPLE units to get consistent distances;
532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total);
533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total);
534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total);
647 JSAMPLE colorlist[])
768 colorlist[ncolors++] = (JSAMPLE) i;
776 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[])
787 JSAMPLE * cptr; /* pointer into bestcolor[] array */
837 *cptr = (JSAMPLE) icolo
[all...]
H A Djquant1.c314 colormap[i][ptr+k] = (JSAMPLE) val;
378 indexptr[j] = (JSAMPLE) (val * blksize);
480 *ptrout++ = (JSAMPLE) pixcode;
508 *ptrout++ = (JSAMPLE) pixcode;
534 (size_t) (width * SIZEOF(JSAMPLE)));
600 *output_ptr++ = (JSAMPLE) pixcode;
633 JSAMPLE *range_limit = cinfo->sample_range_limit;
639 (size_t) (width * SIZEOF(JSAMPLE)));
681 *output_ptr += (JSAMPLE) pixcode;
H A Djutils.c128 register size_t count = (size_t) (num_cols * SIZEOF(JSAMPLE));
/external/qemu/distrib/jpeg-6b/
H A Djdsample.c195 register JSAMPLE invalue;
238 register JSAMPLE invalue;
266 register JSAMPLE invalue;
318 *outptr++ = (JSAMPLE) invalue;
319 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2);
324 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2);
325 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2);
330 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2);
331 *outptr++ = (JSAMPLE) invalue;
372 *outptr++ = (JSAMPLE) ((thiscolsu
[all...]
H A Djmorecfg.h77 /* JSAMPLE should be the smallest type that will hold the values 0..255.
83 typedef unsigned char JSAMPLE; typedef
88 typedef char JSAMPLE; typedef
104 /* JSAMPLE should be the smallest type that will hold the values 0..4095.
108 typedef short JSAMPLE; typedef
152 * extraction code like we did for JSAMPLE. (In other words, these
H A Drdppm.c77 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */
133 * In all cases, input is scaled to the size of JSAMPLE.
147 register JSAMPLE *rescale = source->rescale;
165 register JSAMPLE *rescale = source->rescale;
185 register JSAMPLE *rescale = source->rescale;
206 register JSAMPLE *rescale = source->rescale;
225 * In this case we just read right into the JSAMPLE buffer!
244 register JSAMPLE *rescale = source->rescale;
268 register JSAMPLE *rescale = source->rescale;
360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE)
[all...]
H A Djcsample.c91 register JSAMPLE pixval;
173 *outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix);
233 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1])
272 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) +
343 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
363 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
378 *outptr = (JSAMPLE) ((membersum + 32768) >> 16);
432 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
442 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16);
450 *outptr = (JSAMPLE) ((membersu
[all...]
H A Drdtarga.c111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
228 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F];
230 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F];
232 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F];
249 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */
250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]);
251 *ptr++ = (JSAMPLE) UC
[all...]
H A Djccolor.c161 outptr0[col] = (JSAMPLE)
165 outptr1[col] = (JSAMPLE)
169 outptr2[col] = (JSAMPLE)
208 outptr0[col] = (JSAMPLE)
212 outptr1[col] = (JSAMPLE)
216 outptr2[col] = (JSAMPLE)
254 outptr0[col] = (JSAMPLE)
258 outptr1[col] = (JSAMPLE)
262 outptr2[col] = (JSAMPLE)
303 outptr[col] = (JSAMPLE)
[all...]
H A Drdcolmap.c67 colormap0[ncolors] = (JSAMPLE) R;
68 colormap1[ncolors] = (JSAMPLE) G;
69 colormap2[ncolors] = (JSAMPLE) B;
H A Djdmaster.c274 JSAMPLE * table;
277 table = (JSAMPLE *)
279 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE));
283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
286 table[i] = (JSAMPLE) i;
293 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE));
295 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE));
H A Drdbmp.c90 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
91 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
92 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
98 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo);
99 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo);
100 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo);
212 *out_ptr++ = (JSAMPLE) c;
H A Djidctred.c128 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
205 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
280 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
337 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
385 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
H A Djquant2.c401 * we have to shift back to JSAMPLE units to get consistent distances;
532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total);
533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total);
534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total);
647 JSAMPLE colorlist[])
768 colorlist[ncolors++] = (JSAMPLE) i;
776 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[])
787 JSAMPLE * cptr; /* pointer into bestcolor[] array */
837 *cptr = (JSAMPLE) icolo
[all...]
H A Djquant1.c314 colormap[i][ptr+k] = (JSAMPLE) val;
378 indexptr[j] = (JSAMPLE) (val * blksize);
480 *ptrout++ = (JSAMPLE) pixcode;
508 *ptrout++ = (JSAMPLE) pixcode;
534 (size_t) (width * SIZEOF(JSAMPLE)));
600 *output_ptr++ = (JSAMPLE) pixcode;
633 JSAMPLE *range_limit = cinfo->sample_range_limit;
639 (size_t) (width * SIZEOF(JSAMPLE)));
681 *output_ptr += (JSAMPLE) pixcode;

Completed in 178 milliseconds

123