Lines Matching refs:strm
142 z_stream strm; in ApplyImagePatch() local
143 strm.zalloc = Z_NULL; in ApplyImagePatch()
144 strm.zfree = Z_NULL; in ApplyImagePatch()
145 strm.opaque = Z_NULL; in ApplyImagePatch()
146 strm.avail_in = src_len; in ApplyImagePatch()
147 strm.next_in = (unsigned char*)(old_data + src_start); in ApplyImagePatch()
148 strm.avail_out = expanded_len; in ApplyImagePatch()
149 strm.next_out = expanded_source; in ApplyImagePatch()
152 ret = inflateInit2(&strm, -15); in ApplyImagePatch()
160 ret = inflate(&strm, Z_SYNC_FLUSH); in ApplyImagePatch()
167 if (strm.avail_out != bonus_size) { in ApplyImagePatch()
168 printf("source inflation short by %zu bytes\n", strm.avail_out-bonus_size); in ApplyImagePatch()
171 inflateEnd(&strm); in ApplyImagePatch()
204 strm.zalloc = Z_NULL; in ApplyImagePatch()
205 strm.zfree = Z_NULL; in ApplyImagePatch()
206 strm.opaque = Z_NULL; in ApplyImagePatch()
207 strm.avail_in = uncompressed_target_size; in ApplyImagePatch()
208 strm.next_in = uncompressed_target_data; in ApplyImagePatch()
209 ret = deflateInit2(&strm, level, method, windowBits, memLevel, strategy); in ApplyImagePatch()
211 strm.avail_out = temp_size; in ApplyImagePatch()
212 strm.next_out = temp_data; in ApplyImagePatch()
213 ret = deflate(&strm, Z_FINISH); in ApplyImagePatch()
214 ssize_t have = temp_size - strm.avail_out; in ApplyImagePatch()
223 deflateEnd(&strm); in ApplyImagePatch()