Home
last modified time | relevance | path

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

/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()
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()
Djmorecfg.h65 #define MAXJSAMPLE 255 macro
79 #define MAXJSAMPLE 4095 macro
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