• Home
  • Raw
  • Download

Lines Matching refs:srcBuf

142 static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,  in decomp()  argument
278 if (srcBuf && sf.num == 1 && sf.denom == 1) { in decomp()
288 int y = (int)((double)srcBuf[rindex] * 0.299 + in decomp()
289 (double)srcBuf[gindex] * 0.587 + in decomp()
290 (double)srcBuf[bindex] * 0.114 + 0.5); in decomp()
303 abs(dstBuf[pitch * row + col] - srcBuf[pitch * row + col]); in decomp()
318 static int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, in fullTest() argument
376 memcpy(&tmpBuf[pitch * i], &srcBuf[w * ps * i], w * ps); in fullTest()
397 for (row = 0, srcPtr = srcBuf; row < ntilesh; in fullTest()
497 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
534 unsigned char **jpegBuf = NULL, *srcBuf = NULL; in decompTest() local
551 if ((srcBuf = (unsigned char *)malloc(srcSize)) == NULL) in decompTest()
555 if (fread(srcBuf, srcSize, 1, file) < 1) in decompTest()
564 if (tjDecompressHeader3(handle, srcBuf, srcSize, &w, &h, &subsamp, in decompTest()
677 if (tjTransform(handle, srcBuf, srcSize, tntilesw * tntilesh, jpegBuf, in decompTest()
726 if (decomp(NULL, decompsrc ? &srcBuf : jpegBuf, in decompTest()
750 free(srcBuf); in decompTest()
835 unsigned char *srcBuf = NULL; in main() local
1000 if ((srcBuf = tjLoadImage(argv[1], &w, 1, &h, &pf, flags)) == NULL) in main()
1028 fullTest(srcBuf, w, h, subsamp, i, argv[1]); in main()
1033 fullTest(srcBuf, w, h, TJSAMP_GRAY, i, argv[1]); in main()
1037 fullTest(srcBuf, w, h, TJSAMP_420, i, argv[1]); in main()
1040 fullTest(srcBuf, w, h, TJSAMP_422, i, argv[1]); in main()
1043 fullTest(srcBuf, w, h, TJSAMP_444, i, argv[1]); in main()
1048 tjFree(srcBuf); in main()