/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | cmyk.h | 27 rgb_to_cmyk(JSAMPLE r, JSAMPLE g, JSAMPLE b, JSAMPLE *c, JSAMPLE *m, in LOCAL() 28 JSAMPLE *y, JSAMPLE *k) in LOCAL() 41 *c = (JSAMPLE)(255.0 - ctmp * 255.0 + 0.5); in LOCAL() 42 *m = (JSAMPLE)(255.0 - mtmp * 255.0 + 0.5); in LOCAL() 43 *y = (JSAMPLE)(255.0 - ytmp * 255.0 + 0.5); in LOCAL() 44 *k = (JSAMPLE)(255.0 - ktmp * 255.0 + 0.5); in LOCAL() 52 cmyk_to_rgb(JSAMPLE c, JSAMPLE m, JSAMPLE y, JSAMPLE k, JSAMPLE *r, JSAMPLE *g, in LOCAL() 53 JSAMPLE *b) in LOCAL() 55 *r = (JSAMPLE)((double)c * (double)k / 255.0 + 0.5); in LOCAL() 56 *g = (JSAMPLE)((double)m * (double)k / 255.0 + 0.5); in LOCAL() [all …]
|
D | rdppm.c | 67 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */ 141 register JSAMPLE *rescale = source->rescale; in get_text_gray_row() 169 register JSAMPLE *rescale = source->rescale; in get_text_gray_rgb_row() 204 register JSAMPLE *rescale = source->rescale; in get_text_gray_cmyk_row() 211 JSAMPLE gray = read_pbm_integer(cinfo, infile, maxval); in get_text_gray_cmyk_row() 217 JSAMPLE gray = rescale[read_pbm_integer(cinfo, infile, maxval)]; in get_text_gray_cmyk_row() 243 register JSAMPLE *rescale = source->rescale; in get_text_rgb_row() 278 register JSAMPLE *rescale = source->rescale; in get_text_rgb_cmyk_row() 285 JSAMPLE r = read_pbm_integer(cinfo, infile, maxval); in get_text_rgb_cmyk_row() 286 JSAMPLE g = read_pbm_integer(cinfo, infile, maxval); in get_text_rgb_cmyk_row() [all …]
|
D | jdsample.c | 164 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 + inptr[0] + 2) >> 2); in h2v1_fancy_upsample() 293 *outptr++ = (JSAMPLE)((invalue + inptr[-2] + 1) >> 2); in h2v1_fancy_upsample() 294 *outptr++ = (JSAMPLE)((invalue + inptr[0] + 2) >> 2); in h2v1_fancy_upsample() 299 *outptr++ = (JSAMPLE)((invalue * 3 + inptr[-1] + 1) >> 2); in h2v1_fancy_upsample() 300 *outptr++ = (JSAMPLE)invalue; in h2v1_fancy_upsample() 342 *outptr++ = (JSAMPLE)((thiscolsum + bias) >> 2); in h1v2_fancy_upsample() [all …]
|
D | rdtarga.c | 106 sinfo->colormap[2][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 107 sinfo->colormap[1][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 108 sinfo->colormap[0][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 177 *ptr++ = (JSAMPLE)UCH(source->tga_pixel[0]); in get_8bit_gray_row() 224 ptr[2] = (JSAMPLE)c5to8bits[t & 0x1F]; in get_16bit_row() 226 ptr[1] = (JSAMPLE)c5to8bits[t & 0x1F]; in get_16bit_row() 228 ptr[0] = (JSAMPLE)c5to8bits[t & 0x1F]; in get_16bit_row() 245 *ptr++ = (JSAMPLE)UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row() 246 *ptr++ = (JSAMPLE)UCH(source->tga_pixel[1]); in get_24bit_row() 247 *ptr++ = (JSAMPLE)UCH(source->tga_pixel[0]); in get_24bit_row()
|
D | jcsample.c | 98 register JSAMPLE pixval; in expand_right_edge() 180 *outptr++ = (JSAMPLE)((outvalue + numpix2) / numpix); in int_downsample() 240 *outptr++ = (JSAMPLE)((inptr[0] + inptr[1] + bias) >> 1); in h2v1_downsample() 279 (JSAMPLE)((inptr0[0] + inptr0[1] + inptr1[0] + inptr1[1] + bias) >> 2); in h2v2_downsample() 344 *outptr++ = (JSAMPLE)((membersum + 32768) >> 16); in h2v2_smooth_downsample() 360 *outptr++ = (JSAMPLE)((membersum + 32768) >> 16); in h2v2_smooth_downsample() 371 *outptr = (JSAMPLE)((membersum + 32768) >> 16); in h2v2_smooth_downsample() 423 *outptr++ = (JSAMPLE)((membersum + 32768) >> 16); in fullsize_smooth_downsample() 432 *outptr++ = (JSAMPLE)((membersum + 32768) >> 16); in fullsize_smooth_downsample() 440 *outptr = (JSAMPLE)((membersum + 32768) >> 16); in fullsize_smooth_downsample()
|
D | jccolext.c | 61 outptr0[col] = (JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] + in LOCAL() 64 outptr1[col] = (JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] + in LOCAL() 67 outptr2[col] = (JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] + in LOCAL() 108 outptr[col] = (JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] + in LOCAL()
|
D | jquant1.c | 318 colormap[i][ptr + k] = (JSAMPLE)val; in create_colormap() 382 indexptr[j] = (JSAMPLE)(val * blksize); in create_colorindex() 484 *ptrout++ = (JSAMPLE)pixcode; in color_quantize() 512 *ptrout++ = (JSAMPLE)pixcode; in color_quantize3() 537 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()
|
D | jquant2.c | 511 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 …]
|
D | jidctred.c | 131 JSAMPLE *range_limit = IDCT_range_limit(cinfo); 213 JSAMPLE dcval = range_limit[(int)DESCALE((JLONG)wsptr[0], 288 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_2x2() 348 JSAMPLE dcval = range_limit[(int)DESCALE((JLONG)wsptr[0], in jpeg_idct_2x2() 396 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_1x1()
|
D | rdbmp.c | 103 sinfo->colormap[2][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 104 sinfo->colormap[1][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 105 sinfo->colormap[0][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 114 sinfo->colormap[2][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 115 sinfo->colormap[1][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 116 sinfo->colormap[0][i] = (JSAMPLE)read_byte(sinfo); in read_colormap() 251 JSAMPLE b = *inptr++, g = *inptr++, r = *inptr++; in get_24bit_row() 315 JSAMPLE b = *inptr++, g = *inptr++, r = *inptr++; in get_32bit_row()
|
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()
|
D | jdmaster.c | 411 JSAMPLE *table; in prepare_range_limit_table() 414 table = (JSAMPLE *) in prepare_range_limit_table() 416 (5 * (MAXJSAMPLE + 1) + CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table() 420 MEMZERO(table - (MAXJSAMPLE + 1), (MAXJSAMPLE + 1) * sizeof(JSAMPLE)); in prepare_range_limit_table() 423 table[i] = (JSAMPLE)i; in prepare_range_limit_table() 430 (2 * (MAXJSAMPLE + 1) - CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table() 432 cinfo->sample_range_limit, CENTERJSAMPLE * sizeof(JSAMPLE)); in prepare_range_limit_table()
|
D | jmemmgr.c | 445 if ((ALIGN_SIZE % sizeof(JSAMPLE)) != 0) in alloc_sarray() 454 sizeof(JSAMPLE)); in alloc_sarray() 458 ((long)samplesperrow * sizeof(JSAMPLE)); in alloc_sarray() 477 sizeof(JSAMPLE))); in alloc_sarray() 656 (long)sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays() 659 (long)sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays() 714 (long)sizeof(JSAMPLE)); in realize_virt_arrays() 758 bytesperrow = (long)ptr->samplesperrow * sizeof(JSAMPLE); in do_sarray_io() 882 size_t bytesperrow = (size_t)ptr->samplesperrow * sizeof(JSAMPLE); in access_virt_sarray()
|
D | jmorecfg.h | 48 typedef unsigned char JSAMPLE; typedef 62 typedef short JSAMPLE; typedef
|
D | jdcol565.c | 31 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 110 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 247 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 345 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL()
|
D | jdmrg565.c | 29 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 100 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 173 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL() 269 register JSAMPLE *range_limit = cinfo->sample_range_limit; in LOCAL()
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/i386/ |
D | jquanti-avx2.asm | 52 mov ebx, JSAMPROW [esi+0*SIZEOF_JSAMPROW] ; (JSAMPLE *) 53 mov edx, JSAMPROW [esi+1*SIZEOF_JSAMPROW] ; (JSAMPLE *) 57 mov ebx, JSAMPROW [esi+2*SIZEOF_JSAMPROW] ; (JSAMPLE *) 58 mov edx, JSAMPROW [esi+3*SIZEOF_JSAMPROW] ; (JSAMPLE *) 62 mov ebx, JSAMPROW [esi+4*SIZEOF_JSAMPROW] ; (JSAMPLE *) 63 mov edx, JSAMPROW [esi+5*SIZEOF_JSAMPROW] ; (JSAMPLE *) 67 mov ebx, JSAMPROW [esi+6*SIZEOF_JSAMPROW] ; (JSAMPLE *) 68 mov edx, JSAMPROW [esi+7*SIZEOF_JSAMPROW] ; (JSAMPLE *)
|
D | jdsample-avx2.asm | 95 mov dl, JSAMPLE [esi+(eax-1)*SIZEOF_JSAMPLE] 96 mov JSAMPLE [esi+eax*SIZEOF_JSAMPLE], dl ; insert a dummy sample 275 mov dl, JSAMPLE [ecx+(eax-1)*SIZEOF_JSAMPLE] 276 mov JSAMPLE [ecx+eax*SIZEOF_JSAMPLE], dl 277 mov dl, JSAMPLE [ebx+(eax-1)*SIZEOF_JSAMPLE] 278 mov JSAMPLE [ebx+eax*SIZEOF_JSAMPLE], dl 279 mov dl, JSAMPLE [esi+(eax-1)*SIZEOF_JSAMPLE] 280 mov JSAMPLE [esi+eax*SIZEOF_JSAMPLE], dl ; insert a dummy sample
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/x86_64/ |
D | jquanti-avx2.asm | 48 mov rsip, JSAMPROW [r10+0*SIZEOF_JSAMPROW] ; (JSAMPLE *) 49 mov rdip, JSAMPROW [r10+1*SIZEOF_JSAMPROW] ; (JSAMPLE *) 53 mov rsip, JSAMPROW [r10+2*SIZEOF_JSAMPROW] ; (JSAMPLE *) 54 mov rdip, JSAMPROW [r10+3*SIZEOF_JSAMPROW] ; (JSAMPLE *) 58 mov rsip, JSAMPROW [r10+4*SIZEOF_JSAMPROW] ; (JSAMPLE *) 59 mov rdip, JSAMPROW [r10+5*SIZEOF_JSAMPROW] ; (JSAMPLE *) 63 mov rsip, JSAMPROW [r10+6*SIZEOF_JSAMPROW] ; (JSAMPLE *) 64 mov rdip, JSAMPROW [r10+7*SIZEOF_JSAMPROW] ; (JSAMPLE *)
|
D | jdsample-avx2.asm | 261 mov dl, JSAMPLE [rcx+(rax-1)*SIZEOF_JSAMPLE] 262 mov JSAMPLE [rcx+rax*SIZEOF_JSAMPLE], dl 263 mov dl, JSAMPLE [rbx+(rax-1)*SIZEOF_JSAMPLE] 264 mov JSAMPLE [rbx+rax*SIZEOF_JSAMPLE], dl 265 mov dl, JSAMPLE [rsi+(rax-1)*SIZEOF_JSAMPLE] 266 mov JSAMPLE [rsi+rax*SIZEOF_JSAMPLE], dl ; insert a dummy sample
|
/third_party/skia/src/codec/ |
D | SkJpegCodec.cpp | 460 JSAMPLE* decodeDst = (JSAMPLE*) dst; in readRows() 466 decodeDst = (JSAMPLE*) fSwizzleSrcRow; in readRows() 472 decodeDst = (JSAMPLE*) fColorXformSrcRow; in readRows() 477 decodeDst = (JSAMPLE*) fSwizzleSrcRow; in readRows() 497 decodeDst = SkTAddOffset<JSAMPLE>(decodeDst, decodeDstRowBytes); in readRows() 893 static_assert(sizeof(JSAMPLE) == 1); in onGetYUVAPlanes() 895 rowptrs[i] = static_cast<JSAMPLE*>(planes[0].writable_addr()) + i* planes[0].rowBytes(); in onGetYUVAPlanes() 899 static_cast<JSAMPLE*>(planes[1].writable_addr()) + i* planes[1].rowBytes(); in onGetYUVAPlanes() 901 static_cast<JSAMPLE*>(planes[2].writable_addr()) + i* planes[2].rowBytes(); in onGetYUVAPlanes() 940 SkAutoTMalloc<JSAMPLE> extraRow(planes[0].rowBytes()); in onGetYUVAPlanes()
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/nasm/ |
D | jsimdcfg.inc.h | 72 %define JSAMPLE byte ; unsigned char 73 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE) 89 %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
|
D | jsimdcfg.inc | 44 %define JSAMPLE byte ; unsigned char 45 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE) 57 %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
D | jdsample-neon.c | 76 *outptr = (JSAMPLE)GETJSAMPLE(*inptr); in jsimd_h2v1_fancy_upsample_neon() 231 *outptr0 = (JSAMPLE)((s0colsum0 * 4 + 8) >> 4); in jsimd_h2v2_fancy_upsample_neon() 233 *outptr1 = (JSAMPLE)((s0colsum1 * 4 + 8) >> 4); in jsimd_h2v2_fancy_upsample_neon() 368 outptr0[2 * downsampled_width - 1] = (JSAMPLE)((s1colsum0 * 4 + 7) >> 4); in jsimd_h2v2_fancy_upsample_neon() 371 outptr1[2 * downsampled_width - 1] = (JSAMPLE)((s1colsum1 * 4 + 7) >> 4); in jsimd_h2v2_fancy_upsample_neon()
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/ |
D | jsimd.h | 880 JSAMPARRAY output_buf, JSAMPLE *range); 883 JSAMPARRAY output_buf, JSAMPLE *range); 886 JSAMPARRAY output_buf, JSAMPLE *range); 889 JSAMPARRAY output_buf, JSAMPLE *range); 892 JSAMPARRAY output_buf, JSAMPLE *range); 895 JSAMPARRAY output_buf, JSAMPLE *range); 898 JSAMPARRAY output_buf, JSAMPLE *range); 902 JSAMPARRAY output_buf, JSAMPLE *range); 905 JSAMPARRAY output_buf, JSAMPLE *range); 908 JSAMPARRAY output_buf, JSAMPLE *range); [all …]
|