Lines Matching defs:zstream
57 FFZStream zstream;
76 static int decode_idat(LSCRContext *s, z_stream *zstream, int length)
79 zstream->avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb));
80 zstream->next_in = s->gb.buffer;
88 while (zstream->avail_in > 0) {
89 ret = inflate(zstream, Z_PARTIAL_FLUSH);
94 if (zstream->avail_out == 0) {
98 zstream->avail_out = s->crow_size;
99 zstream->next_out = s->crow_buf;
101 if (ret == Z_STREAM_END && zstream->avail_in > 0) {
103 "%d undecompressed bytes left in buffer\n", zstream->avail_in);
135 z_stream *const zstream = &s->zstream.zstream;
139 if (inflateReset(zstream) != Z_OK)
183 zstream->avail_out = s->crow_size;
184 zstream->next_out = s->crow_buf;
189 ret = decode_idat(s, zstream, csize);
219 ff_inflate_end(&s->zstream);
238 return ff_inflate_init(&s->zstream, avctx);