• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/IOGraphics-485/tools/

Lines Matching defs:idx

470 	uint16_t idx;
477 for (idx = start + 1; idx < end; idx++)
479 interp = data[start] + ((data[end] - data[start]) * (idx - start)) / (end - start);
480 dist = data[idx] - interp;
485 seg->split = idx;
505 uint16_t idx;
512 for (idx = 1; idx < count; idx++)
514 if (segs[idx].dist > segs[furthest].dist) furthest = idx;
527 for (idx = 0; idx < count; idx++)
529 if (segs[idx].dist > *maxError)
531 *maxError = segs[idx].dist;
532 //printf("max error seg 0x%x, 0x%x count %d, target %d\n", segs[idx].start, segs[idx].end, count, maxCount);
534 start = segs[idx].start % srcDataCount;
537 if (segs[idx].start)
547 channelGamma->points[channelGamma->pointCount].out = data[segs[idx].start];
562 uint16_t idx;
573 for (idx = 0; idx < 3; idx++) IOFBSegInit(data, &segs[idx], idx * srcDataCount, ((idx + 1) * srcDataCount) - 1);
581 for (idx = 0; idx < channelCount; idx++)
592 uint16_t channel, idx, maxIdx, seg;
605 for (idx = 0; idx <= maxIdx; idx++)
607 if ((idx == endIn) && (idx != maxIdx))
623 data[channel * count + idx] = startOut + ((endOut - startOut) * (idx - startIn)) / (endIn - startIn);
656 uint16_t idx, j, channel;
659 for (idx = 0; idx < 3; idx++)
661 for (j = 0; j < channelGamma->pointCount; j++) fprintf(stderr, "[%d,%02d] 0x%04x 0x%04x\n", idx, j, channelGamma->points[j].in, channelGamma->points[j].out);
674 for (idx = 0; idx < count; idx++)
677 deco[channel * count + idx], data[channel][idx * srcDataCount / 1024]);
679 if (idx & 3) continue;
681 int16_t error = (deco[channel * count + idx] - data[channel][idx * srcDataCount / 1024]);
685 maxErrorIdx = idx;