Lines Matching refs:srcBuf

138 int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,  in decomp()  argument
266 if (srcBuf && sf.num == 1 && sf.denom == 1) { in decomp()
276 int y = (int)((double)srcBuf[rindex] * 0.299 + in decomp()
277 (double)srcBuf[gindex] * 0.587 + in decomp()
278 (double)srcBuf[bindex] * 0.114 + 0.5); in decomp()
291 abs(dstBuf[pitch * row + col] - srcBuf[pitch * row + col]); in decomp()
306 int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, int jpegQual, in fullTest() argument
359 memcpy(&tmpBuf[pitch * i], &srcBuf[w * ps * i], w * ps); in fullTest()
378 for (row = 0, srcPtr = srcBuf; row < ntilesh; in fullTest()
472 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
511 unsigned char **jpegBuf = NULL, *srcBuf = NULL; in decompTest() local
528 if ((srcBuf = (unsigned char *)malloc(srcSize)) == NULL) in decompTest()
532 if (fread(srcBuf, srcSize, 1, file) < 1) in decompTest()
541 if (tjDecompressHeader3(handle, srcBuf, srcSize, &w, &h, &subsamp, in decompTest()
648 if (tjTransform(handle, srcBuf, srcSize, tntilesw * tntilesh, jpegBuf, in decompTest()
695 if (decomp(NULL, decompsrc ? &srcBuf : jpegBuf, in decompTest()
720 if (srcBuf) { free(srcBuf); srcBuf = NULL; } in decompTest()
800 unsigned char *srcBuf = NULL; in main() local
963 if ((srcBuf = tjLoadImage(argv[1], &w, 1, &h, &pf, flags)) == NULL) in main()
991 fullTest(srcBuf, w, h, subsamp, i, argv[1]); in main()
996 fullTest(srcBuf, w, h, TJSAMP_GRAY, i, argv[1]); in main()
1000 fullTest(srcBuf, w, h, TJSAMP_420, i, argv[1]); in main()
1003 fullTest(srcBuf, w, h, TJSAMP_422, i, argv[1]); in main()
1006 fullTest(srcBuf, w, h, TJSAMP_444, i, argv[1]); in main()
1011 if (srcBuf) tjFree(srcBuf); in main()