Lines Matching refs:yuvBuf
378 unsigned char *srcBuf = NULL, *yuvBuf = NULL; in compTest() local
398 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in compTest()
400 memset(yuvBuf, 0, yuvSize); in compTest()
404 TRY_TJ(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest()
407 if (checkBufYUV(yuvBuf, w, h, subsamp, sf)) fprintf(stderr, "Passed.\n"); in compTest()
412 TRY_TJ(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, in compTest()
427 free(yuvBuf); in compTest()
437 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in _decompTest() local
460 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in _decompTest()
462 memset(yuvBuf, 0, yuvSize); in _decompTest()
468 TRY_TJ(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest()
470 if (checkBufYUV(yuvBuf, scaledWidth, scaledHeight, subsamp, sf)) in _decompTest()
477 TRY_TJ(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0, in _decompTest()
496 free(yuvBuf); in _decompTest()