Home
last modified time | relevance | path

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

/external/libjpeg-turbo/
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()
395 r = MAXJSAMPLE - inptr[0]; in cmyk_ycck_convert()
[all …]
Djquant1.c258 return (int)(((JLONG)j * MAXJSAMPLE + maxj / 2) / maxj); in output_value()
268 return (int)(((JLONG)(2 * j + 1) * MAXJSAMPLE + maxj) / (2 * maxj)); in largest_input_value()
349 pad = MAXJSAMPLE * 2; in create_colorindex()
358 (JDIMENSION)(MAXJSAMPLE + 1 + pad), in create_colorindex()
371 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
378 for (j = 0; j <= MAXJSAMPLE; j++) { in create_colorindex()
386 for (j = 1; j <= MAXJSAMPLE; j++) { in create_colorindex()
388 indexptr[MAXJSAMPLE + j] = indexptr[MAXJSAMPLE]; in create_colorindex()
418 2 * ((int)base_dither_matrix[j][k]))) * MAXJSAMPLE; in make_odither_array()
839 if (cinfo->desired_number_of_colors > (MAXJSAMPLE + 1)) in jinit_1pass_quantizer()
[all …]
Drdcolmap.c63 if (ncolors >= (MAXJSAMPLE + 1)) in add_map_entry()
64 ERREXIT1(cinfo, JERR_QUANT_MANY_COLORS, (MAXJSAMPLE + 1)); in add_map_entry()
189 if (maxval != (unsigned int)MAXJSAMPLE) in read_ppm_map()
236 (JDIMENSION)(MAXJSAMPLE + 1), (JDIMENSION)3); in read_color_map()
Djdmaster.c416 (5 * (MAXJSAMPLE + 1) + CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
417 table += (MAXJSAMPLE + 1); /* allow negative subscripts of simple table */ in prepare_range_limit_table()
420 MEMZERO(table - (MAXJSAMPLE + 1), (MAXJSAMPLE + 1) * sizeof(JSAMPLE)); in prepare_range_limit_table()
422 for (i = 0; i <= MAXJSAMPLE; i++) in prepare_range_limit_table()
426 for (i = CENTERJSAMPLE; i < 2 * (MAXJSAMPLE + 1); i++) in prepare_range_limit_table()
427 table[i] = MAXJSAMPLE; in prepare_range_limit_table()
429 MEMZERO(table + (2 * (MAXJSAMPLE + 1)), in prepare_range_limit_table()
430 (2 * (MAXJSAMPLE + 1) - CENTERJSAMPLE) * sizeof(JSAMPLE)); in prepare_range_limit_table()
431 MEMCOPY(table + (4 * (MAXJSAMPLE + 1) - CENTERJSAMPLE), in prepare_range_limit_table()
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()
313 for (i = 0; i <= MAXJSAMPLE; i++) { in build_rgb_y_table()
557 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */ in ycck_cmyk_convert()
[all …]
Drdppm.c179 if (maxval == MAXJSAMPLE) { in get_text_gray_rgb_row()
209 if (maxval == MAXJSAMPLE) { in get_text_gray_cmyk_row()
253 if (maxval == MAXJSAMPLE) { in get_text_rgb_row()
283 if (maxval == MAXJSAMPLE) { in get_text_rgb_cmyk_row()
346 if (maxval == MAXJSAMPLE) { in get_gray_rgb_row()
377 if (maxval == MAXJSAMPLE) { in get_gray_cmyk_row()
414 if (maxval == MAXJSAMPLE) { in get_rgb_row()
445 if (maxval == MAXJSAMPLE) { in get_rgb_cmyk_row()
642 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR) &&
668 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR) &&
[all …]
Djmorecfg.h51 #define MAXJSAMPLE 255 macro
65 #define MAXJSAMPLE 4095 macro
Djdmerge.c171 (MAXJSAMPLE + 1) * sizeof(int)); in build_ycc_rgb_table()
174 (MAXJSAMPLE + 1) * sizeof(int)); in build_ycc_rgb_table()
177 (MAXJSAMPLE + 1) * sizeof(JLONG)); in build_ycc_rgb_table()
180 (MAXJSAMPLE + 1) * sizeof(JLONG)); in build_ycc_rgb_table()
182 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djquant2.c109 #define MAXNUMCOLORS (MAXJSAMPLE + 1) /* maximum size of colormap */
531 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT; in select_colors()
533 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT; in select_colors()
535 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT; in select_colors()
1090 ((j_common_ptr)cinfo, JPOOL_IMAGE, (MAXJSAMPLE * 2 + 1) * sizeof(int)); in init_error_limit()
1091 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */ in init_error_limit()
1094 #define STEPSIZE ((MAXJSAMPLE + 1) / 16) in init_error_limit()
1105 for (; in <= MAXJSAMPLE; in++) { in init_error_limit()
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
561 The code is written in terms of MAXJSAMPLE and CENTERJSAMPLE, which will be
/external/libjpeg-turbo/simd/nasm/
Djdct.inc12 ; converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
17 %define RANGE_MASK (MAXJSAMPLE * 4 + 3) ; 2 bits wider than legal samples