• Home
  • Raw
  • Download

Lines Matching refs:pf

73 void initBuf(unsigned char *buf, int w, int h, int pf, int flags)  in initBuf()  argument
75 int roffset=tjRedOffset[pf]; in initBuf()
76 int goffset=tjGreenOffset[pf]; in initBuf()
77 int boffset=tjBlueOffset[pf]; in initBuf()
78 int ps=tjPixelSize[pf]; in initBuf()
82 if(pf==TJPF_GRAY) in initBuf()
143 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument
146 int roffset=tjRedOffset[pf]; in checkBuf()
147 int goffset=tjGreenOffset[pf]; in checkBuf()
148 int boffset=tjBlueOffset[pf]; in checkBuf()
149 int aoffset=alphaOffset[pf]; in checkBuf()
150 int ps=tjPixelSize[pf]; in checkBuf()
239 unsigned long *dstSize, int w, int h, int pf, char *basename, in compTest() argument
245 printf("%s %s -> %s Q%d ... ", pixFormatStr[pf], in compTest()
249 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest()
251 initBuf(srcBuf, w, h, pf, flags); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
261 pixFormatStr[pf], (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subName[subsamp], in compTest()
273 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in _decompTest() argument
282 printf("JPEG -> %s %s ", pixFormatStr[pf], in _decompTest()
293 dstSize=scaledWidth*scaledHeight*tjPixelSize[pf]; in _decompTest()
300 scaledHeight, pf, flags)); in _decompTest()
303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags)) in _decompTest()
314 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in decompTest() argument
324 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
328 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, flags, in decompTest()
341 unsigned long size=0; int pfi, pf, i; in doTest() local
358 pf=formats[pfi]; in doTest()
359 compTest(chandle, &dstBuf, &size, w, h, pf, basename, subsamp, 100, in doTest()
361 decompTest(dhandle, dstBuf, size, w, h, pf, basename, subsamp, in doTest()
363 if(pf>=TJPF_RGBX && pf<=TJPF_XRGB) in doTest()
364 decompTest(dhandle, dstBuf, size, w, h, pf+(TJPF_RGBA-TJPF_RGBX), in doTest()