/third_party/lz4/tests/ |
D | frametest.c | 177 void* const compressedBuffer = malloc(cBuffSize); in basicTests() local 188 if (!CNBuffer || !compressedBuffer || !decodedBuffer) { in basicTests() 223 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 232 size_t const fhs = LZ4F_headerSize(compressedBuffer, LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH); in basicTests() 235 CHECK( LZ4F_getFrameInfo(dCtx, &frame_info, compressedBuffer, &avail_in) ); in basicTests() 250 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 255 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 265 …CHECK( LZ4F_decompress(dCtx, decodedBuffer, &decodedBufferSize, compressedBuffer, &compressedBuffe… in basicTests() 273 const BYTE* cBuff = (const BYTE*) compressedBuffer; in basicTests() 300 const BYTE* ip = (BYTE*)compressedBuffer; in basicTests() [all …]
|
D | fuzzer.c | 324 char* const compressedBuffer = (char*)malloc(compressedBufferSize); in FUZ_test() local 357 if(!CNBuffer || !compressedBuffer || !decodedBuffer || !LZ4dictHC) { in FUZ_test() 402 compressedBuffer[targetSize] = endCheck; in FUZ_test() 403 cSize = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); in FUZ_test() 405 …FUZ_CHECKTEST(compressedBuffer[targetSize] != endCheck, "LZ4_compress_destSize() overwrite dst buf… in FUZ_test() 415 … { int const dSize = LZ4_decompress_safe(compressedBuffer, decodedBuffer, cSize, srcSize); in FUZ_test() 433 compressedBuffer[targetSize] = endCheck; in FUZ_test() 434 …cSize = LZ4_compress_HC_destSize(ctx, block, compressedBuffer, &srcSize, targetSize, compressionLe… in FUZ_test() 439 …FUZ_CHECKTEST(compressedBuffer[targetSize] != endCheck, "LZ4_compress_HC_destSize() overwrite dst … in FUZ_test() 448 … { int const dSize = LZ4_decompress_safe(compressedBuffer, decodedBuffer, cSize, srcSize); in FUZ_test() [all …]
|
D | fullbench.c | 82 char* compressedBuffer; member 536 chunkP[i].compressedBuffer = out; out += maxCompressedChunkSize; in fullSpeedBench() 589 …e = compressionFunction(chunkP[chunkNb].origBuffer, chunkP[chunkNb].compressedBuffer, chunkP[chunk… in fullSpeedBench() 630 chunkP[i].compressedBuffer = out; out += maxCompressedChunkSize; in fullSpeedBench() 635 … = LZ4_compress_default(chunkP[chunkNb].origBuffer, chunkP[chunkNb].compressedBuffer, chunkP[chunk… in fullSpeedBench() 699 …int const decodedSize = decompressionFunction(chunkP[chunkNb].compressedBuffer, chunkP[chunkNb].or… in fullSpeedBench()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_read_image.cpp | 2168 AutoPtr<dng_memory_block> &compressedBuffer, in ReadTile() argument 2301 if (!expander.Expand (compressedBuffer->Buffer_uint8 (), in ReadTile() 2314 dng_stream subStream (compressedBuffer->Buffer_uint8 (), in ReadTile() 2333 (const Bytef *) compressedBuffer->Buffer (), in ReadTile() 2543 compressedBuffer.Get () ? compressedBuffer->Buffer_uint8 () : NULL)) in ReadTile() 2590 compressedBuffer.Get () ? compressedBuffer->Buffer_uint8 () : NULL)) in ReadTile() 2804 AutoPtr<dng_memory_block> compressedBuffer; in Process() local 2810 compressedBuffer.Reset (fHost.Allocate (fCompressedSize)); in Process() 2849 : compressedBuffer->Buffer (), in Process() 2861 printer.Process (compressedBuffer->Buffer (), in Process() [all …]
|
D | dng_jpeg_image.cpp | 97 AutoPtr<dng_memory_block> compressedBuffer; in Process() local 142 compressedBuffer, in Process()
|
D | dng_read_image.h | 172 AutoPtr<dng_memory_block> &compressedBuffer,
|
D | dng_image_writer.cpp | 3715 AutoPtr<dng_memory_block> &compressedBuffer) in WriteData() argument 3794 uint8 *dBuffer = compressedBuffer->Buffer_uint8 (); in WriteData() 3811 uLongf dCount = compressedBuffer->LogicalSize (); in WriteData() 3840 if (dBytes > compressedBuffer->LogicalSize ()) in WriteData() 3866 temp.fData = compressedBuffer->Buffer (); in WriteData() 4173 AutoPtr<dng_memory_block> &compressedBuffer, in WriteTile() argument 4299 compressedBuffer); in WriteTile() 4392 AutoPtr<dng_memory_block> compressedBuffer; in Process() local 4399 compressedBuffer.Reset (fHost.Allocate (fCompressedSize)); in Process() 4455 compressedBuffer, in Process() [all …]
|
D | dng_image_writer.h | 1226 AutoPtr<dng_memory_block> &compressedBuffer); 1234 AutoPtr<dng_memory_block> &compressedBuffer,
|
/third_party/vk-gl-cts/framework/qphelper/ |
D | qpTestLog.c | 893 Buffer compressedBuffer; in qpTestLog_writeImage() local 905 Buffer_init(&compressedBuffer); in qpTestLog_writeImage() 921 deBool compressOk = compressImagePNG(&compressedBuffer, imageFormat, width, height, stride, data); in qpTestLog_writeImage() 924 writeDataPtr = compressedBuffer.data; in qpTestLog_writeImage() 925 writeDataBytes = compressedBuffer.size; in qpTestLog_writeImage() 949 if (Buffer_resize(&compressedBuffer, (size_t)(packedStride*height))) in qpTestLog_writeImage() 953 …memcpy(&compressedBuffer.data[packedStride*row], &((const deUint8*)data)[row*stride], (size_t)(pix… in qpTestLog_writeImage() 958 Buffer_deinit(&compressedBuffer); in qpTestLog_writeImage() 975 Buffer_deinit(&compressedBuffer); in qpTestLog_writeImage() 999 Buffer_deinit(&compressedBuffer); in qpTestLog_writeImage() [all …]
|
/third_party/lz4/programs/ |
D | bench.c | 328 void* const compressedBuffer = malloc(maxCompressedSize); in BMK_benchMem() local 334 if (!compressedBuffer || !resultBuffer || !blockTable) in BMK_benchMem() 345 char* cPtr = (char*)compressedBuffer; in BMK_benchMem() 366 RDG_genBuffer(compressedBuffer, maxCompressedSize, 0.10, 0.50, 1); in BMK_benchMem() 395 …if (!cCompleted) memset(compressedBuffer, 0xE5, maxCompressedSize); /* warm up and erase result b… in BMK_benchMem() 522 free(compressedBuffer); in BMK_benchMem()
|