Home
last modified time | relevance | path

Searched refs:compressed_data (Results 1 – 25 of 31) sorted by relevance

12

/third_party/lz4/examples/
Dsimple_buffer.c47 char* compressed_data = malloc((size_t)max_dst_size); in main() local
48 if (compressed_data == NULL) in main()
53 …const int compressed_data_size = LZ4_compress_default(src, compressed_data, src_size, max_dst_size… in main()
62 compressed_data = (char *)realloc(compressed_data, (size_t)compressed_data_size); in main()
63 if (compressed_data == NULL) in main()
82 …const int decompressed_size = LZ4_decompress_safe(compressed_data, regen_buffer, compressed_data_s… in main()
83 free(compressed_data); /* no longer useful */ in main()
/third_party/node/deps/zlib/google/
Dcompression_utils_unittest.cc38 std::string compressed_data; in TEST() local
39 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
43 EXPECT_EQ(golden_compressed_data, compressed_data); in TEST()
47 std::string compressed_data(reinterpret_cast<const char*>(kCompressedData), in TEST()
51 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
59 base::StringPiece compressed_data( in TEST()
64 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
81 std::string compressed_data; in TEST() local
82 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
85 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
Dcompression_utils.cc47 Bytef* compressed_data; in GzipCompress() local
49 reinterpret_cast<void**>(&compressed_data))) { in GzipCompress()
53 if (zlib_internal::GzipCompressHelper(compressed_data, &compressed_data_size, in GzipCompress()
56 free(compressed_data); in GzipCompress()
61 reinterpret_cast<Bytef*>(realloc(compressed_data, compressed_data_size)); in GzipCompress()
63 free(compressed_data); in GzipCompress()
111 uint32_t GetUncompressedSize(base::StringPiece compressed_data) { in GetUncompressedSize() argument
113 bit_cast<Bytef*>(compressed_data.data()), compressed_data.length()); in GetUncompressedSize()
Dcompression_utils_portable.cc37 uint32_t GetGzipUncompressedSize(const Bytef* compressed_data, size_t length) { in GetGzipUncompressedSize() argument
42 memcpy(&size, &compressed_data[length - sizeof(size)], sizeof(size)); in GetGzipUncompressedSize()
Dcompression_utils.h52 uint32_t GetUncompressedSize(base::StringPiece compressed_data);
Dcompression_utils_portable.h28 uint32_t GetGzipUncompressedSize(const Bytef* compressed_data, size_t length);
/third_party/flutter/skia/third_party/externals/zlib/google/
Dcompression_utils_unittest.cc38 std::string compressed_data; in TEST() local
39 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
43 EXPECT_EQ(golden_compressed_data, compressed_data); in TEST()
47 std::string compressed_data(reinterpret_cast<const char*>(kCompressedData), in TEST()
51 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
68 std::string compressed_data; in TEST() local
69 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
72 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
Dcompression_utils.cc134 Bytef* compressed_data; in GzipCompress() local
136 reinterpret_cast<void**>(&compressed_data))) { in GzipCompress()
140 if (GzipCompressHelper(compressed_data, &compressed_data_size, in GzipCompress()
143 free(compressed_data); in GzipCompress()
148 reinterpret_cast<Bytef*>(realloc(compressed_data, compressed_data_size)); in GzipCompress()
150 free(compressed_data); in GzipCompress()
184 uint32_t GetUncompressedSize(base::StringPiece compressed_data) { in GetUncompressedSize() argument
187 if (compressed_data.length() < sizeof(size)) in GetUncompressedSize()
190 &compressed_data.data()[compressed_data.length() - sizeof(size)], in GetUncompressedSize()
Dcompression_utils.h29 uint32_t GetUncompressedSize(base::StringPiece compressed_data);
/third_party/skia/third_party/externals/zlib/google/
Dcompression_utils.cc50 Bytef* compressed_data; in GzipCompress() local
52 reinterpret_cast<void**>(&compressed_data))) { in GzipCompress()
56 if (zlib_internal::GzipCompressHelper(compressed_data, &compressed_data_size, in GzipCompress()
59 free(compressed_data); in GzipCompress()
64 reinterpret_cast<Bytef*>(realloc(compressed_data, compressed_data_size)); in GzipCompress()
66 free(compressed_data); in GzipCompress()
124 uint32_t GetUncompressedSize(base::span<const char> compressed_data) { in GetUncompressedSize() argument
125 return GetUncompressedSize(base::as_bytes(compressed_data)); in GetUncompressedSize()
128 uint32_t GetUncompressedSize(base::span<const uint8_t> compressed_data) { in GetUncompressedSize() argument
130 bit_cast<Bytef*>(compressed_data.data()), compressed_data.size()); in GetUncompressedSize()
Dcompression_utils_unittest.cc37 std::string compressed_data; in TEST() local
38 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
42 EXPECT_EQ(golden_compressed_data, compressed_data); in TEST()
46 std::string compressed_data(reinterpret_cast<const char*>(kCompressedData), in TEST()
50 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
76 std::string compressed_data; in TEST() local
77 EXPECT_TRUE(GzipCompress(data, &compressed_data)); in TEST()
80 EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data)); in TEST()
Dcompression_utils.h63 uint32_t GetUncompressedSize(base::span<const char> compressed_data);
66 uint32_t GetUncompressedSize(base::span<const uint8_t> compressed_data);
Dcompression_utils_portable.cc37 uint32_t GetGzipUncompressedSize(const Bytef* compressed_data, size_t length) { in GetGzipUncompressedSize() argument
42 memcpy(&size, &compressed_data[length - sizeof(size)], sizeof(size)); in GetGzipUncompressedSize()
Dcompression_utils_portable.h32 uint32_t GetGzipUncompressedSize(const Bytef* compressed_data, size_t length);
/third_party/mesa3d/src/intel/genxml/
Dgen_zipped_file.py43 compressed_data = b''
53 compressed_data += compress.compress(xml)
58 compressed_data += compress.flush()
63 for i, c in enumerate(bytearray(compressed_data), start=1):
/third_party/ffmpeg/libavcodec/
Dexrenc.c60 uint8_t *compressed_data; member
142 av_freep(&scanline->compressed_data); in encode_close()
231 …av_fast_padded_malloc(&scanline->compressed_data, &scanline->compressed_size, max_compressed_size); in encode_scanline_rle()
232 if (!scanline->compressed_data) in encode_scanline_rle()
258 scanline->actual_size = rle_compress(scanline->compressed_data, in encode_scanline_rle()
263 FFSWAP(uint8_t *, scanline->uncompressed_data, scanline->compressed_data); in encode_scanline_rle()
291 …av_fast_padded_malloc(&scanline->compressed_data, &scanline->compressed_size, max_compressed_size); in encode_scanline_zip()
292 if (!scanline->compressed_data) in encode_scanline_zip()
329 compress(scanline->compressed_data, &actual_size, in encode_scanline_zip()
334 FFSWAP(uint8_t *, scanline->uncompressed_data, scanline->compressed_data); in encode_scanline_zip()
[all …]
Dqdm2.c168 const uint8_t *compressed_data; member
1136 init_get_bits(&gb, q->compressed_data, q->compressed_size * 8); in qdm2_decode_super_block()
1154 csum = qdm2_packet_checksum(q->compressed_data, q->checksum_size, csum); in qdm2_decode_super_block()
1787 q->compressed_data = in; in qdm2_decode()
/third_party/mesa3d/src/util/
Ddisk_cache_os.c602 void *compressed_data = malloc(max_buf); in create_cache_item_header_and_blob() local
603 if (compressed_data == NULL) in create_cache_item_header_and_blob()
608 compressed_data, max_buf); in create_cache_item_header_and_blob()
642 cf_data.crc32 = util_hash_crc32(compressed_data, compressed_size); in create_cache_item_header_and_blob()
649 if (!blob_write_bytes(cache_blob, compressed_data, compressed_size)) in create_cache_item_header_and_blob()
652 free(compressed_data); in create_cache_item_header_and_blob()
656 free(compressed_data); in create_cache_item_header_and_blob()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/
Dgst-atsc-section.c636 g_convert ((gchar *) seg->compressed_data, in _gst_mpegts_atsc_string_segment_decode_string()
647 g_strndup ((gchar *) seg->compressed_data, seg->compressed_data_size); in _gst_mpegts_atsc_string_segment_decode_string()
686 if (seg->compressed_data) in gst_mpegts_atsc_string_segment_set_string()
687 g_free (seg->compressed_data); in gst_mpegts_atsc_string_segment_set_string()
706 seg->compressed_data = (guint8 *) g_strndup (converted, written); in gst_mpegts_atsc_string_segment_set_string()
710 seg->compressed_data = (guint8 *) g_strndup (string, len); in gst_mpegts_atsc_string_segment_set_string()
815 seg->compressed_data = data; in _parse_atsc_mult_string()
873 memcpy (*data, seg->compressed_data, seg->compressed_data_size); in _packetize_atsc_mult_string()
Dgst-atsc-section.h291 guint8 *compressed_data; member
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_texture.c489 if (stImage->compressed_data && in st_FreeTextureImageBuffer()
490 pipe_reference(&stImage->compressed_data->reference, NULL)) { in st_FreeTextureImageBuffer()
491 free(stImage->compressed_data->ptr); in st_FreeTextureImageBuffer()
492 free(stImage->compressed_data); in st_FreeTextureImageBuffer()
493 stImage->compressed_data = NULL; in st_FreeTextureImageBuffer()
540 if (stImage->compressed_data && in compressed_tex_fallback_allocate()
541 pipe_reference(&stImage->compressed_data->reference, NULL)) { in compressed_tex_fallback_allocate()
542 free(stImage->compressed_data->ptr); in compressed_tex_fallback_allocate()
543 free(stImage->compressed_data); in compressed_tex_fallback_allocate()
551 stImage->compressed_data = ST_CALLOC_STRUCT(st_compressed_data); in compressed_tex_fallback_allocate()
[all …]
Dst_texture.h128 struct st_compressed_data* compressed_data; member
/third_party/mesa3d/docs/relnotes/
D20.1.4.rst95 - st/mesa: set compressed_data to NULL when freed
D20.1.2.rst116 - st/mesa: make texture views inherit compressed_data storage
/third_party/node/
Dconfigure.py1660 compressed_data = '%s.bz2' % (icu_data_path)
1661 if not os.path.isfile(icu_data_path) and os.path.isfile(compressed_data):
1668 inf = bz2.BZ2File(compressed_data, 'rb')

12