Lines Matching refs:cd
350 ChannelData &cd = _channelData[i]; in compress() local
352 cd.start = tmpBufferEnd; in compress()
353 cd.end = cd.start; in compress()
355 cd.nx = numSamples (c.channel().xSampling, minX, maxX); in compress()
356 cd.ny = numSamples (c.channel().ySampling, minY, maxY); in compress()
357 cd.ys = c.channel().ySampling; in compress()
359 cd.size = pixelTypeSize (c.channel().type) / pixelTypeSize (HALF); in compress()
361 tmpBufferEnd += cd.nx * cd.ny * cd.size; in compress()
374 ChannelData &cd = _channelData[i]; in compress() local
376 if (modp (y, cd.ys) != 0) in compress()
379 for (int x = cd.nx * cd.size; x > 0; --x) in compress()
381 Xdr::read <CharPtrIO> (inPtr, *cd.end); in compress()
382 ++cd.end; in compress()
397 ChannelData &cd = _channelData[i]; in compress() local
399 if (modp (y, cd.ys) != 0) in compress()
402 int n = cd.nx * cd.size; in compress()
403 memcpy (cd.end, inPtr, n * sizeof (unsigned short)); in compress()
405 cd.end += n; in compress()
457 ChannelData &cd = _channelData[i]; in compress() local
459 for (int j = 0; j < cd.size; ++j) in compress()
461 wav2Encode (cd.start + j, in compress()
462 cd.nx, cd.size, in compress()
463 cd.ny, cd.nx * cd.size, in compress()
526 ChannelData &cd = _channelData[i]; in uncompress() local
528 cd.start = tmpBufferEnd; in uncompress()
529 cd.end = cd.start; in uncompress()
531 cd.nx = numSamples (c.channel().xSampling, minX, maxX); in uncompress()
532 cd.ny = numSamples (c.channel().ySampling, minY, maxY); in uncompress()
533 cd.ys = c.channel().ySampling; in uncompress()
535 cd.size = pixelTypeSize (c.channel().type) / pixelTypeSize (HALF); in uncompress()
537 tmpBufferEnd += cd.nx * cd.ny * cd.size; in uncompress()
583 ChannelData &cd = _channelData[i]; in uncompress() local
585 for (int j = 0; j < cd.size; ++j) in uncompress()
587 wav2Decode (cd.start + j, in uncompress()
588 cd.nx, cd.size, in uncompress()
589 cd.ny, cd.nx * cd.size, in uncompress()
616 ChannelData &cd = _channelData[i]; in uncompress() local
618 if (modp (y, cd.ys) != 0) in uncompress()
621 for (int x = cd.nx * cd.size; x > 0; --x) in uncompress()
623 Xdr::write <CharPtrIO> (outEnd, *cd.end); in uncompress()
624 ++cd.end; in uncompress()
639 ChannelData &cd = _channelData[i]; in uncompress() local
641 if (modp (y, cd.ys) != 0) in uncompress()
644 int n = cd.nx * cd.size; in uncompress()
645 memcpy (outEnd, cd.end, n * sizeof (unsigned short)); in uncompress()
647 cd.end += n; in uncompress()