Home
last modified time | relevance | path

Searched refs:compressor (Results 1 – 25 of 104) sorted by relevance

12345

/external/squashfs-tools/squashfs-tools/
Dcompressor.c29 static struct compressor gzip_comp_ops = {
33 extern struct compressor gzip_comp_ops;
37 static struct compressor lzma_comp_ops = {
41 extern struct compressor lzma_comp_ops;
45 static struct compressor lzo_comp_ops = {
49 extern struct compressor lzo_comp_ops;
53 static struct compressor lz4_comp_ops = {
57 extern struct compressor lz4_comp_ops;
61 static struct compressor xz_comp_ops = {
65 extern struct compressor xz_comp_ops;
[all …]
Dcompressor.h25 struct compressor { struct
41 extern struct compressor *lookup_compressor(char *); argument
42 extern struct compressor *lookup_compressor_id(int);
46 static inline int compressor_init(struct compressor *comp, void **stream, in compressor_init()
55 static inline int compressor_compress(struct compressor *comp, void *strm, in compressor_compress()
62 static inline int compressor_uncompress(struct compressor *comp, void *dest, in compressor_uncompress()
73 static inline int compressor_options(struct compressor *comp, char *argv[], in compressor_options()
83 static inline int compressor_options_post(struct compressor *comp, int block_size) in compressor_options_post()
91 static inline void *compressor_dump_options(struct compressor *comp, in compressor_dump_options()
100 static inline int compressor_extract_options(struct compressor *comp, in compressor_extract_options()
[all …]
DMakefile113 MKSQUASHFS_OBJS = mksquashfs.o read_fs.o action.o swap.o pseudo.o compressor.o \
118 unsquash-4.o swap.o compressor.o unsquashfs_info.o
212 $(error "No compressor selected! Select one or more of GZIP, LZMA, XZ, LZO or \
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DDeflateCompressorTest.java51 private DeflateCompressor compressor; field in DeflateCompressorTest
79 compressor = new DeflateCompressor(); in setUp()
86 compressor.compress(rawContentIn, compressedContentOut); in testCompress()
90 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); in testCompress()
99 Assert.assertTrue(compressor.isNowrap());
100 Assert.assertEquals(Deflater.DEFAULT_COMPRESSION, compressor.getCompressionLevel());
101 Assert.assertEquals(Deflater.DEFAULT_STRATEGY, compressor.getStrategy());
107 Assert.assertTrue(compressor.isNowrap());
108 compressor.compress(rawContentIn, compressedContentOut);
111 uncompressWithJavaInflater(compressor.isNowrap(), compressedWithNowrapOn);
[all …]
DPartiallyUncompressingPipeTest.java65 DeflateCompressor compressor = new DeflateCompressor(); in testWriteAll_Compressed_NoWrapFalse() local
66 compressor.setNowrap(false); in testWriteAll_Compressed_NoWrapFalse()
68 compressor.compress( in testWriteAll_Compressed_NoWrapFalse()
/external/brotli/python/tests/
Dcompressor_test.py21 self.compressor = None
38 out_file.write(self.compressor.process(in_file.read()))
39 out_file.write(self.compressor.finish())
49 out_file.write(self.compressor.process(data))
50 out_file.write(self.compressor.finish())
60 out_file.write(self.compressor.process(data))
61 out_file.write(self.compressor.flush())
62 out_file.write(self.compressor.finish())
72 self.compressor = brotli.Compressor(quality=1)
78 self.compressor = brotli.Compressor(quality=6)
[all …]
/external/bsdiff/
Dpatch_writer.cc68 for (const auto& compressor : *compressor_list) { in InitializeCompressorList()
69 if (!compressor) { in InitializeCompressorList()
102 for (const auto& compressor : diff_stream_list_) { in WriteDiffStream() local
103 if (!compressor->Write(data, size)) { in WriteDiffStream()
112 for (const auto& compressor : extra_stream_list_) { in WriteExtraStream() local
113 if (!compressor->Write(data, size)) { in WriteExtraStream()
128 for (const auto& compressor : ctrl_stream_list_) { in AddControlEntry() local
129 if (!compressor->Write(buf, sizeof(buf))) { in AddControlEntry()
142 for (const auto& compressor : compressor_list) { in SelectSmallestResult() local
143 if (!compressor->Finish()) { in SelectSmallestResult()
[all …]
/external/caliper/examples/src/main/java/examples/
DCompressionSizeBenchmark.java69 Deflater compressor = new Deflater(); in compress() local
70 compressor.setLevel(compressionLevelMap.get(compressionLevel)); in compress()
71 compressor.setInput(bytes); in compress()
72 compressor.finish(); in compress()
75 while (!compressor.finished()) { in compress()
76 int count = compressor.deflate(buf); in compress()
/external/archive-patcher/explainer/src/main/java/com/google/archivepatcher/explainer/
DPatchExplainer.java68 private final Compressor compressor; field in PatchExplainer
82 public PatchExplainer(Compressor compressor, DeltaGenerator deltaGenerator) { in PatchExplainer() argument
83 this.compressor = compressor; in PatchExplainer()
111 long compressedSize = getCompressedSize(newFile, entry.getValue(), compressor); in explainPatch()
193 getCompressedSize(deltaTemp.file, 0, deltaTemp.file.length(), compressor); in explainPatch()
215 private long getCompressedSize(File file, MinimalZipEntry entry, Compressor compressor) in getCompressedSize() argument
218 file, entry.getFileOffsetOfCompressedData(), entry.getCompressedSize(), compressor); in getCompressedSize()
272 private long getCompressedSize(File file, long offset, long length, Compressor compressor) in getCompressedSize() argument
277 compressor.compress(rafis, counter); in getCompressedSize()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DServerCallImpl.java64 private Compressor compressor; field in ServerCallImpl
92 if (compressor == null) { in sendHeaders()
93 compressor = Codec.Identity.NONE; in sendHeaders()
99 compressor.getMessageEncoding())) { in sendHeaders()
101 compressor = Codec.Identity.NONE; in sendHeaders()
104 compressor = Codec.Identity.NONE; in sendHeaders()
109 headers.put(MESSAGE_ENCODING_KEY, compressor.getMessageEncoding()); in sendHeaders()
111 stream.setCompressor(compressor); in sendHeaders()
161 compressor = compressorRegistry.lookupCompressor(compressorName); in setCompression()
162 checkArgument(compressor != null, "Unable to find compressor by name %s", compressorName); in setCompression()
DMessageFramer.java75 private Compressor compressor = Codec.Identity.NONE; field in MessageFramer
103 public MessageFramer setCompressor(Compressor compressor) { in setCompressor() argument
104 this.compressor = checkNotNull(compressor, "Can't pass an empty compressor"); in setCompressor()
132 boolean compressed = messageCompression && compressor != Codec.Identity.NONE; in writePayload()
184 OutputStream compressingStream = compressor.compress(bufferChain); in writeCompressed()
DClientCallImpl.java158 Compressor compressor, in prepareHeaders() argument
161 if (compressor != Codec.Identity.NONE) { in prepareHeaders()
162 headers.put(MESSAGE_ENCODING_KEY, compressor.getMessageEncoding()); in prepareHeaders()
205 Compressor compressor = null; in start() local
207 compressor = compressorRegistry.lookupCompressor(compressorName); in start()
208 if (compressor == null) { in start()
229 compressor = Codec.Identity.NONE; in start()
231 prepareHeaders(headers, decompressorRegistry, compressor, fullStreamDecompression); in start()
267 stream.setCompressor(compressor); in start()
/external/archive-patcher/sharedtest/src/main/java/com/google/archivepatcher/shared/
DUnitTestZipEntry.java105 DeflateCompressor compressor = new DeflateCompressor(); in getCompressedBinaryContent() local
106 compressor.setCompressionLevel(level); in getCompressedBinaryContent()
107 compressor.setNowrap(nowrap); in getCompressedBinaryContent()
109 compressor.compress(new ByteArrayInputStream(getUncompressedBinaryContent()), buffer); in getCompressedBinaryContent()
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DDefaultDeflateCompatibilityWindow.java324 DeflateCompressor compressor = new DeflateCompressor(); in getSystemValues() local
325 compressor.setCaching(true); // Makes this computation lighter weight. in getSystemValues()
330 compressor.setNowrap(nowrap); in getSystemValues()
332 compressor.setStrategy(strategy); in getSystemValues()
342 compressor.setCompressionLevel(level); in getSystemValues()
345 compressor.compress(new ByteArrayInputStream(CorpusHolder.CORPUS_INSTANCE), buffer); in getSystemValues()
358 compressor.release(); in getSystemValues()
/external/libtextclassifier/utils/
Dresources.cc149 std::unique_ptr<ZlibCompressor> compressor = ZlibCompressor::Instance(); in CompressResources() local
165 compressor->Compress(resource->content, &compressed_content); in CompressResources()
168 compressor->GetDictionary(&dictionary); in CompressResources()
180 std::unique_ptr<ZlibCompressor> compressor = in CompressResources() local
184 if (!compressor) { in CompressResources()
190 compressor->Compress(resource->content, &compressed_content); in CompressResources()
/external/squashfs-tools/RELEASE-READMEs/
DREADME-4.214 2. Support for compressor specific options
33 -X<compressor-option>
36 options are prefixed by -X, and are passed to the compressor for handling.
38 The compression specific options supported by each compressor can be
42 Compressors available and compressor specific options:
DREADME-4.322 2. GZIP compressor now supports compression options, allowing different
25 3. Rewritten LZO compressor with compression options, allowing different
28 4. New LZ4 compressor (note not yet in mainline kernel)
96 The compression specific options are, obviously, specific to the compressor
97 in question, and you should read the compressor documentation and check
100 In general the defaults used by Mksquashfs for each compressor are optimised
101 to give the best performance for each compressor, where what constitutes
102 best depends on the compressor. For gzip/xz best means highest compression
146 Display the usage text for the currently selected compressor.
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DDefaultDeflateCompressionDivinerTest.java64 DeflateCompressor compressor = new DeflateCompressor(); in deflate() local
65 compressor.setNowrap(parameters.nowrap); in deflate()
66 compressor.setStrategy(parameters.strategy); in deflate()
67 compressor.setCompressionLevel(parameters.level); in deflate()
69 compressor.compress(new ByteArrayInputStream(testData), buffer); in deflate()
/external/brotli/python/
Dbrotli.py48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
50 return compressor.process(string) + compressor.finish()
/external/archive-patcher/sample/src/main/java/com/google/archivepatcher/sample/
DSamplePatchGenerator.java33 Deflater compressor = new Deflater(9, true); // to compress the patch in main() local
36 new DeflaterOutputStream(patchOut, compressor, 32768)) { in main() argument
41 compressor.end(); in main()
/external/python/cpython2/Demo/zlib/
Dzlibdemo.py31 compressor = zlib.compressobj(9)
35 comptext = comptext+compressor.compress(s[i:i+chunk])
37 comptext = comptext + compressor.flush()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/snappy/
DSnappyCompressorOutputStream.java55 private final LZ77Compressor compressor; field in SnappyCompressorOutputStream
102 compressor = new LZ77Compressor(params, new LZ77Compressor.Callback() { in SnappyCompressorOutputStream()
128 compressor.compress(data, off, len); in write()
147 compressor.finish(); in finish()
/external/syzkaller/vendor/google.golang.org/grpc/
Drpc_util.go501 func compress(in []byte, cp Compressor, compressor encoding.Compressor) ([]byte, error) {
502 if compressor == nil && cp == nil {
509 if compressor != nil {
510 z, _ := compressor.Compress(cbuf)
577 … m interface{}, maxReceiveMessageSize int, inPayload *stats.InPayload, compressor encoding.Compres…
586 if st := checkRecvPayload(pf, s.RecvCompress(), compressor != nil || dc != nil); st != nil {
599 dcReader, err := compressor.Decompress(bytes.NewReader(d))
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DForwardingClientStreamTest.java80 Compressor compressor = mock(Compressor.class); in setCompressorTest() local
81 forward.setCompressor(compressor); in setCompressorTest()
82 verify(mock).setCompressor(same(compressor)); in setCompressorTest()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DPartialForwardingServerCall.java64 public void setCompression(String compressor) { in setCompression() argument
65 delegate().setCompression(compressor); in setCompression()

12345