std/webp: tweak workbuf_len determination

This commit is contained in:
Nigel Tao committed 2026-08-10 09:23:05 +10:00
1 parent c4df79d82e
commit 466cf6f15d
12 files changed
+106 -90

No files matched your search

+2
View File
@@ -162,6 +162,8 @@ class DecodeImageCallbacks {
// should be at least len_range.min_incl, but larger allocations (up to
// len_range.max_incl) may have better performance (by using more memory).
//
// The len_range argument will satisfy !len_range.is_empty().
//
// The default AllocWorkbuf implementation allocates len_range.max_incl bytes
// of either uninitialized or zeroed memory.
virtual AllocWorkbufResult //