Lines Matching refs:dstSize
361 unsigned long *dstSize, int w, int h, int pf, in compTest() argument
375 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
399 dstSize, jpegQual, flags)); in compTest()
403 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
409 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
427 unsigned long dstSize = 0; in _decompTest() local
434 dstSize = scaledWidth * scaledHeight * tjPixelSize[pf]; in _decompTest()
435 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
437 memset(dstBuf, 0, dstSize); in _decompTest()
598 unsigned long dstSize = 0; in bufSizeTest() local
612 if (doYUV) dstSize = tjBufSizeYUV2(w, pad, h, subsamp); in bufSizeTest()
613 else dstSize = tjBufSize(w, h, subsamp); in bufSizeTest()
614 if ((dstBuf = (unsigned char *)tjAlloc(dstSize)) == NULL) in bufSizeTest()
628 &dstSize, subsamp, 100, in bufSizeTest()
639 if (doYUV) dstSize = tjBufSizeYUV2(h, pad, w, subsamp); in bufSizeTest()
640 else dstSize = tjBufSize(h, w, subsamp); in bufSizeTest()
641 if ((dstBuf = (unsigned char *)tjAlloc(dstSize)) == NULL) in bufSizeTest()
655 &dstSize, subsamp, 100, in bufSizeTest()