Lines Matching refs:c_stream

167     z_stream c_stream; /* compression stream */  in test_deflate()  local
171 c_stream.zalloc = zalloc; in test_deflate()
172 c_stream.zfree = zfree; in test_deflate()
173 c_stream.opaque = (voidpf)0; in test_deflate()
175 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in test_deflate()
178 c_stream.next_in = (z_const unsigned char *)hello; in test_deflate()
179 c_stream.next_out = compr; in test_deflate()
181 while (c_stream.total_in != len && c_stream.total_out < comprLen) { in test_deflate()
182 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ in test_deflate()
183 err = deflate(&c_stream, Z_NO_FLUSH); in test_deflate()
188 c_stream.avail_out = 1; in test_deflate()
189 err = deflate(&c_stream, Z_FINISH); in test_deflate()
194 err = deflateEnd(&c_stream); in test_deflate()
242 z_stream c_stream; /* compression stream */ in test_large_deflate() local
245 c_stream.zalloc = zalloc; in test_large_deflate()
246 c_stream.zfree = zfree; in test_large_deflate()
247 c_stream.opaque = (voidpf)0; in test_large_deflate()
249 err = deflateInit(&c_stream, Z_BEST_SPEED); in test_large_deflate()
252 c_stream.next_out = compr; in test_large_deflate()
253 c_stream.avail_out = (uInt)comprLen; in test_large_deflate()
258 c_stream.next_in = uncompr; in test_large_deflate()
259 c_stream.avail_in = (uInt)uncomprLen; in test_large_deflate()
260 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
262 if (c_stream.avail_in != 0) { in test_large_deflate()
268 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY); in test_large_deflate()
269 c_stream.next_in = compr; in test_large_deflate()
270 c_stream.avail_in = (uInt)uncomprLen/2; in test_large_deflate()
271 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
275 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED); in test_large_deflate()
276 c_stream.next_in = uncompr; in test_large_deflate()
277 c_stream.avail_in = (uInt)uncomprLen; in test_large_deflate()
278 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
281 err = deflate(&c_stream, Z_FINISH); in test_large_deflate()
286 err = deflateEnd(&c_stream); in test_large_deflate()
333 z_stream c_stream; /* compression stream */ in test_flush() local
337 c_stream.zalloc = zalloc; in test_flush()
338 c_stream.zfree = zfree; in test_flush()
339 c_stream.opaque = (voidpf)0; in test_flush()
341 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in test_flush()
344 c_stream.next_in = (z_const unsigned char *)hello; in test_flush()
345 c_stream.next_out = compr; in test_flush()
346 c_stream.avail_in = 3; in test_flush()
347 c_stream.avail_out = (uInt)*comprLen; in test_flush()
348 err = deflate(&c_stream, Z_FULL_FLUSH); in test_flush()
352 c_stream.avail_in = len - 3; in test_flush()
354 err = deflate(&c_stream, Z_FINISH); in test_flush()
358 err = deflateEnd(&c_stream); in test_flush()
361 *comprLen = c_stream.total_out; in test_flush()
409 z_stream c_stream; /* compression stream */ in test_dict_deflate() local
412 c_stream.zalloc = zalloc; in test_dict_deflate()
413 c_stream.zfree = zfree; in test_dict_deflate()
414 c_stream.opaque = (voidpf)0; in test_dict_deflate()
416 err = deflateInit(&c_stream, Z_BEST_COMPRESSION); in test_dict_deflate()
419 err = deflateSetDictionary(&c_stream, in test_dict_deflate()
423 dictId = c_stream.adler; in test_dict_deflate()
424 c_stream.next_out = compr; in test_dict_deflate()
425 c_stream.avail_out = (uInt)comprLen; in test_dict_deflate()
427 c_stream.next_in = (z_const unsigned char *)hello; in test_dict_deflate()
428 c_stream.avail_in = (uInt)strlen(hello)+1; in test_dict_deflate()
430 err = deflate(&c_stream, Z_FINISH); in test_dict_deflate()
435 err = deflateEnd(&c_stream); in test_dict_deflate()