Lines Matching defs:table
210 * a (subscript-check-less) C table lookup
215 * These processes all use a common table prepared by the routine below.
218 * of x is within MAXJSAMPLE+1 of the legal range, so a table running from
231 * So the post-IDCT limiting table ends up looking like this:
236 * Negative inputs select values from the upper half of the table after
239 * We can save some space by overlapping the start of the post-IDCT table
240 * with the simpler range limiting table. The post-IDCT table begins at
243 * Note that the table is allocated in near data space on PCs; it's small
249 /* Allocate and fill in the sample_range_limit table */
251 JSAMPLE * table;
254 table = (JSAMPLE *)
257 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */
258 cinfo->sample_range_limit = table;
259 /* First segment of "simple" table: limit[x] = 0 for x < 0 */
260 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
261 /* Main part of "simple" table: limit[x] = x */
263 table[i] = (JSAMPLE) i;
264 table += CENTERJSAMPLE; /* Point to where post-IDCT table starts */
265 /* End of simple table, rest of first half of post-IDCT table */
267 table[i] = MAXJSAMPLE;
268 /* Second half of post-IDCT table */
269 MEMZERO(table + (2 * (MAXJSAMPLE+1)),
271 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),