Home
last modified time | relevance | path

Searched refs:compressor (Results 1 – 25 of 119) 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 \
DAndroid.bp68 "compressor.c",
96 "compressor.c",
/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/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()
DForwardingClientStream.java51 public void setCompressor(Compressor compressor) { in setCompressor() argument
52 delegate().setCompressor(compressor); in setCompressor()
DAbstractStream.java76 public final void setCompressor(Compressor compressor) { in setCompressor() argument
77 framer().setCompressor(checkNotNull(compressor, "compressor")); in setCompressor()
/external/brotli/python/
Dbrotli.py48 compressor = Compressor(mode=mode, quality=quality, lgwin=lgwin,
50 return compressor.process(string) + compressor.finish()
/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/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/zstd/zlibWrapper/examples/
Dzwrapbench.c154 const void* dictBuffer, size_t dictBufferSize, BMK_compressor compressor) in BMK_benchMem() argument
235 if (compressor == BMK_ZSTD) { in BMK_benchMem()
261 } else if (compressor == BMK_ZSTD_STREAM) { in BMK_benchMem()
290 …} else if (compressor == BMK_ZWRAP_ZLIB_REUSE || compressor == BMK_ZWRAP_ZSTD_REUSE || compressor in BMK_benchMem()
294 …if (compressor == BMK_ZLIB_REUSE || compressor == BMK_ZWRAP_ZLIB_REUSE) ZWRAP_useZSTDcompression(0… in BMK_benchMem()
334 … if (compressor == BMK_ZLIB || compressor == BMK_ZWRAP_ZLIB) ZWRAP_useZSTDcompression(0); in BMK_benchMem()
389 if (compressor == BMK_ZSTD) { in BMK_benchMem()
410 } else if (compressor == BMK_ZSTD_STREAM) { in BMK_benchMem()
436 …} else if (compressor == BMK_ZWRAP_ZLIB_REUSE || compressor == BMK_ZWRAP_ZSTD_REUSE || compressor in BMK_benchMem()
439 if (compressor == BMK_ZLIB_REUSE) ZWRAP_setDecompressionType(ZWRAP_FORCE_ZLIB); in BMK_benchMem()
[all …]
/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/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()
/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/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorOutputStream.java78 private final LZ77Compressor compressor; field in BlockLZ4CompressorOutputStream
115 compressor = new LZ77Compressor(params, in BlockLZ4CompressorOutputStream()
142 compressor.compress(data, off, len); in write()
161 compressor.finish(); in finish()
178 compressor.prefill(b); in prefill()
/external/rust/crates/libz-sys/src/zlib-ng/doc/
Drfc1950.txt138 the specifications presented here; a compliant compressor must
290 bytes which are initially fed to the compressor without
294 which dictionary has been used by the compressor.
301 0 - compressor used fastest algorithm
302 1 - compressor used fast algorithm
303 2 - compressor used default algorithm
304 3 - compressor used maximum compression, slowest algorithm
345 A compliant compressor must produce streams with correct CMF, FLG
348 the compressor may use only preset dictionaries that are specified
350 preset dictionary feature, the compressor must not set the FDICT
[all …]
Drfc1951.txt122 compressor.
159 the specifications presented here; a compliant compressor must
763 A compressor may limit further the ranges of values specified in
766 32K. Similarly, a compressor may limit the size of blocks so that
780 recommended that the implementor of a compressor follow the general
791 specification per se, and a compressor need not follow it in order to
794 The compressor terminates a block when it determines that starting a
796 fills up the compressor's block buffer.
798 The compressor uses a chained hash table to find duplicated strings,
802 compressor examines the hash chain for XYZ. If the chain is empty,
[all …]
/external/rust/crates/libz-sys/src/zlib/doc/
Drfc1950.txt138 the specifications presented here; a compliant compressor must
290 bytes which are initially fed to the compressor without
294 which dictionary has been used by the compressor.
301 0 - compressor used fastest algorithm
302 1 - compressor used fast algorithm
303 2 - compressor used default algorithm
304 3 - compressor used maximum compression, slowest algorithm
345 A compliant compressor must produce streams with correct CMF, FLG
348 the compressor may use only preset dictionaries that are specified
350 preset dictionary feature, the compressor must not set the FDICT
[all …]
Drfc1951.txt122 compressor.
159 the specifications presented here; a compliant compressor must
763 A compressor may limit further the ranges of values specified in
766 32K. Similarly, a compressor may limit the size of blocks so that
780 recommended that the implementor of a compressor follow the general
791 specification per se, and a compressor need not follow it in order to
794 The compressor terminates a block when it determines that starting a
796 fills up the compressor's block buffer.
798 The compressor uses a chained hash table to find duplicated strings,
802 compressor examines the hash chain for XYZ. If the chain is empty,
[all …]

12345