Home
last modified time | relevance | path

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

123

/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/libjpeg-turbo/
Djdsample.c165 register JSAMPLE invalue; in int_upsample()
208 register JSAMPLE invalue; in h2v1_upsample()
236 register JSAMPLE invalue; in h2v2_upsample()
288 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
289 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
294 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(inptr[-2]) + 1) >> 2); in h2v1_fancy_upsample()
295 *outptr++ = (JSAMPLE) ((invalue + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
300 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2); in h2v1_fancy_upsample()
301 *outptr++ = (JSAMPLE) invalue; in h2v1_fancy_upsample()
340 *outptr++ = (JSAMPLE) ((thiscolsum + 1) >> 2); in h1v2_fancy_upsample()
[all …]
Drdppm.c71 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */
146 register JSAMPLE *rescale = source->rescale; in get_text_gray_row()
165 register JSAMPLE *rescale = source->rescale; in get_text_rgb_row()
186 register JSAMPLE *rescale = source->rescale; in get_scaled_gray_row()
207 register JSAMPLE *rescale = source->rescale; in get_scaled_rgb_row()
245 register JSAMPLE *rescale = source->rescale; in get_word_gray_row()
272 register JSAMPLE *rescale = source->rescale; in get_word_rgb_row()
372 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR)) { in start_input_ppm()
387 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR)) { in start_input_ppm()
426 source->rescale = (JSAMPLE *) in start_input_ppm()
[all …]
Drdtarga.c113 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
114 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
115 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
186 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row()
230 ptr[2] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
232 ptr[1] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
234 ptr[0] = (JSAMPLE) c5to8bits[t & 0x1F]; in get_16bit_row()
251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row()
252 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]); in get_24bit_row()
253 *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) ((GETJSAMPLE(*inptr) + GETJSAMPLE(inptr[1]) in h2v1_downsample()
279 *outptr++ = (JSAMPLE) ((GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) + in h2v2_downsample()
350 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
370 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
385 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in h2v2_smooth_downsample()
439 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
449 *outptr++ = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
457 *outptr = (JSAMPLE) ((membersum + 32768) >> 16); in fullsize_smooth_downsample()
Djccolext.c61 outptr0[col] = (JSAMPLE) in LOCAL()
65 outptr1[col] = (JSAMPLE) in LOCAL()
69 outptr2[col] = (JSAMPLE) in LOCAL()
111 outptr[col] = (JSAMPLE) in LOCAL()
Djmorecfg.h51 typedef unsigned char JSAMPLE; typedef
56 typedef char JSAMPLE; typedef
76 typedef short JSAMPLE; typedef
Djquant1.c317 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
381 indexptr[j] = (JSAMPLE) (val * blksize); in create_colorindex()
483 *ptrout++ = (JSAMPLE) pixcode; in color_quantize()
511 *ptrout++ = (JSAMPLE) pixcode; in color_quantize3()
536 jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE))); in quantize_ord_dither()
602 *output_ptr++ = (JSAMPLE) pixcode; in quantize3_ord_dither()
635 JSAMPLE *range_limit = cinfo->sample_range_limit; in quantize_fs_dither()
640 jzero_far((void *) output_buf[row], (size_t) (width * sizeof(JSAMPLE))); in quantize_fs_dither()
682 *output_ptr += (JSAMPLE) pixcode; in quantize_fs_dither()
Djquant2.c512 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
513 cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); in compute_color()
514 cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); in compute_color()
627 JSAMPLE colorlist[]) in find_nearby_colors()
748 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
756 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) in find_best_colors()
767 JSAMPLE *cptr; /* pointer into bestcolor[] array */ in find_best_colors()
817 *cptr = (JSAMPLE) icolor; in find_best_colors()
844 register JSAMPLE *cptr; /* pointer into bestcolor[] array */ in fill_inverse_cmap()
847 JSAMPLE colorlist[MAXNUMCOLORS]; in fill_inverse_cmap()
[all …]
Drdbmp.c95 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
96 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
97 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
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()
Djidctred.c131 JSAMPLE *range_limit = IDCT_range_limit(cinfo);
209 JSAMPLE dcval = range_limit[(int) DESCALE((JLONG) wsptr[0], PASS1_BITS+3)
284 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_2x2()
342 JSAMPLE dcval = range_limit[(int) DESCALE((JLONG) wsptr[0], PASS1_BITS+3) in jpeg_idct_2x2()
390 JSAMPLE *range_limit = IDCT_range_limit(cinfo); in jpeg_idct_1x1()
Drdcolmap.c68 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry()
69 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry()
70 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
Djdmaster.c423 JSAMPLE *table; in prepare_range_limit_table()
426 table = (JSAMPLE *) in prepare_range_limit_table()
428 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
432 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * sizeof(JSAMPLE)); in prepare_range_limit_table()
435 table[i] = (JSAMPLE) i; in prepare_range_limit_table()
442 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
444 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()
883 size_t bytesperrow = (size_t) ptr->samplesperrow * sizeof(JSAMPLE); in access_virt_sarray()
Drdrle.c224 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); in get_pseudocolor_row()
225 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); in get_pseudocolor_row()
226 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); in get_pseudocolor_row()
299 *scanline++ = (JSAMPLE) in load_image()
/external/libjpeg-turbo/simd/
Djsimd.h586 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
589 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
592 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
595 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
598 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
601 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
604 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
608 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
611 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
614 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf, JSAMPLE* range);
[all …]
Djsimdcfg.inc44 %define JSAMPLE byte ; unsigned char
45 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
57 %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
/external/skia/src/codec/
DSkJpegCodec.cpp501 JSAMPLE* decodeDst = (JSAMPLE*) dst; in readRows()
507 decodeDst = (JSAMPLE*) fSwizzleSrcRow; in readRows()
513 decodeDst = (JSAMPLE*) fColorXformSrcRow; in readRows()
518 decodeDst = (JSAMPLE*) fSwizzleSrcRow; in readRows()
538 decodeDst = SkTAddOffset<JSAMPLE>(decodeDst, decodeDstRowBytes); in readRows()
920 rowptrs[i] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kY], in onGetYUV8Planes()
924 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kU], in onGetYUV8Planes()
926 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kV], in onGetYUV8Planes()
966 SkAutoTMalloc<JSAMPLE> dummyRow(sizeInfo.fWidthBytes[SkYUVSizeInfo::kY]); in onGetYUV8Planes()
/external/libjpeg-turbo/win/
Djsimdcfg.inc44 %define JSAMPLE byte ; unsigned char
45 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
57 %define JSAMPROW POINTER ; JSAMPLE * (jpeglib.h)
/external/ImageMagick/coders/
Djpeg.c1009 JSAMPLE in ReadJPEGImage()
1037 register JSAMPLE in ReadJPEGImage()
1316 jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info); in ReadJPEGImage()
2110 JSAMPLE in WriteJPEGImage()
2122 register JSAMPLE in WriteJPEGImage()
2291 image->rows*sizeof(JSAMPLE); in WriteJPEGImage()
2681 jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info); in WriteJPEGImage()
2713 *q++=(JSAMPLE) ScaleQuantumToChar(GetPixelRed(image,p)); in WriteJPEGImage()
2714 *q++=(JSAMPLE) ScaleQuantumToChar(GetPixelGreen(image,p)); in WriteJPEGImage()
2715 *q++=(JSAMPLE) ScaleQuantumToChar(GetPixelBlue(image,p)); in WriteJPEGImage()
[all …]

123