Home
last modified time | relevance | path

Searched refs:JSAMPLE (Results 1 – 25 of 79) sorted by relevance

1234

/external/libjpeg-turbo/
Djdsample.c164 register JSAMPLE invalue; in int_upsample()
207 register JSAMPLE invalue; in h2v1_upsample()
235 register JSAMPLE invalue; in h2v2_upsample()
287 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
288 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
293 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2); in h2v1_fancy_upsample()
294 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
299 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2); in h2v1_fancy_upsample()
300 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
341 *outptr++ = (JSAMPLE) ((thiscolsum * 4 + 8) >> 4); in h2v2_fancy_upsample()
[all …]
Drdppm.c70 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */
145 register JSAMPLE *rescale = source->rescale; in get_text_gray_row()
164 register JSAMPLE *rescale = source->rescale; in get_text_rgb_row()
185 register JSAMPLE *rescale = source->rescale; in get_scaled_gray_row()
206 register JSAMPLE *rescale = source->rescale; in get_scaled_rgb_row()
244 register JSAMPLE *rescale = source->rescale; in get_word_gray_row()
268 register JSAMPLE *rescale = source->rescale; in get_word_rgb_row()
361 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR)) { in start_input_ppm()
376 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR)) { in start_input_ppm()
415 source->rescale = (JSAMPLE *) in start_input_ppm()
[all …]
Drdtarga.c112 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()
185 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row()
229 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
231 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
233 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row()
251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]); in get_24bit_row()
252 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_24bit_row()
Djcsample.c96 register JSAMPLE pixval; in expand_right_edge()
178 *outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix); in int_downsample()
238 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1]) in h2v1_downsample()
277 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) + in h2v2_downsample()
348 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
368 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
383 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
437 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
447 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
455 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
Djccolext.c60 outptr0[col] = (JSAMPLE) in LOCAL()
64 outptr1[col] = (JSAMPLE) in LOCAL()
68 outptr2[col] = (JSAMPLE) in LOCAL()
110 outptr[col] = (JSAMPLE) in LOCAL()
Djquant1.c316 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
380 indexptr[j] = (JSAMPLE) (val * blksize); in create_colorindex()
482 *ptrout++ = (JSAMPLE) pixcode; in color_quantize()
510 *ptrout++ = (JSAMPLE) pixcode; in color_quantize3()
535 jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE))); in quantize_ord_dither()
601 *output_ptr++ = (JSAMPLE) pixcode; in quantize3_ord_dither()
634 JSAMPLE *range_limit = cinfo->sample_range_limit; in quantize_fs_dither()
639 jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE))); in quantize_fs_dither()
681 *output_ptr += (JSAMPLE) pixcode; in quantize_fs_dither()
Djmorecfg.h50 typedef unsigned char JSAMPLE; typedef
55 typedef char JSAMPLE; typedef
75 typedef short JSAMPLE; typedef
Djquant2.c511 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
512 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
513 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
626 JSAMPLE colorlist[]) in find_nearby_colors()
747 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
755 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors()
766 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors()
816 *cptr = (JSAMPLE) icolor; in find_best_colors()
843 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap()
846 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap()
[all …]
Drdbmp.c94 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
95 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
96 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
102 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
103 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
104 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
Djidctred.c130 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
208 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
283 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_2x2()
341 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3) in jpeg_idct_2x2()
389 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_1x1()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jdsample.c195 register JSAMPLE invalue; in int_upsample()
238 register JSAMPLE invalue; in h2v1_upsample()
266 register JSAMPLE invalue; in h2v2_upsample()
318 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
319 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
324 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2); in h2v1_fancy_upsample()
325 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
330 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2); in h2v1_fancy_upsample()
331 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
372 *outptr++ = (JSAMPLE) ((thiscolsum * 4 + 8) >> 4); in h2v2_fancy_upsample()
[all …]
Dfpdfapi_jcsample.c91 register JSAMPLE pixval; in expand_right_edge()
173 *outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix); in int_downsample()
233 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1]) in h2v1_downsample()
272 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) + in h2v2_downsample()
343 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
363 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
378 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
432 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
442 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
450 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
Djmorecfg.h62 typedef unsigned char JSAMPLE; typedef
67 typedef char JSAMPLE; typedef
87 typedef short JSAMPLE; typedef
Dfpdfapi_jccolor.c159 outptr0[col] = (JSAMPLE) in rgb_ycc_convert()
163 outptr1[col] = (JSAMPLE) in rgb_ycc_convert()
167 outptr2[col] = (JSAMPLE) in rgb_ycc_convert()
208 outptr[col] = (JSAMPLE) in rgb_gray_convert()
257 outptr0[col] = (JSAMPLE) in cmyk_ycck_convert()
261 outptr1[col] = (JSAMPLE) in cmyk_ycck_convert()
265 outptr2[col] = (JSAMPLE) in cmyk_ycck_convert()
Dfpdfapi_jdmaster.c251 JSAMPLE * table; in prepare_range_limit_table()
254 table = (JSAMPLE *) in prepare_range_limit_table()
256 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
260 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
263 table[i] = (JSAMPLE) i; in prepare_range_limit_table()
270 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
272 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
Dfpdfapi_jidctred.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); in jpeg_idct_2x2()
337 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3) in jpeg_idct_2x2()
385 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_1x1()
/external/opencv3/3rdparty/libjpeg/
Djccolor.c159 outptr0[col] = (JSAMPLE) in rgb_ycc_convert()
163 outptr1[col] = (JSAMPLE) in rgb_ycc_convert()
167 outptr2[col] = (JSAMPLE) in rgb_ycc_convert()
207 outptr[col] = (JSAMPLE) in rgb_gray_convert()
256 outptr0[col] = (JSAMPLE) in cmyk_ycck_convert()
260 outptr1[col] = (JSAMPLE) in cmyk_ycck_convert()
264 outptr2[col] = (JSAMPLE) in cmyk_ycck_convert()
303 outptr0[col] = (JSAMPLE) ((r - g + CENTERJSAMPLE) & MAXJSAMPLE); in rgb_rgb1_convert()
304 outptr1[col] = (JSAMPLE) g; in rgb_rgb1_convert()
305 outptr2[col] = (JSAMPLE) ((b - g + CENTERJSAMPLE) & MAXJSAMPLE); in rgb_rgb1_convert()
Djcsample.c100 register JSAMPLE pixval; in expand_right_edge()
184 *outptr++ = (JSAMPLE) ((outvalue + numpix2) / numpix); in int_downsample()
245 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1]) in h2v1_downsample()
284 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) + in h2v2_downsample()
356 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
376 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
391 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
446 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
456 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
464 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
Djmorecfg.h60 typedef unsigned char JSAMPLE; typedef
65 typedef char JSAMPLE; typedef
85 typedef short JSAMPLE; typedef
Djdmaster.c232 JSAMPLE * table; in prepare_range_limit_table()
235 table = (JSAMPLE *) in prepare_range_limit_table()
237 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
241 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
244 table[i] = (JSAMPLE) i; in prepare_range_limit_table()
251 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
253 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
Djquant1.c315 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
379 indexptr[j] = (JSAMPLE) (val * blksize); in create_colorindex()
481 *ptrout++ = (JSAMPLE) pixcode; in color_quantize()
509 *ptrout++ = (JSAMPLE) pixcode; in color_quantize3()
535 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_ord_dither()
601 *output_ptr++ = (JSAMPLE) pixcode; in quantize3_ord_dither()
634 JSAMPLE *range_limit = cinfo->sample_range_limit; in quantize_fs_dither()
640 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_fs_dither()
682 *output_ptr += (JSAMPLE) pixcode; in quantize_fs_dither()
Djquant2.c533 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
534 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
535 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
648 JSAMPLE colorlist[]) in find_nearby_colors()
769 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
777 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors()
788 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors()
838 *cptr = (JSAMPLE) icolor; in find_best_colors()
865 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap()
868 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap()
[all …]
Djdcolor.c152 register JSAMPLE * range_limit = cinfo->sample_range_limit; in ycc_rgb_convert()
236 outptr[col] = (JSAMPLE) in rgb_gray_convert()
273 outptr[RGB_RED] = (JSAMPLE) ((r + g - CENTERJSAMPLE) & MAXJSAMPLE); in rgb1_rgb_convert()
274 outptr[RGB_GREEN] = (JSAMPLE) g; in rgb1_rgb_convert()
275 outptr[RGB_BLUE] = (JSAMPLE) ((b + g - CENTERJSAMPLE) & MAXJSAMPLE); in rgb1_rgb_convert()
316 outptr[col] = (JSAMPLE) in rgb1_gray_convert()
451 register JSAMPLE * range_limit = cinfo->sample_range_limit; in ycck_cmyk_convert()
/external/skia/src/codec/
DSkJpegCodec.cpp315 JSAMPLE* dstRow; in onGetPixels()
321 dstRow = (JSAMPLE*) dst; in onGetPixels()
339 dst = SkTAddOffset<JSAMPLE>(dst, dstRowBytes); in onGetPixels()
341 dstRow = SkTAddOffset<JSAMPLE>(dstRow, dstRowBytes); in onGetPixels()
488 JSAMPLE* dstRow; in onGetScanlines()
496 dstRow = (JSAMPLE*) dst; in onGetScanlines()
511 dst = SkTAddOffset<JSAMPLE>(dst, dstRowBytes); in onGetScanlines()
513 dstRow = SkTAddOffset<JSAMPLE>(dstRow, dstRowBytes); in onGetScanlines()
672 rowptrs[i] = SkTAddOffset<JSAMPLE>(pixels[0], i * sizeInfo.fYWidthBytes); in onGetYUV8Planes()
675 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[1], i * sizeInfo.fUWidthBytes); in onGetYUV8Planes()
[all …]
/external/libjpeg-turbo/simd/
Djsimd.h471 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
474 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
477 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
480 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
483 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
486 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
489 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
493 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
496 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
499 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
[all …]

1234