Home
last modified time | relevance | path

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

12

/external/opencv3/3rdparty/libjpeg/
Djdcolor.c81 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
82 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
83 #define TABLE_SIZE (3*(MAXJSAMPLE+1))
100 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
103 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
106 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
109 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
111 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
200 for (i = 0; i <= MAXJSAMPLE; i++) { in build_rgb_y_table()
273 outptr[RGB_RED] = (JSAMPLE) ((r + g - CENTERJSAMPLE) & MAXJSAMPLE); in rgb1_rgb_convert()
[all …]
Djccolor.c71 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
72 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
73 #define R_CB_OFF (3*(MAXJSAMPLE+1))
74 #define G_CB_OFF (4*(MAXJSAMPLE+1))
75 #define B_CB_OFF (5*(MAXJSAMPLE+1))
77 #define G_CR_OFF (6*(MAXJSAMPLE+1))
78 #define B_CR_OFF (7*(MAXJSAMPLE+1))
79 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
98 for (i = 0; i <= MAXJSAMPLE; i++) { in rgb_ycc_start()
245 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
[all …]
Djdmaster.c237 (5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
238 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */ in prepare_range_limit_table()
241 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
243 for (i = 0; i <= MAXJSAMPLE; i++) in prepare_range_limit_table()
247 for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++) in prepare_range_limit_table()
248 table[i] = MAXJSAMPLE; in prepare_range_limit_table()
250 MEMZERO(table + (2 * (MAXJSAMPLE+1)), in prepare_range_limit_table()
251 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE)); in prepare_range_limit_table()
252 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE), in prepare_range_limit_table()
Djquant1.c255 return (int) (((INT32) j * MAXJSAMPLE + maxj/2) / maxj); in output_value()
265 return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj)); in largest_input_value()
346 pad = MAXJSAMPLE*2; in create_colorindex()
355 (JDIMENSION) (MAXJSAMPLE+1 + pad), in create_colorindex()
368 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
375 for (j = 0; j <= MAXJSAMPLE; j++) { in create_colorindex()
383 for (j = 1; j <= MAXJSAMPLE; j++) { in create_colorindex()
385 indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE]; in create_colorindex()
415 * MAXJSAMPLE; in make_odither_array()
840 if (cinfo->desired_number_of_colors > (MAXJSAMPLE+1)) in jinit_1pass_quantizer()
[all …]
Djdmerge.c92 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
95 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
98 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
101 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
103 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djmorecfg.h74 #define MAXJSAMPLE 255 macro
88 #define MAXJSAMPLE 4095 macro
Djquant2.c128 #define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */
553 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT; in select_colors()
555 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT; in select_colors()
557 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT; in select_colors()
1117 ((j_common_ptr) cinfo, JPOOL_IMAGE, (MAXJSAMPLE*2+1) * SIZEOF(int)); in init_error_limit()
1118 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */ in init_error_limit()
1121 #define STEPSIZE ((MAXJSAMPLE+1)/16) in init_error_limit()
1132 for (; in <= MAXJSAMPLE; in++) { in init_error_limit()
Djcmarker.c299 emit_2bytes(cinfo, MAXJSAMPLE); /* MAXTRANS */ in emit_lse_ict()
/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.c95 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
98 (MAXJSAMPLE+1) * SIZEOF(int)); in build_ycc_rgb_table()
101 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
104 (MAXJSAMPLE+1) * SIZEOF(INT32)); in build_ycc_rgb_table()
106 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/
Djccolor.c76 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
77 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
78 #define R_CB_OFF (3*(MAXJSAMPLE+1))
79 #define G_CB_OFF (4*(MAXJSAMPLE+1))
80 #define B_CB_OFF (5*(MAXJSAMPLE+1))
82 #define G_CR_OFF (6*(MAXJSAMPLE+1))
83 #define B_CR_OFF (7*(MAXJSAMPLE+1))
84 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
208 for (i = 0; i <= MAXJSAMPLE; i++) { in rgb_ycc_start()
398 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]); in cmyk_ycck_convert()
[all …]
Djquant1.c256 return (int) (((INT32) j * MAXJSAMPLE + maxj/2) / maxj); in output_value()
266 return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj)); in largest_input_value()
347 pad = MAXJSAMPLE*2; in create_colorindex()
356 (JDIMENSION) (MAXJSAMPLE+1 + pad), in create_colorindex()
369 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
376 for (j = 0; j <= MAXJSAMPLE; j++) { in create_colorindex()
384 for (j = 1; j <= MAXJSAMPLE; j++) { in create_colorindex()
386 indexptr[MAXJSAMPLE+j] = indexptr[MAXJSAMPLE]; in create_colorindex()
416 * MAXJSAMPLE; in make_odither_array()
839 if (cinfo->desired_number_of_colors > (MAXJSAMPLE+1)) in jinit_1pass_quantizer()
[all …]
Djdcolor.c87 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
88 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
89 #define TABLE_SIZE (3*(MAXJSAMPLE+1))
219 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
222 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
225 (MAXJSAMPLE+1) * sizeof(INT32)); in build_ycc_rgb_table()
228 (MAXJSAMPLE+1) * sizeof(INT32)); in build_ycc_rgb_table()
230 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()
564 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */ in ycck_cmyk_convert()
[all …]
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()
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()
Djdmerge.c198 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
201 (MAXJSAMPLE+1) * sizeof(int)); in build_ycc_rgb_table()
204 (MAXJSAMPLE+1) * sizeof(INT32)); in build_ycc_rgb_table()
207 (MAXJSAMPLE+1) * sizeof(INT32)); in build_ycc_rgb_table()
209 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) { in build_ycc_rgb_table()
Djmorecfg.h64 #define MAXJSAMPLE 255 macro
78 #define MAXJSAMPLE 4095 macro
Djquant2.c108 #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()
1086 ((j_common_ptr) cinfo, JPOOL_IMAGE, (MAXJSAMPLE*2+1) * sizeof(int)); in init_error_limit()
1087 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */ in init_error_limit()
1090 #define STEPSIZE ((MAXJSAMPLE+1)/16) in init_error_limit()
1101 for (; in <= MAXJSAMPLE; in++) { in init_error_limit()
Drdppm.c361 } else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR)) { in start_input_ppm()
376 } 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()
Djdct.h87 #define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
/external/libjpeg-turbo/simd/
Djdct.inc14 ; converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
19 %define RANGE_MASK (MAXJSAMPLE * 4 + 3) ; 2 bits wider than legal samples

12