Lines Matching refs:table
233 * a (subscript-check-less) C table lookup
238 * These processes all use a common table prepared by the routine below.
241 * of x is within MAXJSAMPLE+1 of the legal range, so a table running from
254 * So the post-IDCT limiting table ends up looking like this:
259 * Negative inputs select values from the upper half of the table after
262 * We can save some space by overlapping the start of the post-IDCT table
263 * with the simpler range limiting table. The post-IDCT table begins at
266 * Note that the table is allocated in near data space on PCs; it's small
272 /* Allocate and fill in the sample_range_limit table */
274 JSAMPLE * table;
277 table = (JSAMPLE *)
280 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */
281 cinfo->sample_range_limit = table;
282 /* First segment of "simple" table: limit[x] = 0 for x < 0 */
283 MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
284 /* Main part of "simple" table: limit[x] = x */
286 table[i] = (JSAMPLE) i;
287 table += CENTERJSAMPLE; /* Point to where post-IDCT table starts */
288 /* End of simple table, rest of first half of post-IDCT table */
290 table[i] = MAXJSAMPLE;
291 /* Second half of post-IDCT table */
292 MEMZERO(table + (2 * (MAXJSAMPLE+1)),
294 MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),