mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Add v1.16 beta r1 changes.
This commit is contained in:
		
							
								
								
									
										13
									
								
								miniz_tdef.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								miniz_tdef.c
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user