mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	add precision about dynamic output reallocation with IDecoder
The output surface CAN be changed inbetween calls to WebPIUpdate() or WebPIAppend(), but with precautions. Change-Id: I899afbd95738a6a8e0e7000f8daef3e74c99ddd8
This commit is contained in:
		| @@ -262,6 +262,12 @@ enum VP8StatusCode { | ||||
| // is used (with MODE_RGB). Otherwise, an internal reference to 'output_buffer' | ||||
| // is kept, which means that the lifespan of 'output_buffer' must be larger than | ||||
| // that of the returned WebPIDecoder object. | ||||
| // The supplied 'output_buffer' content MUST NOT be changed between calls to | ||||
| // WebPIAppend() or WebPIUpdate() unless 'output_buffer.is_external_memory' is | ||||
| // set to 1. In such a case, it is allowed to modify the pointers, size and | ||||
| // stride of output_buffer.u.RGBA or output_buffer.u.YUVA, provided they remain | ||||
| // within valid bounds. | ||||
| // All other fields of WebPDecBuffer MUST remain constant between calls. | ||||
| // Returns NULL if the allocation failed. | ||||
| WEBP_EXTERN(WebPIDecoder*) WebPINewDecoder(WebPDecBuffer* output_buffer); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user