Home
last modified time | relevance | path

Searched refs:avail_out (Results 1 – 25 of 127) sorted by relevance

123456

/external/zlib/src/examples/
Dfitblk.c88 } while (def->avail_out != 0 && flush == Z_NO_FLUSH); in partcompress()
104 inf->avail_out = RAWLEN; in recompress()
113 def->avail_in = RAWLEN - inf->avail_out; in recompress()
115 if (inf->avail_out != 0) in recompress()
119 } while (ret != Z_STREAM_END && def->avail_out != 0); in recompress()
156 def.avail_out = size + EXCESS; in main()
163 if (ret == Z_STREAM_END && def.avail_out >= EXCESS) { in main()
165 have = size + EXCESS - def.avail_out; in main()
195 def.avail_out = size + EXCESS; in main()
210 def.avail_out = size; in main()
[all …]
Dzran.c169 strm.avail_out = 0; in build_index()
186 if (strm.avail_out == 0) { in build_index()
187 strm.avail_out = WINSIZE; in build_index()
194 totout += strm.avail_out; in build_index()
197 totout -= strm.avail_out; in build_index()
217 totout, strm.avail_out, window); in build_index()
297 strm.avail_out = len; in extract()
302 strm.avail_out = WINSIZE; in extract()
307 strm.avail_out = (unsigned)offset; in extract()
333 } while (strm.avail_out != 0); in extract()
[all …]
Dzpipe.c65 strm.avail_out = CHUNK; in def()
69 have = CHUNK - strm.avail_out; in def()
74 } while (strm.avail_out == 0); in def()
123 strm.avail_out = CHUNK; in inf()
135 have = CHUNK - strm.avail_out; in inf()
140 } while (strm.avail_out == 0); in inf()
Dgzappend.c306 strm->avail_out = DSIZE - have; in gzscan()
317 crc = crc32(crc, window + have, DSIZE - have - strm->avail_out); in gzscan()
318 if (strm->avail_out) in gzscan()
319 have = DSIZE - strm->avail_out; in gzscan()
424 strm->avail_out = CHUNK; in gztack()
427 left = CHUNK - strm->avail_out; in gztack()
429 len = write(gd, out + CHUNK - strm->avail_out - left, left); in gztack()
433 } while (strm->avail_out == 0 && ret != Z_STREAM_END); in gztack()
/external/zlib/src/contrib/delphi/
DZLib.pas29 avail_out: Integer; // remaining free space at next_out
301 strm.avail_out := OutBytes;
310 strm.avail_out := 256;
344 strm.avail_out := OutBytes;
353 strm.avail_out := BufInc;
377 strm.avail_out := BufSize;
414 FZRec.avail_out := sizeof(FBuffer);
425 and (FZRec.avail_out = 0) do
429 FZRec.avail_out := sizeof(FBuffer);
431 if FZRec.avail_out < sizeof(FBuffer) then
[all …]
/external/bsdiff/
Dbrotli_compressor.cc51 size_t avail_out = kBufferSize; in Write() local
55 &next_in, &avail_out, &next_out, nullptr)) { in Write()
61 uint64_t output_bytes = comp_buffer_.buffer_size() - avail_out; in Write()
76 size_t avail_out = kBufferSize; in Finish() local
80 &avail_out, &next_out, nullptr)) { in Finish()
85 uint64_t output_bytes = comp_buffer_.buffer_size() - avail_out; in Finish()
Dbz2_compressor.cc52 bz_strm_.avail_out = comp_buffer_.buffer_size(); in Write()
59 uint64_t output_bytes = comp_buffer_.buffer_size() - bz_strm_.avail_out; in Write()
76 bz_strm_.avail_out = comp_buffer_.buffer_size(); in Finish()
79 uint64_t output_bytes = comp_buffer_.buffer_size() - bz_strm_.avail_out; in Finish()
/external/pdfium/third_party/libtiff/
Dtif_zip.c166 assert(sizeof(sp->stream.avail_out)==4); /* if this assert gets raised, in ZIPDecode()
170 sp->stream.avail_out = (uInt) occ; in ZIPDecode()
171 if ((tmsize_t)sp->stream.avail_out != occ) in ZIPDecode()
193 } while (sp->stream.avail_out > 0); in ZIPDecode()
194 if (sp->stream.avail_out != 0) { in ZIPDecode()
197 (unsigned long) tif->tif_row, (TIFF_UINT64_T) sp->stream.avail_out); in ZIPDecode()
243 assert(sizeof(sp->stream.avail_out)==4); /* if this assert gets raised, in ZIPPreEncode()
247 sp->stream.avail_out = (uInt)tif->tif_rawdatasize; in ZIPPreEncode()
248 if ((tmsize_t)sp->stream.avail_out != tif->tif_rawdatasize) in ZIPPreEncode()
287 if (sp->stream.avail_out == 0) { in ZIPEncode()
[all …]
/external/freetype/src/gzip/
Dinfutil.c37 if (n > z->avail_out) n = z->avail_out; in inflate_flush()
41 z->avail_out -= n; in inflate_flush()
63 if (n > z->avail_out) n = z->avail_out; in inflate_flush()
67 z->avail_out -= n; in inflate_flush()
/external/grpc-grpc/src/core/lib/compression/
Dstream_compression_gzip.cc53 ctx->zs.avail_out = static_cast<uInt>(slice_size); in gzip_flate()
55 while (ctx->zs.avail_out > 0 && in->length > 0 && !eoc) { in gzip_flate()
76 if (flush != 0 && ctx->zs.avail_out > 0 && !eoc) { in gzip_flate()
83 if (ctx->zs.avail_out > 0) { in gzip_flate()
102 GPR_ASSERT(ctx->zs.avail_out == 0); in gzip_flate()
116 if (ctx->zs.avail_out == 0) { in gzip_flate()
118 } else if (ctx->zs.avail_out < slice_size) { in gzip_flate()
120 GRPC_SLICE_SET_LENGTH(slice_out, len - ctx->zs.avail_out); in gzip_flate()
125 max_output_size -= (slice_size - ctx->zs.avail_out); in gzip_flate()
Dmessage_compress.cc44 zs->avail_out = static_cast<uInt> GRPC_SLICE_LENGTH(outbuf); in zlib_body()
53 if (zs->avail_out == 0) { in zlib_body()
57 zs->avail_out = static_cast<uInt> GRPC_SLICE_LENGTH(outbuf); in zlib_body()
65 } while (zs->avail_out == 0); in zlib_body()
73 outbuf.data.refcounted.length -= zs->avail_out; in zlib_body()
/external/u-boot/lib/
Dgzip.c89 s.avail_out = left_len; in zzip()
97 dst += (left_len - s.avail_out); in zzip()
98 *lenp -= (left_len - s.avail_out); in zzip()
99 } else if (left_len - s.avail_out > 0) { in zzip()
101 left_len - s.avail_out); in zzip()
105 } while (s.avail_out == 0 && (*lenp > 0)); in zzip()
/external/tensorflow/tensorflow/core/lib/io/
Dzlib_outputbuffer.cc67 z_stream_->avail_out = output_buffer_capacity_; in Init()
120 if (z_stream_->avail_out == 0 || in DeflateBuffered()
121 (IsSyncOrFullFlush(flush_mode) && z_stream_->avail_out < 6)) { in DeflateBuffered()
125 } while (z_stream_->avail_out == 0); in DeflateBuffered()
133 uint32 bytes_to_write = output_buffer_capacity_ - z_stream_->avail_out; in FlushOutputBufferToFile()
139 z_stream_->avail_out = output_buffer_capacity_; in FlushOutputBufferToFile()
178 if (z_stream_->avail_out == 0) { in Append()
184 } while (z_stream_->avail_out == 0); in Append()
/external/protobuf/src/google/protobuf/io/
Dgzip_stream.cc69 zcontext_.avail_out = output_buffer_length_; in GzipInputStream()
89 if ((zerror_ == Z_OK) && (zcontext_.avail_out == 0)) { in Inflate()
98 zcontext_.avail_out = 0; in Inflate()
111 zcontext_.avail_out = output_buffer_length_; in Inflate()
222 zcontext_.avail_out = 0; in Init()
251 if ((sub_data_ == NULL) || (zcontext_.avail_out == 0)) { in Deflate()
260 zcontext_.avail_out = sub_data_size_; in Deflate()
263 } while (error == Z_OK && zcontext_.avail_out == 0); in Deflate()
266 sub_stream_->BackUp(zcontext_.avail_out); in Deflate()
310 zcontext_.avail_out != 0); in Flush()
/external/zlib/src/
Duncompr.c59 stream.avail_out = 0;
62 if (stream.avail_out == 0) {
63 stream.avail_out = left > (uLong)max ? max : (uInt)left;
64 left -= stream.avail_out;
82 err == Z_BUF_ERROR && left + stream.avail_out ? Z_DATA_ERROR :
Dcompress.c45 stream.avail_out = 0;
50 if (stream.avail_out == 0) {
51 stream.avail_out = left > (uLong)max ? max : (uInt)left;
52 left -= stream.avail_out;
/external/python/cpython2/Modules/zlib/
Duncompr.c59 stream.avail_out = 0;
62 if (stream.avail_out == 0) {
63 stream.avail_out = left > (uLong)max ? max : (uInt)left;
64 left -= stream.avail_out;
82 err == Z_BUF_ERROR && left + stream.avail_out ? Z_DATA_ERROR :
Dcompress.c45 stream.avail_out = 0;
50 if (stream.avail_out == 0) {
51 stream.avail_out = left > (uLong)max ? max : (uInt)left;
52 left -= stream.avail_out;
Dminigzip.c251 strm->avail_out = BUFLEN;
253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
254 } while (strm->avail_out == 0);
276 strm->avail_out = len;
291 } while (strm->avail_out);
292 return len - strm->avail_out;
311 strm->avail_out = BUFLEN;
313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
314 } while (strm->avail_out == 0);
/external/skia/tests/
DPDFDeflateWStreamTest.cpp46 flateData.avail_out = kBufferSize; in stream_inflate()
66 if (flateData.avail_out < kBufferSize) { in stream_inflate()
67 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
72 flateData.avail_out = kBufferSize; in stream_inflate()
89 if (flateData.avail_out < kBufferSize) { in stream_inflate()
90 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
95 flateData.avail_out = kBufferSize; in stream_inflate()
/external/skqp/tests/
DPDFDeflateWStreamTest.cpp46 flateData.avail_out = kBufferSize; in stream_inflate()
66 if (flateData.avail_out < kBufferSize) { in stream_inflate()
67 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
72 flateData.avail_out = kBufferSize; in stream_inflate()
89 if (flateData.avail_out < kBufferSize) { in stream_inflate()
90 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
95 flateData.avail_out = kBufferSize; in stream_inflate()
/external/u-boot/lib/bzip2/
Dbzlib.c392 if (s->strm->avail_out == 0) break; in copy_output_until_stop()
400 s->strm->avail_out--; in copy_output_until_stop()
593 if (s->strm->avail_out == 0) return; in unRLE_obuf_to_output_FAST()
599 s->strm->avail_out--; in unRLE_obuf_to_output_FAST()
645 unsigned int cs_avail_out = s->strm->avail_out; in unRLE_obuf_to_output_FAST()
718 s->strm->avail_out = cs_avail_out; in unRLE_obuf_to_output_FAST()
750 if (s->strm->avail_out == 0) return; in unRLE_obuf_to_output_SMALL()
756 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
796 if (s->strm->avail_out == 0) return; in unRLE_obuf_to_output_SMALL()
802 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
[all …]
/external/bzip2/
Dbzlib.c341 if (s->strm->avail_out == 0) break; in copy_output_until_stop()
349 s->strm->avail_out--; in copy_output_until_stop()
545 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_FAST()
551 s->strm->avail_out--; in unRLE_obuf_to_output_FAST()
600 unsigned int cs_avail_out = s->strm->avail_out; in unRLE_obuf_to_output_FAST()
678 s->strm->avail_out = cs_avail_out; in unRLE_obuf_to_output_FAST()
715 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_SMALL()
721 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
764 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_SMALL()
770 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
[all …]
/external/zlib/src/contrib/pascal/
Dexample.pas204 c_stream.avail_out := 1; { force small buffers }
213 c_stream.avail_out := 1;
250 d_stream.avail_out := 1; (* force small buffers *)
285 c_stream.avail_out := Integer(comprLen);
344 d_stream.avail_out := Integer(uncomprLen);
385 c_stream.avail_out := Integer(comprLen);
425 d_stream.avail_out := Integer(uncomprLen);
466 c_stream.avail_out := Integer(comprLen);
502 d_stream.avail_out := Integer(uncomprLen);
/external/zlib/src/test/
Dminigzip.c251 strm->avail_out = BUFLEN;
253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
254 } while (strm->avail_out == 0);
276 strm->avail_out = len;
291 } while (strm->avail_out);
292 return len - strm->avail_out;
311 strm->avail_out = BUFLEN;
313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
314 } while (strm->avail_out == 0);

123456