/external/jpeg/ |
D | jdsample.c | 195 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 …]
|
D | rdppm.c | 77 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */ 147 register JSAMPLE *rescale = source->rescale; in get_text_gray_row() 165 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() 360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm() 375 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm() 415 source->rescale = (JSAMPLE *) in start_input_ppm() [all …]
|
D | rdtarga.c | 111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row() 228 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 230 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 232 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 249 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row() 250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]); in get_24bit_row() 251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_24bit_row()
|
D | jcsample.c | 91 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()
|
D | rdbmp.c | 90 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 91 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 92 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 98 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 99 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 100 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 212 *out_ptr++ = (JSAMPLE) c; in preload_image()
|
D | jmorecfg.h | 81 typedef unsigned char JSAMPLE; typedef 86 typedef char JSAMPLE; typedef 106 typedef short JSAMPLE; typedef
|
D | jdmaster.c | 274 JSAMPLE * table; in prepare_range_limit_table() 277 table = (JSAMPLE *) in prepare_range_limit_table() 279 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 286 table[i] = (JSAMPLE) i; in prepare_range_limit_table() 293 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 295 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
|
D | jquant1.c | 314 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap() 378 indexptr[j] = (JSAMPLE) (val * blksize); in create_colorindex() 480 *ptrout++ = (JSAMPLE) pixcode; in color_quantize() 508 *ptrout++ = (JSAMPLE) pixcode; in color_quantize3() 534 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_ord_dither() 600 *output_ptr++ = (JSAMPLE) pixcode; in quantize3_ord_dither() 633 JSAMPLE *range_limit = cinfo->sample_range_limit; in quantize_fs_dither() 639 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_fs_dither() 681 *output_ptr += (JSAMPLE) pixcode; in quantize_fs_dither()
|
D | jccolor.c | 161 outptr0[col] = (JSAMPLE) in rgb_ycc_convert() 165 outptr1[col] = (JSAMPLE) in rgb_ycc_convert() 169 outptr2[col] = (JSAMPLE) in rgb_ycc_convert() 210 outptr[col] = (JSAMPLE) in rgb_gray_convert() 259 outptr0[col] = (JSAMPLE) in cmyk_ycck_convert() 263 outptr1[col] = (JSAMPLE) in cmyk_ycck_convert() 267 outptr2[col] = (JSAMPLE) in cmyk_ycck_convert()
|
D | jquant2.c | 532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color() 533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color() 534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color() 647 JSAMPLE colorlist[]) in find_nearby_colors() 768 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors() 776 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors() 787 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors() 837 *cptr = (JSAMPLE) icolor; in find_best_colors() 864 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap() 867 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap() [all …]
|
D | jidctred.c | 128 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/qemu/distrib/jpeg-6b/ |
D | jdsample.c | 195 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 …]
|
D | rdppm.c | 77 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */ 147 register JSAMPLE *rescale = source->rescale; in get_text_gray_row() 165 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() 360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm() 375 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm() 415 source->rescale = (JSAMPLE *) in start_input_ppm() [all …]
|
D | rdtarga.c | 111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row() 228 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 230 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 232 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row() 249 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row() 250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]); in get_24bit_row() 251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_24bit_row()
|
D | jccolor.c | 161 outptr0[col] = (JSAMPLE) in rgb_ycc_convert() 165 outptr1[col] = (JSAMPLE) in rgb_ycc_convert() 169 outptr2[col] = (JSAMPLE) in rgb_ycc_convert() 208 outptr0[col] = (JSAMPLE) in rgb565_ycc_convert() 212 outptr1[col] = (JSAMPLE) in rgb565_ycc_convert() 216 outptr2[col] = (JSAMPLE) in rgb565_ycc_convert() 254 outptr0[col] = (JSAMPLE) in rgba8888_ycc_convert() 258 outptr1[col] = (JSAMPLE) in rgba8888_ycc_convert() 262 outptr2[col] = (JSAMPLE) in rgba8888_ycc_convert() 303 outptr[col] = (JSAMPLE) in rgb_gray_convert() [all …]
|
D | jcsample.c | 91 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()
|
D | jmorecfg.h | 83 typedef unsigned char JSAMPLE; typedef 88 typedef char JSAMPLE; typedef 108 typedef short JSAMPLE; typedef
|
D | rdbmp.c | 90 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 91 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 92 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 98 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 99 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 100 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap() 212 *out_ptr++ = (JSAMPLE) c; in preload_image()
|
D | jdmaster.c | 274 JSAMPLE * table; in prepare_range_limit_table() 277 table = (JSAMPLE *) in prepare_range_limit_table() 279 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 286 table[i] = (JSAMPLE) i; in prepare_range_limit_table() 293 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table() 295 cinfo->sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
|
D | jquant1.c | 314 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap() 378 indexptr[j] = (JSAMPLE) (val * blksize); in create_colorindex() 480 *ptrout++ = (JSAMPLE) pixcode; in color_quantize() 508 *ptrout++ = (JSAMPLE) pixcode; in color_quantize3() 534 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_ord_dither() 600 *output_ptr++ = (JSAMPLE) pixcode; in quantize3_ord_dither() 633 JSAMPLE *range_limit = cinfo->sample_range_limit; in quantize_fs_dither() 639 (size_t) (width * SIZEOF(JSAMPLE))); in quantize_fs_dither() 681 *output_ptr += (JSAMPLE) pixcode; in quantize_fs_dither()
|
D | jquant2.c | 532 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color() 533 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color() 534 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color() 647 JSAMPLE colorlist[]) in find_nearby_colors() 768 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors() 776 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors() 787 JSAMPLE * cptr; /* pointer into bestcolor[] array */ in find_best_colors() 837 *cptr = (JSAMPLE) icolor; in find_best_colors() 864 register JSAMPLE * cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap() 867 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap() [all …]
|
D | jidctred.c | 128 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()
|
D | rdcolmap.c | 67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
/external/skia/src/images/ |
D | SkImageDecoder_libjpeg.cpp | 302 JSAMPLE* rowptr = (JSAMPLE*)buffer; in skip_src_rows() 315 JSAMPLE* rowptr = (JSAMPLE*)buffer; in skip_src_rows_tile() 649 JSAMPLE* rowptr = (JSAMPLE*)bm->getPixels(); in onDecode() 693 JSAMPLE* rowptr = (JSAMPLE*)srcRow; in onDecode() 877 JSAMPLE* rowptr = (JSAMPLE*)bitmap.getPixels(); in onDecodeSubset() 930 JSAMPLE* rowptr = (JSAMPLE*)srcRow; in onDecodeSubset()
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkImageDecoder_libjpeg.cpp | 302 JSAMPLE* rowptr = (JSAMPLE*)buffer; in skip_src_rows() 315 JSAMPLE* rowptr = (JSAMPLE*)buffer; in skip_src_rows_tile() 649 JSAMPLE* rowptr = (JSAMPLE*)bm->getPixels(); in onDecode() 693 JSAMPLE* rowptr = (JSAMPLE*)srcRow; in onDecode() 877 JSAMPLE* rowptr = (JSAMPLE*)bitmap.getPixels(); in onDecodeSubset() 930 JSAMPLE* rowptr = (JSAMPLE*)srcRow; in onDecodeSubset()
|