Home
last modified time | relevance | path

Searched refs:compressedSize (Results 1 - 25 of 28) sorted by relevance

12

/third_party/lz4/ossfuzz/
H A Dround_trip_frame_uncompressed_fuzzer.c77 size_t compressedSize = headerSize; in compress_round_trip() local
80 size_t lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
83 compressedSize += lz4Return; in compress_round_trip()
86 lz4Return = LZ4F_uncompressedUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
89 compressedSize += lz4Return; in compress_round_trip()
92 lz4Return = LZ4F_compressUpdate(ctx, dst + compressedSize, dstCapacity, in compress_round_trip()
96 compressedSize += lz4Return; in compress_round_trip()
99 lz4Return = LZ4F_compressEnd(ctx, dst + compressedSize, dstCapacity, NULL); in compress_round_trip()
101 compressedSize += lz4Return; in compress_round_trip()
110 decompress(dctx, dst, rt, rtCapacity, compressedSize); in compress_round_trip()
[all...]
H A Dcompress_hc_fuzzer.c48 int compressedSize = size; in LLVMFuzzerTestOneInput() local
50 dst, &compressedSize, in LLVMFuzzerTestOneInput()
54 FUZZ_ASSERT_MSG(rtSize == compressedSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
55 FUZZ_ASSERT_MSG(!memcmp(data, rt, compressedSize), "Corruption!"); in LLVMFuzzerTestOneInput()
H A Dcompress_fuzzer.c44 int compressedSize = size; in LLVMFuzzerTestOneInput() local
46 &compressedSize, dstCapacity); in LLVMFuzzerTestOneInput()
49 FUZZ_ASSERT_MSG(rtSize == compressedSize, "Incorrect regenerated size"); in LLVMFuzzerTestOneInput()
50 FUZZ_ASSERT_MSG(!memcmp(data, rt, compressedSize), "Corruption!"); in LLVMFuzzerTestOneInput()
/third_party/lz4/tests/
H A Dfuzzer.c384 int compressedSize, HCcompressedSize; in FUZ_test() local
489 compressedSize = LZ4_compress_default(block, compressedBuffer, blockSize, (int)compressedBufferSize); in FUZ_test()
490 FUZ_CHECKTEST(compressedSize<=0, "LZ4_compress_default() failed"); in FUZ_test()
495 { char* const cBuffer_exact = (char*)malloc((size_t)compressedSize); in FUZ_test()
497 assert(compressedSize <= (int)compressedBufferSize); in FUZ_test()
502 memcpy(cBuffer_exact, compressedBuffer, compressedSize); in FUZ_test()
511 FUZ_CHECKTEST(r!=compressedSize, "LZ4_decompress_fast failed : did not fully read compressed data"); in FUZ_test()
534 { int const r = LZ4_decompress_safe(cBuffer_exact, decodedBuffer, compressedSize, blockSize); in FUZ_test()
547 { int const r = LZ4_decompress_safe(cBuffer_exact, decodedBuffer, compressedSize, blockSize+1); in FUZ_test()
559 { int const r = LZ4_decompress_safe(cBuffer_exact, decodedBuffer, compressedSize, blockSiz in FUZ_test()
1254 int compressedSize; U64 crcOrig; FUZ_unitTests() local
1501 int compressedSize; FUZ_unitTests() local
1558 int compressedSize; FUZ_unitTests() local
[all...]
H A Dfreestanding.c57 const int compressedSize = LZ4_compress_default( in test_lz4() local
63 if (compressedSize <= 0) { in test_lz4()
72 compressedSize, in test_lz4()
93 const int compressedSize = LZ4_compress_HC( in test_lz4hc() local
100 if (compressedSize <= 0) { in test_lz4hc()
109 compressedSize, in test_lz4hc()
H A Dfullbench.c84 int compressedSize; member
563 chunkP[i].compressedSize = 0; in fullSpeedBench()
615 chunkP[chunkNb].compressedSize = compressionFunction(chunkP[chunkNb].origBuffer, chunkP[chunkNb].compressedBuffer, chunkP[chunkNb].origSize); in fullSpeedBench()
616 if (chunkP[chunkNb].compressedSize==0) { in fullSpeedBench()
627 cSize=0; for (chunkNb=0; chunkNb<nbChunks; chunkNb++) cSize += (size_t)chunkP[chunkNb].compressedSize; in fullSpeedBench()
657 chunkP[i].compressedSize = 0; in fullSpeedBench()
661 chunkP[chunkNb].compressedSize = LZ4_compress_default(chunkP[chunkNb].origBuffer, chunkP[chunkNb].compressedBuffer, chunkP[chunkNb].origSize, maxCompressedChunkSize); in fullSpeedBench()
662 if (chunkP[chunkNb].compressedSize==0) { in fullSpeedBench()
701 chunkP[0].compressedSize = (int)fcsize; in fullSpeedBench()
728 chunkP[chunkNb].compressedSize, chunk in fullSpeedBench()
[all...]
H A Dframetest.c628 size_t compressedSize = cSizeWithDict; in basicTests() local
632 compressedBuffer, &compressedSize, in basicTests()
635 if (compressedSize != cSizeWithDict) goto _output_error; in basicTests()
685 size_t compressedSize = cSizeContiguous; in basicTests() local
689 compressedBuffer, &compressedSize, in basicTests()
692 if (compressedSize != cSizeContiguous) goto _output_error; in basicTests()
721 size_t compressedSize = cSizeIndep; in basicTests() local
725 compressedBuffer, &compressedSize, in basicTests()
728 if (compressedSize != cSizeIndep) goto _output_error; in basicTests()
/third_party/lz4/examples/
H A DframeCompress.c86 size_t compressedSize; in compress_file_internal() local
105 compressedSize = LZ4F_uncompressedUpdate(ctx, in compress_file_internal()
113 compressedSize = LZ4F_compressUpdate(ctx, in compress_file_internal()
120 if (LZ4F_isError(compressedSize)) { in compress_file_internal()
121 printf("Compression failed: error %u \n", (unsigned)compressedSize); in compress_file_internal()
125 printf("Writing %u bytes\n", (unsigned)compressedSize); in compress_file_internal()
126 safe_fwrite(outBuff, 1, compressedSize, f_out); in compress_file_internal()
127 count_out += compressedSize; in compress_file_internal()
131 { size_t const compressedSize = LZ4F_compressEnd(ctx, in compress_file_internal() local
134 if (LZ4F_isError(compressedSize)) { in compress_file_internal()
[all...]
/third_party/lz4/lib/
H A Dlz4.c744 int compressedSize, int maxOutputSize,
747 int compressedSize, int targetOutputSize, int dstCapacity,
2345 int LZ4_decompress_safe(const char* source, char* dest, int compressedSize, int maxDecompressedSize) in LZ4_decompress_safe() argument
2347 return LZ4_decompress_generic(source, dest, compressedSize, maxDecompressedSize, in LZ4_decompress_safe()
2353 int LZ4_decompress_safe_partial(const char* src, char* dst, int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial() argument
2356 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial()
2373 int LZ4_decompress_safe_withPrefix64k(const char* source, char* dest, int compressedSize, int maxOutputSize) in LZ4_decompress_safe_withPrefix64k() argument
2375 return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, in LZ4_decompress_safe_withPrefix64k()
2381 static int LZ4_decompress_safe_partial_withPrefix64k(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial_withPrefix64k() argument
2384 return LZ4_decompress_generic(source, dest, compressedSize, dstCapacit in LZ4_decompress_safe_partial_withPrefix64k()
2398 LZ4_decompress_safe_withSmallPrefix(const char* source, char* dest, int compressedSize, int maxOutputSize, size_t prefixSize) LZ4_decompress_safe_withSmallPrefix() argument
2407 LZ4_decompress_safe_partial_withSmallPrefix(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, size_t prefixSize) LZ4_decompress_safe_partial_withSmallPrefix() argument
2417 LZ4_decompress_safe_forceExtDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const void* dictStart, size_t dictSize) LZ4_decompress_safe_forceExtDict() argument
2427 LZ4_decompress_safe_partial_forceExtDict(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, const void* dictStart, size_t dictSize) LZ4_decompress_safe_partial_forceExtDict() argument
2451 LZ4_decompress_safe_doubleDict(const char* source, char* dest, int compressedSize, int maxOutputSize, size_t prefixSize, const void* dictStart, size_t dictSize) LZ4_decompress_safe_doubleDict() argument
2524 LZ4_decompress_safe_continue(LZ4_streamDecode_t* LZ4_streamDecode, const char* source, char* dest, int compressedSize, int maxOutputSize) LZ4_decompress_safe_continue() argument
2612 LZ4_decompress_safe_usingDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) LZ4_decompress_safe_usingDict() argument
2627 LZ4_decompress_safe_partial_usingDict(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity, const char* dictStart, int dictSize) LZ4_decompress_safe_partial_usingDict() argument
[all...]
H A Dlz4.h192 * compressedSize : is the exact complete size of the compressed block.
201 * Note 2 : compressedSize and dstCapacity must be provided to the function, the compressed block does not contain them.
205 LZ4LIB_API int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity);
492 int compressedSize,
597 * This presumes that decompressedSize > compressedSize.
629 #define LZ4_DECOMPRESS_INPLACE_MARGIN(compressedSize) (((compressedSize) >> 8) + 32)
630 #define LZ4_DECOMPRESS_INPLACE_BUFFER_SIZE(decompressedSize) ((decompressedSize) + LZ4_DECOMPRESS_INPLACE_MARGIN(decompressedSize)) /**< note: presumes that compressedSize < decompressedSize. note2: margin is overestimated a bit, since it could use compressedSize instead */
792 LZ4_DEPRECATED("use LZ4_decompress_safe_usingDict() instead") LZ4LIB_API int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, in
[all...]
/third_party/lzma/Java/SevenZip/
H A DLzmaBench.java339 int compressedSize = 0; in LzmaBenchmark()
350 compressedSize = compressedStream.size(); in LzmaBenchmark()
351 inputCompressedStream = new MyInputStream(compressedBuffer, compressedSize); in LzmaBenchmark()
353 else if (compressedSize != compressedStream.size()) in LzmaBenchmark()
376 PrintResults(dictionarySize, decodeTime, kBufferSize, true, compressedSize); in LzmaBenchmark()
382 totalCompressedSize += compressedSize; in LzmaBenchmark()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DBlobCache.cpp70 const size_t compressedSize, in DecompressBlobCacheData()
75 zlib_internal::GetGzipUncompressedSize(compressedData, compressedSize); in DecompressBlobCacheData()
86 uncompressedData->data(), &destLen, compressedData, static_cast<uLong>(compressedSize)); in DecompressBlobCacheData()
69 DecompressBlobCacheData(const uint8_t *compressedData, const size_t compressedSize, angle::MemoryBuffer *uncompressedData) DecompressBlobCacheData() argument
H A DBlobCache.h55 const size_t compressedSize,
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_preview.cpp416 uint32 compressedSize = fCompressedData->LogicalSize (); in SpoolAdobeThumbnail() local
422 stream.Put_uint32 (compressedSize + 28); in SpoolAdobeThumbnail()
431 stream.Put_uint32 (compressedSize); in SpoolAdobeThumbnail()
436 compressedSize); in SpoolAdobeThumbnail()
438 if (compressedSize & 1) in SpoolAdobeThumbnail()
H A Ddng_read_image.cpp2770 uint32 compressedSize, in dng_read_tiles_task()
2786 , fCompressedSize (compressedSize) in dng_read_tiles_task()
3129 uint32 compressedSize = 0; in Read() local
3141 compressedSize = maxTileByteCount; in Read()
3260 if (compressedSize && !jpegImage) in Read()
3262 compressedBuffer.Reset (host.Allocate (compressedSize)); in Read()
2757 dng_read_tiles_task(dng_read_image &readImage, dng_host &host, const dng_ifd &ifd, dng_stream &stream, dng_image &image, dng_jpeg_image *jpegImage, dng_fingerprint *jpegTileDigest, uint32 outerSamples, uint32 innerSamples, uint32 tilesDown, uint32 tilesAcross, uint64 *tileOffset, uint32 *tileByteCount, uint32 compressedSize, uint32 uncompressedSize) dng_read_tiles_task() argument
H A Ddng_image_writer.cpp4355 uint32 compressedSize, in dng_write_tiles_task()
4367 , fCompressedSize (compressedSize) in dng_write_tiles_task()
4634 uint32 compressedSize = CompressedBufferSize (ifd, uncompressedSize); in WriteImage() local
4666 compressedSize, in WriteImage()
4682 if (compressedSize) in WriteImage()
4684 compressedBuffer.Reset (host.Allocate (compressedSize)); in WriteImage()
4346 dng_write_tiles_task(dng_image_writer &imageWriter, dng_host &host, const dng_ifd &ifd, dng_basic_tag_set &basic, dng_stream &stream, const dng_image &image, uint32 fakeChannels, uint32 tilesDown, uint32 tilesAcross, uint32 compressedSize, uint32 uncompressedSize) dng_write_tiles_task() argument
/third_party/lzma/CS/7zip/Compress/LzmaAlone/
H A DLzmaBench.cs301 long compressedSize = compressedStream.Position; in LzmaBenchmark()
323 PrintResults(dictionarySize, decodeTime, kBufferSize, true, (ulong)compressedSize); in LzmaBenchmark()
329 totalCompressedSize += (ulong)compressedSize; in LzmaBenchmark()
H A DLzmaAlone.cs341 long compressedSize = inStream.Length - inStream.Position; in Main2()
342 decoder.Code(inStream, outStream, compressedSize, outSize, null); in Main2()
/third_party/lzma/CPP/7zip/UI/Common/
H A DBench.cpp1073 size_t compressedSize;
1417 compressedSize = 0;
1419 compressedSize = kBufferSize;
1483 if (compressedSize != outStreamSpec->Pos)
1485 if (compressedSize != 0)
1487 compressedSize = outStreamSpec->Pos;
1503 bi.PackSize += compressedSize;
1513 info.PackSize = compressedSize;
1514 // printf("\n%7d\n", encoder.compressedSize);
1606 if (compressedSize > rgCop
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
H A DExhaustiveTest.java98 int compressedSize = Math.max(512, 3 * len); in myMultipassTest()
99 byte[] compressed = new byte[compressedSize]; in myMultipassTest()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/compression/
H A DExhaustiveTest.java101 int compressedSize = Math.max(512, 3 * len); in myMultipassTest()
102 byte[] compressed = new byte[compressedSize]; in myMultipassTest()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DRendererVk.cpp892 size_t compressedSize = 0; in GetAndDecompressPipelineCacheVk() local
917 if (checkNumber != numChunks || compressedData.size() < (compressedSize + chunkSize)) in GetAndDecompressPipelineCacheVk()
923 << ", (compressedSize + chunkSize) = " << (compressedSize + chunkSize); in GetAndDecompressPipelineCacheVk()
926 memcpy(compressedData.data() + compressedSize, keyData.data() + kBlobHeaderSize, chunkSize); in GetAndDecompressPipelineCacheVk()
927 compressedSize += chunkSize; in GetAndDecompressPipelineCacheVk()
932 egl::DecompressBlobCacheData(compressedData.data(), compressedSize, uncompressedData), in GetAndDecompressPipelineCacheVk()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dturbojpeg.h1717 unsigned char *dstBuf, unsigned long *compressedSize,
/third_party/astc-encoder/Source/
H A Dtinyexr.h7521 tinyexr::tinyexr_uint64 &compressedSize, in CompressZip()
7583 compressedSize = outSize; in CompressZip()
7590 compressedSize = outSize; in CompressZip()
7595 if (compressedSize >= src_size) { in CompressZip()
7596 compressedSize = src_size; in CompressZip()
7786 tinyexr::tinyexr_uint64 &compressedSize, in CompressRle()
7842 compressedSize = static_cast<tinyexr::tinyexr_uint64>(outSize); in CompressRle()
7846 if (compressedSize >= src_size) { in CompressRle()
7847 compressedSize = src_size; in CompressRle()
7520 CompressZip(unsigned char *dst, tinyexr::tinyexr_uint64 &compressedSize, const unsigned char *src, unsigned long src_size) CompressZip() argument
7785 CompressRle(unsigned char *dst, tinyexr::tinyexr_uint64 &compressedSize, const unsigned char *src, unsigned long src_size) CompressRle() argument
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
H A DFrameCapture.cpp832 uLong compressedSize = expectedCompressedSize; in SaveBinaryData() local
833 int zResult = zlib_internal::GzipCompressHelper(compressedData.data(), &compressedSize, in SaveBinaryData()
842 saveData.write(compressedData.data(), compressedSize); in SaveBinaryData()

Completed in 73 milliseconds

12