Searched refs:yuvBuf (Results 1 – 2 of 2) sorted by relevance
/external/libjpeg-turbo/ |
D | tjbench.c | 157 unsigned char *dstPtr, *dstPtr2, *yuvBuf = NULL; in decomp() local 186 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in decomp() 188 memset(yuvBuf, 127, yuvSize); in decomp() 208 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp() 212 if (tjDecodeYUV(handle, yuvBuf, yuvPad, subsamp, dstPtr2, width, in decomp() 313 free(yuvBuf); in decomp() 324 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr, in fullTest() local 384 if ((yuvBuf = (unsigned char *)malloc(yuvSize)) == NULL) in fullTest() 386 memset(yuvBuf, 127, yuvSize); in fullTest() 407 if (tjEncodeYUV3(handle, srcPtr2, width, pitch, height, pf, yuvBuf, in fullTest() [all …]
|
D | tjunittest.c | 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() [all …]
|