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()
65 newStrip = (ubyte *) malloc(scanLineWidth * currStripHeight); in shiftStripByLeftMargin()
76 newStrip = (ubyte *) malloc(scanLineWidth * currStripHeight); in shiftStripByLeftMargin()
240 void PCLmGenerator::write2Buff(ubyte *buff, int buffSize) { in write2Buff()
398 ubyte *buffIn = (unsigned char *) malloc(ADOBE_RGB_SIZE); in injectAdobeRGBCS()
420 ubyte *strip, sint32 stripWidth, sint32 stripHeight) { in colorConvertSource()
423 ubyte *srcPtr = strip; in colorConvertSource()
424 ubyte *dstPtr = strip; in colorConvertSource()
427 *dstPtr = (ubyte) rgb_2_gray(*srcPtr, *(srcPtr + 1), *(srcPtr + 2)); in colorConvertSource()
438 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip()
527 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip()
725 write2Buff((ubyte *) jpeg_Buff, numCompBytes); in injectJPEG()
977 write2Buff((ubyte *) tempBuffer, buffSize); in writePDFGrammarPage()
992 static bool prepImageForBacksideDuplex(ubyte *imagePtr, sint32 imageHeight, sint32 imageWidth, in prepImageForBacksideDuplex()
995 ubyte *head, *tail, t0, t1, t2; in prepImageForBacksideDuplex()
1272 int PCLmGenerator::RLEEncodeImage(ubyte *in, ubyte *out, int inLength) { in RLEEncodeImage()
1273 ubyte *imgPtr = in; in RLEEncodeImage()
1274 ubyte *endPtr = in + inLength; in RLEEncodeImage()
1275 ubyte *origOut = out; in RLEEncodeImage()
1276 ubyte c; in RLEEncodeImage()
1314 ubyte *start, *p; in RLEEncodeImage()
1409 *pOutBuffer = (ubyte *) malloc(outBuffSize); // This multipliy by 10 needs to be removed... in StartJob()
1601 scratchBuffer = (ubyte *) malloc(len); in StartPage()
1635 ubyte *newStripPtr = NULL; in Encapsulate()
1638 ubyte *whereAreWe; in Encapsulate()
1652 whereAreWe = (ubyte *) tmpBuffer + (scanlineWidth * numLeftoverScanlines); in Encapsulate()
1662 whereAreWe = (ubyte *) pInBuffer + (scanlineWidth * numLeftoverScanlines); in Encapsulate()
1674 ubyte *ptr; in Encapsulate()
1680 ptr = (ubyte *) localInBuffer + scanlineWidth * numLeftoverScanlines; in Encapsulate()
1696 prepImageForBacksideDuplex((ubyte *) localInBuffer, numLinesThisCall, currSourceWidth, in Encapsulate()
1703 colorConvertSource(sourceColorSpace, grayScale, (ubyte *) localInBuffer, currSourceWidth, in Encapsulate()
1710 newStripPtr = shiftStripByLeftMargin((ubyte *) localInBuffer, currSourceWidth, in Encapsulate()
1726 ubyte whitePt = 0xff; in Encapsulate()
1728 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1759 memset((ubyte *) localInBuffer + numImagedBytes, 0xff, numLeftoverBytes); in Encapsulate()
1782 ubyte whitePt = 0xff; in Encapsulate()
1785 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1820 ubyte whitePt = 0xff; in Encapsulate()
1824 ubyte *tmpStrip = (ubyte *) malloc(scanlineWidth * topMarginInPix); in Encapsulate()
1851 compSize = RLEEncodeImage((ubyte *) localInBuffer, scratchBuffer, in Encapsulate()