Lines Matching refs:zstream
750 z_stream zstream; in compressFpToFp() local
768 memset(&zstream, 0, sizeof(zstream)); in compressFpToFp()
769 zstream.zalloc = Z_NULL; in compressFpToFp()
770 zstream.zfree = Z_NULL; in compressFpToFp()
771 zstream.opaque = Z_NULL; in compressFpToFp()
772 zstream.next_in = NULL; in compressFpToFp()
773 zstream.avail_in = 0; in compressFpToFp()
774 zstream.next_out = outBuf; in compressFpToFp()
775 zstream.avail_out = kBufSize; in compressFpToFp()
776 zstream.data_type = Z_UNKNOWN; in compressFpToFp()
778 zerr = deflateInit2(&zstream, Z_BEST_COMPRESSION, in compressFpToFp()
801 if (zstream.avail_in == 0 && !atEof) { in compressFpToFp()
823 zstream.next_in = inBuf; in compressFpToFp()
824 zstream.avail_in = getSize; in compressFpToFp()
832 zerr = deflate(&zstream, flush); in compressFpToFp()
840 if (zstream.avail_out == 0 || in compressFpToFp()
841 (zerr == Z_STREAM_END && zstream.avail_out != (uInt) kBufSize)) in compressFpToFp()
843 ALOGV("+++ writing %d bytes\n", (int) (zstream.next_out - outBuf)); in compressFpToFp()
844 if (fwrite(outBuf, 1, zstream.next_out - outBuf, dstFp) != in compressFpToFp()
845 (size_t)(zstream.next_out - outBuf)) in compressFpToFp()
848 (int) (zstream.next_out - outBuf)); in compressFpToFp()
852 zstream.next_out = outBuf; in compressFpToFp()
853 zstream.avail_out = kBufSize; in compressFpToFp()
862 deflateEnd(&zstream); /* free up any allocated structures */ in compressFpToFp()