Home
last modified time | relevance | path

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

/external/jpeg/
Djccolor.c72 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
73 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
74 #define R_CB_OFF (3*(MAXJSAMPLE+1))
75 #define G_CB_OFF (4*(MAXJSAMPLE+1))
76 #define B_CB_OFF (5*(MAXJSAMPLE+1))
78 #define G_CR_OFF (6*(MAXJSAMPLE+1))
79 #define B_CR_OFF (7*(MAXJSAMPLE+1))
80 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
99 for (i = 0; i <= MAXJSAMPLE; i++) { in rgb_ycc_start()
247 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
[all …]
Djdmaster.c279 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
280 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */ in prepare_range_limit_table()
283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
285 for (i = 0; i <= MAXJSAMPLE; i++) in prepare_range_limit_table()
289 for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++) in prepare_range_limit_table()
290 table[i] = MAXJSAMPLE; in prepare_range_limit_table()
292 MEMZERO(table + (2 * (MAXJSAMPLE+1)), in prepare_range_limit_table()
293 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
294 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE), in prepare_range_limit_table()
Djquant1.c254 return (int) (((INT32) j * MAXJSAMPLE + maxj/2) / maxj); in output_value()
264 return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj)); in largest_input_value()
345 pad = MAXJSAMPLE*2; in create_colorindex()
354 (JDIMENSION) (MAXJSAMPLE+1 + pad), in create_colorindex()
367 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
374 for (j = 0; j <= MAXJSAMPLE; j++) { in create_colorindex()
382 for (j = 1; j <= MAXJSAMPLE; j++) { in create_colorindex()
384 indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE]; in create_colorindex()
414 * 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()
Djmorecfg.h95 #define MAXJSAMPLE 255 macro
109 #define MAXJSAMPLE 4095 macro
Djdcolor.c99 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
102 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
105 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
108 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
110 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
719 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */ in ycck_cmyk_convert()
720 outptr[1] = range_limit[MAXJSAMPLE - (y + /* green */ in ycck_cmyk_convert()
723 outptr[2] = range_limit[MAXJSAMPLE - (y + Cbbtab[cb])]; /* blue */ in ycck_cmyk_convert()
Djquant2.c127 #define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */
552 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT; in select_colors()
554 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT; in select_colors()
556 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT; in select_colors()
1116 ((j_common_ptr) cinfo, JPOOL_IMAGE, (MAXJSAMPLE*2+1) * SIZEOF(int)); in init_error_limit()
1117 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */ in init_error_limit()
1120 #define STEPSIZE ((MAXJSAMPLE+1)/16) in init_error_limit()
1131 for (; in <= MAXJSAMPLE; in++) { in init_error_limit()
Drdppm.c360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm()
375 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm()
421 source->rescale[val] = (JSAMPLE) ((val*MAXJSAMPLE + half_maxval)/maxval); in start_input_ppm()
Djdmerge.c110 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
113 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
116 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
119 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
121 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djdct.h78 #define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
Dstructure.doc576 typedef something JSAMPLE; a pixel component value, 0..MAXJSAMPLE
596 The code is written in terms of MAXJSAMPLE and CENTERJSAMPLE, which will be