Home
last modified time | relevance | path

Searched refs:strm (Results 1 – 25 of 97) sorted by relevance

1234

/external/zlib/src/test/
Dinfcover.c158 local void mem_setup(z_stream *strm) in mem_setup() argument
170 strm->opaque = zone; in mem_setup()
171 strm->zalloc = mem_alloc; in mem_setup()
172 strm->zfree = mem_free; in mem_setup()
176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument
178 struct mem_zone *zone = strm->opaque; in mem_limit()
184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument
186 struct mem_zone *zone = strm->opaque; in mem_used()
192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument
194 struct mem_zone *zone = strm->opaque; in mem_high()
[all …]
Dminigzip.c175 z_stream strm; member
208 gz->strm.zalloc = myalloc;
209 gz->strm.zfree = myfree;
210 gz->strm.opaque = Z_NULL;
212 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0);
214 gz->strm.next_in = 0;
215 gz->strm.avail_in = Z_NULL;
216 ret = inflateInit2(&(gz->strm), 15 + 16);
225 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm));
241 z_stream *strm; local
[all …]
/external/libmicrohttpd/src/microspdy/
Dcompression.c215 SPDYF_zlib_deflate_init(z_stream *strm) in SPDYF_zlib_deflate_init() argument
219 strm->zalloc = Z_NULL; in SPDYF_zlib_deflate_init()
220 strm->zfree = Z_NULL; in SPDYF_zlib_deflate_init()
221 strm->opaque = Z_NULL; in SPDYF_zlib_deflate_init()
224 ret = deflateInit(strm, Z_DEFAULT_COMPRESSION); in SPDYF_zlib_deflate_init()
230 ret = deflateSetDictionary(strm, in SPDYF_zlib_deflate_init()
236 deflateEnd(strm); in SPDYF_zlib_deflate_init()
244 SPDYF_zlib_deflate_end(z_stream *strm) in SPDYF_zlib_deflate_end() argument
246 deflateEnd(strm); in SPDYF_zlib_deflate_end()
250 SPDYF_zlib_deflate(z_stream *strm, in SPDYF_zlib_deflate() argument
[all …]
/external/zlib/src/examples/
Dzpipe.c40 z_stream strm; in def() local
45 strm.zalloc = Z_NULL; in def()
46 strm.zfree = Z_NULL; in def()
47 strm.opaque = Z_NULL; in def()
48 ret = deflateInit(&strm, level); in def()
54 strm.avail_in = fread(in, 1, CHUNK, source); in def()
56 (void)deflateEnd(&strm); in def()
60 strm.next_in = in; in def()
65 strm.avail_out = CHUNK; in def()
66 strm.next_out = out; in def()
[all …]
Dzran.c150 z_stream strm; in build_index() local
155 strm.zalloc = Z_NULL; in build_index()
156 strm.zfree = Z_NULL; in build_index()
157 strm.opaque = Z_NULL; in build_index()
158 strm.avail_in = 0; in build_index()
159 strm.next_in = Z_NULL; in build_index()
160 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in build_index()
169 strm.avail_out = 0; in build_index()
172 strm.avail_in = fread(input, 1, CHUNK, in); in build_index()
177 if (strm.avail_in == 0) { in build_index()
[all …]
Dgzappend.c259 local int gzscan(char *name, z_stream *strm, int level) in gzscan() argument
283 strm->zalloc = Z_NULL; in gzscan()
284 strm->zfree = Z_NULL; in gzscan()
285 strm->opaque = Z_NULL; in gzscan()
286 ret = inflateInit2(strm, -15); in gzscan()
293 strm->avail_in = gz.left; in gzscan()
294 strm->next_in = gz.next; in gzscan()
299 if (strm->avail_in == 0) { in gzscan()
301 strm->avail_in = gz.left; in gzscan()
302 strm->next_in = gz.next; in gzscan()
[all …]
Dgzjoin.c254 local void zpull(z_streamp strm, bin *in) in zpull() argument
260 strm->avail_in = in->left; in zpull()
261 strm->next_in = in->next; in zpull()
289 z_stream strm; /* zlib inflate stream */ in gzcopy() local
300 strm.zalloc = Z_NULL; in gzcopy()
301 strm.zfree = Z_NULL; in gzcopy()
302 strm.opaque = Z_NULL; in gzcopy()
303 strm.avail_in = 0; in gzcopy()
304 strm.next_in = Z_NULL; in gzcopy()
305 ret = inflateInit2(&strm, -15); in gzcopy()
[all …]
/external/bzip2/
Dbzlib.c149 ( bz_stream* strm, in BZ_API()
159 if (strm == NULL || in BZ_API()
165 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API()
166 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API()
170 s->strm = strm; in BZ_API()
203 strm->state = s; in BZ_API()
204 strm->total_in_lo32 = 0; in BZ_API()
205 strm->total_in_hi32 = 0; in BZ_API()
206 strm->total_out_lo32 = 0; in BZ_API()
207 strm->total_out_hi32 = 0; in BZ_API()
[all …]
/external/libxml2/
Dxzlib.c75 lzma_stream strm; /* stream structure in-place (not a pointer) */ member
132 state->strm.avail_in = 0; /* no input data yet */ in xz_reset()
257 lzma_stream *strm = &(state->strm); in xz_avail() local
263 unsigned tmp = strm->avail_in; in xz_avail()
266 strm->avail_in = tmp; in xz_avail()
269 strm->avail_in = tmp; in xz_avail()
270 strm->next_in = state->in; in xz_avail()
280 state->strm.avail_in = state->zstrm.avail_in; in xz_avail_zstrm()
281 state->strm.next_in = state->zstrm.next_in; in xz_avail_zstrm()
283 state->zstrm.avail_in = (uInt) state->strm.avail_in; in xz_avail_zstrm()
[all …]
/external/zlib/src/
Dinflate.c96 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
104 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument
105 z_streamp strm; in inflateResetKeep()
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
112 strm->msg = Z_NULL;
114 strm->adler = state->wrap & 1;
129 int ZEXPORT inflateReset(strm) in inflateReset() argument
130 z_streamp strm; in inflateReset()
[all …]
Dgzwrite.c19 z_streamp strm = &(state->strm); local
39 strm->zalloc = Z_NULL;
40 strm->zfree = Z_NULL;
41 strm->opaque = Z_NULL;
42 ret = deflateInit2(strm, state->level, Z_DEFLATED,
57 strm->avail_out = state->size;
58 strm->next_out = state->out;
59 state->x.next = strm->next_out;
76 z_streamp strm = &(state->strm); local
84 got = write(state->fd, strm->next_in, strm->avail_in);
[all …]
Ddeflate.c86 local void flush_pending OF((z_streamp strm));
87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
201 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument
202 z_streamp strm; in deflateInit_()
207 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
213 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument
215 z_streamp strm; in deflateInit2_()
237 if (strm == Z_NULL) return Z_STREAM_ERROR;
239 strm->msg = Z_NULL;
240 if (strm->zalloc == (alloc_func)0) {
[all …]
Dgzread.c55 z_streamp strm = &(state->strm); local
60 if (strm->avail_in) { /* copy what's there to the start */
62 unsigned const char *q = strm->next_in;
63 unsigned n = strm->avail_in;
68 if (gz_load(state, state->in + strm->avail_in,
69 state->size - strm->avail_in, &got) == -1)
71 strm->avail_in += got;
72 strm->next_in = state->in;
89 z_streamp strm = &(state->strm); local
107 state->strm.zalloc = Z_NULL;
[all …]
Dinfback.c28 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) in inflateBackInit_() argument
29 z_streamp strm; in inflateBackInit_()
40 if (strm == Z_NULL || window == Z_NULL ||
43 strm->msg = Z_NULL; /* in case we return an error */
44 if (strm->zalloc == (alloc_func)0) {
48 strm->zalloc = zcalloc;
49 strm->opaque = (voidpf)0;
52 if (strm->zfree == (free_func)0)
56 strm->zfree = zcfree;
58 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
[all …]
/external/syslinux/com32/lib/zlib/
Dinflate.c96 local int updatewindow OF((z_streamp strm, unsigned out));
103 int ZEXPORT inflateReset(strm) in inflateReset() argument
104 z_streamp strm; in inflateReset()
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
111 strm->msg = Z_NULL;
112 strm->adler = 1; /* to support ill-conceived Java test suite */
130 int ZEXPORT inflateReset2(strm, windowBits) in inflateReset2() argument
131 z_streamp strm; in inflateReset2()
[all …]
Ddeflate.c86 local void flush_pending OF((z_streamp strm));
87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
198 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument
199 z_streamp strm; in deflateInit_()
204 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
210 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument
212 z_streamp strm; in deflateInit2_()
234 if (strm == Z_NULL) return Z_STREAM_ERROR;
236 strm->msg = Z_NULL;
237 if (strm->zalloc == (alloc_func)0) {
[all …]
Dinfback.c28 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) in inflateBackInit_() argument
29 z_streamp strm; in inflateBackInit_()
40 if (strm == Z_NULL || window == Z_NULL ||
43 strm->msg = Z_NULL; /* in case we return an error */
44 if (strm->zalloc == (alloc_func)0) {
45 strm->zalloc = zcalloc;
46 strm->opaque = (voidpf)0;
48 if (strm->zfree == (free_func)0) strm->zfree = zcfree;
49 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
53 strm->state = (struct internal_state FAR *)state;
[all …]
/external/squashfs-tools/squashfs-tools/
Dlzma_xz_wrapper.c43 lzma_stream strm = LZMA_STREAM_INIT; in lzma_compress() local
49 res = lzma_alone_encoder(&strm, &opt); in lzma_compress()
51 lzma_end(&strm); in lzma_compress()
55 strm.next_out = dest; in lzma_compress()
56 strm.avail_out = block_size; in lzma_compress()
57 strm.next_in = src; in lzma_compress()
58 strm.avail_in = size; in lzma_compress()
60 res = lzma_code(&strm, LZMA_FINISH); in lzma_compress()
61 lzma_end(&strm); in lzma_compress()
80 return (int) strm.total_out; in lzma_compress()
[all …]
/external/pdfium/third_party/zlib_v128/
Dgzwrite.c19 z_streamp strm = &(state->strm); in gz_init() local
39 strm->zalloc = Z_NULL; in gz_init()
40 strm->zfree = Z_NULL; in gz_init()
41 strm->opaque = Z_NULL; in gz_init()
42 ret = deflateInit2(strm, state->level, Z_DEFLATED, in gz_init()
57 strm->avail_out = state->size; in gz_init()
58 strm->next_out = state->out; in gz_init()
59 state->x.next = strm->next_out; in gz_init()
76 z_streamp strm = &(state->strm); in gz_comp() local
84 got = write(state->fd, strm->next_in, strm->avail_in); in gz_comp()
[all …]
Dinflate.c96 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
105 z_streamp strm) in inflateResetKeep() argument
109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateResetKeep()
110 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep()
111 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep()
112 strm->msg = Z_NULL; in inflateResetKeep()
114 strm->adler = state->wrap & 1; in inflateResetKeep()
130 z_streamp strm) in inflateReset() argument
134 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset()
135 state = (struct inflate_state FAR *)strm->state; in inflateReset()
[all …]
Ddeflate.c86 local void flush_pending OF((z_streamp strm));
87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
202 z_streamp strm, in deflateInit_() argument
207 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, in deflateInit_()
214 z_streamp strm, in deflateInit2_() argument
236 if (strm == Z_NULL) return Z_STREAM_ERROR; in deflateInit2_()
238 strm->msg = Z_NULL; in deflateInit2_()
239 if (strm->zalloc == (alloc_func)0) { in deflateInit2_()
243 strm->zalloc = zcalloc; in deflateInit2_()
244 strm->opaque = (voidpf)0; in deflateInit2_()
[all …]
Dgzread.c55 z_streamp strm = &(state->strm); in gz_avail() local
60 if (strm->avail_in) { /* copy what's there to the start */ in gz_avail()
62 unsigned const char *q = strm->next_in; in gz_avail()
63 unsigned n = strm->avail_in; in gz_avail()
68 if (gz_load(state, state->in + strm->avail_in, in gz_avail()
69 state->size - strm->avail_in, &got) == -1) in gz_avail()
71 strm->avail_in += got; in gz_avail()
72 strm->next_in = state->in; in gz_avail()
89 z_streamp strm = &(state->strm); in gz_look() local
107 state->strm.zalloc = Z_NULL; in gz_look()
[all …]
Dinfback.c29 z_streamp strm, in inflateBackInit_() argument
40 if (strm == Z_NULL || window == Z_NULL || in inflateBackInit_()
43 strm->msg = Z_NULL; /* in case we return an error */ in inflateBackInit_()
44 if (strm->zalloc == (alloc_func)0) { in inflateBackInit_()
48 strm->zalloc = zcalloc; in inflateBackInit_()
49 strm->opaque = (voidpf)0; in inflateBackInit_()
52 if (strm->zfree == (free_func)0) in inflateBackInit_()
56 strm->zfree = zcfree; in inflateBackInit_()
58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, in inflateBackInit_()
62 strm->state = (struct internal_state FAR *)state; in inflateBackInit_()
[all …]
/external/zlib/src/contrib/pascal/
Dzlibpas.pas106 function deflateInit(var strm: z_stream; level: Integer): Integer; in deflateInit()
107 function deflate(var strm: z_stream; flush: Integer): Integer; in deflate()
108 function deflateEnd(var strm: z_stream): Integer; in deflateEnd()
109 function inflateInit(var strm: z_stream): Integer; in inflateInit()
110 function inflate(var strm: z_stream; flush: Integer): Integer; in inflate()
111 function inflateEnd(var strm: z_stream): Integer; in inflateEnd()
114 function deflateInit2(var strm: z_stream; level, method, windowBits, in deflateInit2()
116 function deflateSetDictionary(var strm: z_stream; const dictionary: PChar; in deflateSetDictionary()
119 function deflateReset(var strm: z_stream): Integer; in deflateReset()
120 function deflateParams(var strm: z_stream; level, strategy: Integer): Integer; in deflateParams()
[all …]
/external/zlib/src/contrib/delphi/
DZLib.pas241 function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar; in deflateInit_()
243 function deflate(var strm: TZStreamRec; flush: Integer): Integer; external; in deflate()
244 function deflateEnd(var strm: TZStreamRec): Integer; external; in deflateEnd()
247 function inflateInit_(var strm: TZStreamRec; version: PChar; in inflateInit_()
249 function inflate(var strm: TZStreamRec; flush: Integer): Integer; external; in inflate()
250 function inflateEnd(var strm: TZStreamRec): Integer; external; in inflateEnd()
251 function inflateReset(var strm: TZStreamRec): Integer; external; in inflateReset()
289 strm: TZStreamRec;
292 FillChar(strm, sizeof(strm), 0);
293 strm.zalloc := zlibAllocMem;
[all …]

1234