Lines Matching refs:ubyte

42 #define rgb_2_gray(r, g, b) (ubyte)(0.299*(double)r+0.587*(double)g+0.114*(double)b)
55 static ubyte *shiftStripByLeftMargin(ubyte *ptrToStrip, sint32 currSourceWidth, in shiftStripByLeftMargin()
58 ubyte *fromPtr, *toPtr, *newStrip; in shiftStripByLeftMargin()
64 newStrip = (ubyte *) malloc((scanLineWidth * currStripHeight) + leftMargin); in shiftStripByLeftMargin()
75 newStrip = (ubyte *) malloc((scanLineWidth * currStripHeight) + shiftAmount); in shiftStripByLeftMargin()
239 void PCLmGenerator::write2Buff(ubyte *buff, int buffSize) { in write2Buff()
397 ubyte *buffIn = (unsigned char *) malloc(ADOBE_RGB_SIZE); in injectAdobeRGBCS()
419 ubyte *strip, sint32 stripWidth, sint32 stripHeight) { in colorConvertSource()
422 ubyte *srcPtr = strip; in colorConvertSource()
423 ubyte *dstPtr = strip; in colorConvertSource()
426 *dstPtr = (ubyte) rgb_2_gray(*srcPtr, *(srcPtr + 1), *(srcPtr + 2)); in colorConvertSource()
437 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip()
526 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip()
724 write2Buff((ubyte *) jpeg_Buff, numCompBytes); in injectJPEG()
976 write2Buff((ubyte *) tempBuffer, buffSize); in writePDFGrammarPage()
991 static bool prepImageForBacksideDuplex(ubyte *imagePtr, sint32 imageHeight, sint32 imageWidth, in prepImageForBacksideDuplex()
994 ubyte *head, *tail, t0, t1, t2; in prepImageForBacksideDuplex()
1271 int PCLmGenerator::RLEEncodeImage(ubyte *in, ubyte *out, int inLength) { in RLEEncodeImage()
1272 ubyte *imgPtr = in; in RLEEncodeImage()
1273 ubyte *endPtr = in + inLength; in RLEEncodeImage()
1274 ubyte *origOut = out; in RLEEncodeImage()
1275 ubyte c; in RLEEncodeImage()
1313 ubyte *start, *p; in RLEEncodeImage()
1408 *pOutBuffer = (ubyte *) malloc(outBuffSize); // This multipliy by 10 needs to be removed... in StartJob()
1600 scratchBuffer = (ubyte *) malloc(len); in StartPage()
1634 ubyte *newStripPtr = NULL; in Encapsulate()
1637 ubyte *whereAreWe; in Encapsulate()
1651 whereAreWe = (ubyte *) tmpBuffer + (scanlineWidth * numLeftoverScanlines); in Encapsulate()
1661 whereAreWe = (ubyte *) pInBuffer + (scanlineWidth * numLeftoverScanlines); in Encapsulate()
1673 ubyte *ptr; in Encapsulate()
1679 ptr = (ubyte *) localInBuffer + scanlineWidth * numLeftoverScanlines; in Encapsulate()
1695 prepImageForBacksideDuplex((ubyte *) localInBuffer, numLinesThisCall, currSourceWidth, in Encapsulate()
1702 colorConvertSource(sourceColorSpace, grayScale, (ubyte *) localInBuffer, currSourceWidth, in Encapsulate()
1709 newStripPtr = shiftStripByLeftMargin((ubyte *) localInBuffer, currSourceWidth, in Encapsulate()
1725 ubyte whitePt = 0xff; in Encapsulate()
1727 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1758 memset((ubyte *) localInBuffer + numImagedBytes, 0xff, numLeftoverBytes); in Encapsulate()
1781 ubyte whitePt = 0xff; in Encapsulate()
1784 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1819 ubyte whitePt = 0xff; in Encapsulate()
1823 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1850 compSize = RLEEncodeImage((ubyte *) localInBuffer, scratchBuffer, in Encapsulate()