Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/libjpeg-turbo/
Dcmyk.h27 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 …]
Drdppm.c67 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 …]
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 + 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 …]
Drdtarga.c106 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()
Djcsample.c98 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()
Djccolext.c61 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()
Djquant1.c318 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()
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 …]
Djidctred.c131 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()
Drdbmp.c103 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()
Drdcolmap.c67 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()
Djdmaster.c411 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()
Djmemmgr.c445 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()
Djmorecfg.h48 typedef unsigned char JSAMPLE; typedef
62 typedef short JSAMPLE; typedef
Djdcol565.c31 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()
Djdmrg565.c29 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/
Djquanti-avx2.asm52 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 *)
Djdsample-avx2.asm95 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/
Djquanti-avx2.asm48 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 *)
Djdsample-avx2.asm261 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/
DSkJpegCodec.cpp460 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/
Djsimdcfg.inc.h72 %define JSAMPLE byte ; unsigned char
73 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
89 %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
Djsimdcfg.inc44 %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/
Djdsample-neon.c76 *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/
Djsimd.h880 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 …]

123