Lines Matching refs:zstream
747 z_stream zstream; in compressFpToFp() local
765 memset(&zstream, 0, sizeof(zstream)); in compressFpToFp()
766 zstream.zalloc = Z_NULL; in compressFpToFp()
767 zstream.zfree = Z_NULL; in compressFpToFp()
768 zstream.opaque = Z_NULL; in compressFpToFp()
769 zstream.next_in = NULL; in compressFpToFp()
770 zstream.avail_in = 0; in compressFpToFp()
771 zstream.next_out = outBuf; in compressFpToFp()
772 zstream.avail_out = kBufSize; in compressFpToFp()
773 zstream.data_type = Z_UNKNOWN; in compressFpToFp()
775 zerr = deflateInit2(&zstream, Z_BEST_COMPRESSION, in compressFpToFp()
798 if (zstream.avail_in == 0 && !atEof) { in compressFpToFp()
820 zstream.next_in = inBuf; in compressFpToFp()
821 zstream.avail_in = getSize; in compressFpToFp()
829 zerr = deflate(&zstream, flush); in compressFpToFp()
837 if (zstream.avail_out == 0 || in compressFpToFp()
838 (zerr == Z_STREAM_END && zstream.avail_out != (uInt) kBufSize)) in compressFpToFp()
840 ALOGV("+++ writing %d bytes\n", (int) (zstream.next_out - outBuf)); in compressFpToFp()
841 if (fwrite(outBuf, 1, zstream.next_out - outBuf, dstFp) != in compressFpToFp()
842 (size_t)(zstream.next_out - outBuf)) in compressFpToFp()
845 (int) (zstream.next_out - outBuf)); in compressFpToFp()
849 zstream.next_out = outBuf; in compressFpToFp()
850 zstream.avail_out = kBufSize; in compressFpToFp()
859 deflateEnd(&zstream); /* free up any allocated structures */ in compressFpToFp()