Home
last modified time | relevance | path

Searched refs:MAXJSAMPLE (Results 1 – 18 of 18) sorted by relevance

/external/pdfium/third_party/libjpeg/
Dfpdfapi_jccolor.c70 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
71 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
72 #define R_CB_OFF (3*(MAXJSAMPLE+1))
73 #define G_CB_OFF (4*(MAXJSAMPLE+1))
74 #define B_CB_OFF (5*(MAXJSAMPLE+1))
76 #define G_CR_OFF (6*(MAXJSAMPLE+1))
77 #define B_CR_OFF (7*(MAXJSAMPLE+1))
78 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
97 for (i = 0; i <= MAXJSAMPLE; i++) { in rgb_ycc_start()
245 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
[all …]
Dfpdfapi_jdmaster.c256 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
257 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */ in prepare_range_limit_table()
260 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
262 for (i = 0; i <= MAXJSAMPLE; i++) in prepare_range_limit_table()
266 for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++) in prepare_range_limit_table()
267 table[i] = MAXJSAMPLE; in prepare_range_limit_table()
269 MEMZERO(table + (2 * (MAXJSAMPLE+1)), in prepare_range_limit_table()
270 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
271 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE), in prepare_range_limit_table()
Dfpdfapi_jdcolor.c79 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
82 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
85 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
88 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
90 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
275 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */ in ycck_cmyk_convert()
276 outptr[1] = range_limit[MAXJSAMPLE - (y + /* green */ in ycck_cmyk_convert()
279 outptr[2] = range_limit[MAXJSAMPLE - (y + Cbbtab[cb])]; /* blue */ in ycck_cmyk_convert()
Dfpdfapi_jdmerge.c91 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
94 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
97 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
100 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
102 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djmorecfg.h76 #define MAXJSAMPLE 255 macro
90 #define MAXJSAMPLE 4095 macro
Djdct.h78 #define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
/external/libjpeg-turbo/
Djquant1.c257 return (int) (((JLONG) j * MAXJSAMPLE + maxj/2) / maxj); in output_value()
267 return (int) (((JLONG) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj)); in largest_input_value()
348 pad = MAXJSAMPLE*2; in create_colorindex()
357 (JDIMENSION) (MAXJSAMPLE+1 + pad), in create_colorindex()
370 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
377 for (j = 0; j <= MAXJSAMPLE; j++) { in create_colorindex()
385 for (j = 1; j <= MAXJSAMPLE; j++) { in create_colorindex()
387 indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE]; in create_colorindex()
417 * MAXJSAMPLE; in make_odither_array()
840 if (cinfo->desired_number_of_colors > (MAXJSAMPLE+1)) in jinit_1pass_quantizer()
[all …]
Djccolor.c77 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
78 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
79 #define R_CB_OFF (3*(MAXJSAMPLE+1))
80 #define G_CB_OFF (4*(MAXJSAMPLE+1))
81 #define B_CB_OFF (5*(MAXJSAMPLE+1))
83 #define G_CR_OFF (6*(MAXJSAMPLE+1))
84 #define B_CR_OFF (7*(MAXJSAMPLE+1))
85 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
209 for (i = 0; i <= MAXJSAMPLE; i++) { in rgb_ycc_start()
399 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
[all …]
Djdcolor.c88 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
89 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
90 #define TABLE_SIZE (3*(MAXJSAMPLE+1))
220 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
223 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
226 (MAXJSAMPLE+1) * sizeof(JLONG)); in build_ycc_rgb_table()
229 (MAXJSAMPLE+1) * sizeof(JLONG)); in build_ycc_rgb_table()
231 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
314 for (i = 0; i <= MAXJSAMPLE; i++) { in build_rgb_y_table()
565 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */ in ycck_cmyk_convert()
[all …]
Djdmaster.c428 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
429 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */ in prepare_range_limit_table()
432 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * sizeof(JSAMPLE)); in prepare_range_limit_table()
434 for (i = 0; i <= MAXJSAMPLE; i++) in prepare_range_limit_table()
438 for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++) in prepare_range_limit_table()
439 table[i] = MAXJSAMPLE; in prepare_range_limit_table()
441 MEMZERO(table + (2 * (MAXJSAMPLE+1)), in prepare_range_limit_table()
442 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
443 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE), in prepare_range_limit_table()
Drdcolmap.c64 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry()
65 ERREXIT1(cinfo, JERR_QUANT_MANY_COLORS, (MAXJSAMPLE+1)); in add_map_entry()
190 if (maxval != (unsigned int) MAXJSAMPLE) in read_ppm_map()
237 (JDIMENSION) (MAXJSAMPLE+1), (JDIMENSION) 3); in read_color_map()
Djmorecfg.h65 #define MAXJSAMPLE 255 macro
79 #define MAXJSAMPLE 4095 macro
Djdmerge.c199 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
202 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
205 (MAXJSAMPLE+1) * sizeof(JLONG)); in build_ycc_rgb_table()
208 (MAXJSAMPLE+1) * sizeof(JLONG)); in build_ycc_rgb_table()
210 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djquant2.c109 #define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */
532 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT; in select_colors()
534 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT; in select_colors()
536 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT; in select_colors()
1087 ((j_common_ptr) cinfo, JPOOL_IMAGE, (MAXJSAMPLE*2+1) * sizeof(int)); in init_error_limit()
1088 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */ in init_error_limit()
1091 #define STEPSIZE ((MAXJSAMPLE+1)/16) in init_error_limit()
1102 for (; in <= MAXJSAMPLE; in++) { in init_error_limit()
Drdppm.c372 } 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()
433 source->rescale[val] = (JSAMPLE) ((val * MAXJSAMPLE + half_maxval) / in start_input_ppm()
Djdct.h88 #define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
Dstructure.txt546 typedef something JSAMPLE; a pixel component value, 0..MAXJSAMPLE
565 The code is written in terms of MAXJSAMPLE and CENTERJSAMPLE, which will be
/external/libjpeg-turbo/simd/
Djdct.inc13 ; converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
18 %define RANGE_MASK (MAXJSAMPLE * 4 + 3) ; 2 bits wider than legal samples