Home
last modified time | relevance | path

Searched refs:GETJSAMPLE (Results 1 – 20 of 20) sorted by relevance

/external/jpeg/
Djcsample.c170 outvalue += (INT32) GETJSAMPLE(*inptr++); 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()
273 GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1]) in h2v2_downsample()
333 membersum = GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[1]) + in h2v2_smooth_downsample()
334 GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[1]); in h2v2_smooth_downsample()
335 neighsum = GETJSAMPLE(*above_ptr) + GETJSAMPLE(above_ptr[1]) + in h2v2_smooth_downsample()
336 GETJSAMPLE(*below_ptr) + GETJSAMPLE(below_ptr[1]) + in h2v2_smooth_downsample()
337 GETJSAMPLE(*inptr0) + GETJSAMPLE(inptr0[2]) + in h2v2_smooth_downsample()
338 GETJSAMPLE(*inptr1) + GETJSAMPLE(inptr1[2]); in h2v2_smooth_downsample()
[all …]
Djdcolor.c164 y = GETJSAMPLE(inptr0[col]); in ycc_rgb_convert()
165 cb = GETJSAMPLE(inptr1[col]); in ycc_rgb_convert()
166 cr = GETJSAMPLE(inptr2[col]); in ycc_rgb_convert()
205 y = GETJSAMPLE(inptr0[col]); in ycc_rgba_8888_convert()
206 cb = GETJSAMPLE(inptr1[col]); in ycc_rgba_8888_convert()
207 cr = GETJSAMPLE(inptr2[col]); in ycc_rgba_8888_convert()
249 y = GETJSAMPLE(*inptr0++); in ycc_rgb_565_convert()
250 cb = GETJSAMPLE(*inptr1++); in ycc_rgb_565_convert()
251 cr = GETJSAMPLE(*inptr2++); in ycc_rgb_565_convert()
261 y = GETJSAMPLE(*inptr0++); in ycc_rgb_565_convert()
[all …]
Djdmerge.c275 cb = GETJSAMPLE(*inptr1++); in h2v1_merged_upsample()
276 cr = GETJSAMPLE(*inptr2++); in h2v1_merged_upsample()
281 y = GETJSAMPLE(*inptr0++); in h2v1_merged_upsample()
286 y = GETJSAMPLE(*inptr0++); in h2v1_merged_upsample()
294 cb = GETJSAMPLE(*inptr1); in h2v1_merged_upsample()
295 cr = GETJSAMPLE(*inptr2); in h2v1_merged_upsample()
299 y = GETJSAMPLE(*inptr0); in h2v1_merged_upsample()
336 cb = GETJSAMPLE(*inptr1++); in h2v1_merged_upsample_565()
337 cr = GETJSAMPLE(*inptr2++); in h2v1_merged_upsample_565()
342 y = GETJSAMPLE(*inptr0++); in h2v1_merged_upsample_565()
[all …]
Djcdctmgr.c205 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
206 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
207 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
208 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
209 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
210 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
211 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
212 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
216 *workspaceptr++ = GETJSAMPLE(*elemptr++) - CENTERJSAMPLE; in forward_DCT()
295 *workspaceptr++ = (FAST_FLOAT)(GETJSAMPLE(*elemptr++) - CENTERJSAMPLE); in forward_DCT_float()
[all …]
Dwrtarga.c111 outptr[0] = (char) GETJSAMPLE(inptr[2]); /* RGB to BGR order */ in put_pixel_rows()
112 outptr[1] = (char) GETJSAMPLE(inptr[1]); in put_pixel_rows()
113 outptr[2] = (char) GETJSAMPLE(inptr[0]); in put_pixel_rows()
132 *outptr++ = (char) GETJSAMPLE(*inptr++); in put_gray_rows()
156 *outptr++ = (char) GETJSAMPLE(color_map0[GETJSAMPLE(*inptr++)]); in put_demapped_gray()
191 putc(GETJSAMPLE(cinfo->colormap[2][i]), outfile); in start_output_tga()
192 putc(GETJSAMPLE(cinfo->colormap[1][i]), outfile); in start_output_tga()
193 putc(GETJSAMPLE(cinfo->colormap[0][i]), outfile); in start_output_tga()
Djquant1.c478 pixcode += GETJSAMPLE(colorindex[ci][GETJSAMPLE(*ptrin++)]); in color_quantize()
505 pixcode = GETJSAMPLE(colorindex0[GETJSAMPLE(*ptrin++)]); in color_quantize3()
506 pixcode += GETJSAMPLE(colorindex1[GETJSAMPLE(*ptrin++)]); in color_quantize3()
507 pixcode += GETJSAMPLE(colorindex2[GETJSAMPLE(*ptrin++)]); in color_quantize3()
551 *output_ptr += colorindex_ci[GETJSAMPLE(*input_ptr)+dither[col_index]]; in quantize_ord_dither()
594 pixcode = GETJSAMPLE(colorindex0[GETJSAMPLE(*input_ptr++) + in quantize3_ord_dither()
596 pixcode += GETJSAMPLE(colorindex1[GETJSAMPLE(*input_ptr++) + in quantize3_ord_dither()
598 pixcode += GETJSAMPLE(colorindex2[GETJSAMPLE(*input_ptr++) + in quantize3_ord_dither()
677 cur += GETJSAMPLE(*input_ptr); in quantize_fs_dither()
678 cur = GETJSAMPLE(range_limit[cur]); in quantize_fs_dither()
[all …]
Djdsample.c317 invalue = GETJSAMPLE(*inptr++); in h2v1_fancy_upsample()
319 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(*inptr) + 2) >> 2); in h2v1_fancy_upsample()
323 invalue = GETJSAMPLE(*inptr++) * 3; 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()
329 invalue = GETJSAMPLE(*inptr); in h2v1_fancy_upsample()
330 *outptr++ = (JSAMPLE) ((invalue * 3 + GETJSAMPLE(inptr[-1]) + 1) >> 2); in h2v1_fancy_upsample()
370 thiscolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++); in h2v2_fancy_upsample()
371 nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++); in h2v2_fancy_upsample()
379 nextcolsum = GETJSAMPLE(*inptr0++) * 3 + GETJSAMPLE(*inptr1++); in h2v2_fancy_upsample()
Dwrppm.c116 PUTPPMSAMPLE(bufferptr, GETJSAMPLE(*ptr++)); in copy_pixel_rows()
143 pixval = GETJSAMPLE(*ptr++); in put_demapped_rgb()
144 PUTPPMSAMPLE(bufferptr, GETJSAMPLE(color_map0[pixval])); in put_demapped_rgb()
145 PUTPPMSAMPLE(bufferptr, GETJSAMPLE(color_map1[pixval])); in put_demapped_rgb()
146 PUTPPMSAMPLE(bufferptr, GETJSAMPLE(color_map2[pixval])); in put_demapped_rgb()
165 PUTPPMSAMPLE(bufferptr, GETJSAMPLE(color_map[GETJSAMPLE(*ptr++)])); in put_demapped_gray()
Djquant2.c239 histp = & histogram[GETJSAMPLE(ptr[0]) >> C0_SHIFT] in prescan_quantize()
240 [GETJSAMPLE(ptr[1]) >> C1_SHIFT] in prescan_quantize()
241 [GETJSAMPLE(ptr[2]) >> C2_SHIFT]; in prescan_quantize()
689 x = GETJSAMPLE(cinfo->colormap[0][i]); in find_nearby_colors()
712 x = GETJSAMPLE(cinfo->colormap[1][i]); in find_nearby_colors()
734 x = GETJSAMPLE(cinfo->colormap[2][i]); in find_nearby_colors()
812 icolor = GETJSAMPLE(colorlist[i]); in find_best_colors()
814 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE; in find_best_colors()
816 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE; in find_best_colors()
818 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE; in find_best_colors()
[all …]
Djmorecfg.h82 #define GETJSAMPLE(value) ((int) (value)) macro
88 #define GETJSAMPLE(value) ((int) (value)) macro
90 #define GETJSAMPLE(value) ((int) (value) & 0xFF) macro
107 #define GETJSAMPLE(value) ((int) (value)) macro
Djccolor.c151 r = GETJSAMPLE(inptr[RGB_RED]); in rgb_ycc_convert()
152 g = GETJSAMPLE(inptr[RGB_GREEN]); in rgb_ycc_convert()
153 b = GETJSAMPLE(inptr[RGB_BLUE]); in rgb_ycc_convert()
205 r = GETJSAMPLE(inptr[RGB_RED]); in rgb_gray_convert()
206 g = GETJSAMPLE(inptr[RGB_GREEN]); in rgb_gray_convert()
207 b = GETJSAMPLE(inptr[RGB_BLUE]); in rgb_gray_convert()
247 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
248 g = MAXJSAMPLE - GETJSAMPLE(inptr[1]); in cmyk_ycck_convert()
249 b = MAXJSAMPLE - GETJSAMPLE(inptr[2]); in cmyk_ycck_convert()
Dwrbmp.c304 putc(GETJSAMPLE(colormap[2][i]), outfile); in write_colormap()
305 putc(GETJSAMPLE(colormap[1][i]), outfile); in write_colormap()
306 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
313 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
314 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
315 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
371 putc(GETJSAMPLE(*data_ptr), outfile); in finish_output_bmp()
Dwrgif.c265 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); in emit_header()
266 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); in emit_header()
267 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); in emit_header()
270 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); in emit_header()
328 compress_pixel(dest, GETJSAMPLE(*ptr++)); in put_pixel_rows()
Dwrrle.c126 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; in start_output_rle()
245 *red++ = GETJSAMPLE(*output_row++); in finish_output_rle()
246 *green++ = GETJSAMPLE(*output_row++); in finish_output_rle()
247 *blue++ = GETJSAMPLE(*output_row++); in finish_output_rle()
Drdcolmap.c56 if (GETJSAMPLE(colormap0[index]) == R && in add_map_entry()
57 GETJSAMPLE(colormap1[index]) == G && in add_map_entry()
58 GETJSAMPLE(colormap2[index]) == B) in add_map_entry()
Drdrle.c220 val = GETJSAMPLE(*src_row++); in get_pseudocolor_row()
298 (colormap[GETJSAMPLE(rle_row[channel][col]) + 256 * channel] >> 8); in load_image()
Drdbmp.c139 t = GETJSAMPLE(*inptr++); in get_8bit_row()
Dstructure.doc586 values must be coded as "GETJSAMPLE(value)", where the macro will be defined
621 GETJSAMPLE(image[colorcomponent][row][col])
Dinstall.doc980 cb = GETJSAMPLE(*inptr1);
/external/tesseract/liblept/
Djmorecfg.h61 #define GETJSAMPLE(value) ((int) (value)) macro
67 #define GETJSAMPLE(value) ((int) (value)) macro
69 #define GETJSAMPLE(value) ((int) (value) & 0xFF) macro
86 #define GETJSAMPLE(value) ((int) (value)) macro