• Home
  • Raw
  • Download

Lines Matching refs:subsamp

143 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp,  in checkBuf()  argument
179 if(subsamp==TJSAMP_GRAY) in checkBuf()
240 int subsamp, int jpegQual, int flags) in compTest() argument
246 (flags&TJFLAG_BOTTOMUP)? "Bottom-Up":"Top-Down ", subNameLong[subsamp], in compTest()
255 *dstSize=tjBufSize(w, h, subsamp); 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
290 if(_hdrw!=w || _hdrh!=h || _hdrsubsamp!=subsamp) 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
321 if((subsamp==TJSAMP_444 || subsamp==TJSAMP_GRAY)) in decompTest()
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()
336 void doTest(int w, int h, const int *formats, int nformats, int subsamp, in doTest() argument
343 size=tjBufSize(w, h, subsamp); in doTest()
355 if(subsamp==TJSAMP_422 || subsamp==TJSAMP_420 || subsamp==TJSAMP_440) 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()
365 basename, subsamp, flags); in doTest()
379 int w, h, i, subsamp; in bufSizeTest() local
387 for(subsamp=0; subsamp<TJ_NUMSAMP; subsamp++) in bufSizeTest()
397 if((jpegBuf=(unsigned char *)malloc(tjBufSize(w, h, subsamp))) in bufSizeTest()
400 jpegSize=tjBufSize(w, h, subsamp); in bufSizeTest()
409 &jpegSize, subsamp, 100, 0)); in bufSizeTest()
415 if((jpegBuf=(unsigned char *)malloc(tjBufSize(h, w, subsamp))) in bufSizeTest()
418 jpegSize=tjBufSize(h, w, subsamp); in bufSizeTest()
427 &jpegSize, subsamp, 100, 0)); in bufSizeTest()