Add v1.16 beta r1 changes.

This commit is contained in:
Matthew Sitton
2016-06-25 07:56:19 -05:00
parent 724de0bb0f
commit baa0e214e7
5 changed files with 103 additions and 28 deletions

View File

@@ -1074,6 +1074,19 @@ void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h,
return tdefl_write_image_to_png_file_in_memory_ex(pImage, w, h, num_chans, pLen_out, 6, MZ_FALSE);
}
// Allocate the tdefl_compressor and tinfl_decompressor structures in C so that
// non-C language bindings to tdefL_ and tinfl_ API don't need to worry about
// structure size and allocation mechanism.
tdefl_compressor *tdefl_compressor_alloc()
{
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
}
void tdefl_compressor_free(tdefl_compressor* pComp)
{
MZ_FREE(pComp);
}
#ifdef _MSC_VER
#pragma warning (pop)
#endif