Lines Matching refs:jpegBuf
139 int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, in decomp() argument
204 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp()
212 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp()
318 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr, in fullTest() local
346 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in fullTest()
349 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in fullTest()
359 if ((jpegBuf[i] = (unsigned char *) in fullTest()
406 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
411 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
477 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest()
485 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
491 if (jpegBuf[i]) tjFree(jpegBuf[i]); in fullTest()
492 jpegBuf[i] = NULL; in fullTest()
494 free(jpegBuf); jpegBuf = NULL; in fullTest()
505 if (jpegBuf) { in fullTest()
507 if (jpegBuf[i]) tjFree(jpegBuf[i]); in fullTest()
508 jpegBuf[i] = NULL; in fullTest()
510 free(jpegBuf); jpegBuf = NULL; in fullTest()
524 unsigned char **jpegBuf = NULL, *srcBuf = NULL; in decompTest() local
584 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in decompTest()
587 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in decompTest()
598 if ((jpegBuf[i] = (unsigned char *) in decompTest()
654 if (t[tile].options & TJXOPT_NOOUTPUT && jpegBuf[tile]) { in decompTest()
655 tjFree(jpegBuf[tile]); jpegBuf[tile] = NULL; in decompTest()
664 if (tjTransform(handle, srcBuf, srcSize, tntilesw * tntilesh, jpegBuf, in decompTest()
703 if(jpegBuf[0]) tjFree(jpegBuf[0]); in decompTest()
704 jpegBuf[0] = NULL; in decompTest()
711 if (decomp(NULL, decompsrc ? &srcBuf : jpegBuf, in decompTest()
718 if(jpegBuf[i]) tjFree(jpegBuf[i]); in decompTest()
719 jpegBuf[i] = NULL; in decompTest()
721 free(jpegBuf); jpegBuf = NULL; in decompTest()
729 if (jpegBuf) { in decompTest()
731 if (jpegBuf[i]) tjFree(jpegBuf[i]); in decompTest()
732 jpegBuf[i] = NULL; in decompTest()
734 free(jpegBuf); jpegBuf = NULL; in decompTest()