Add wuffs_aux::DecodeImage

This commit is contained in:
Nigel Tao committed 2021-03-03 23:19:58 +11:00
1 parent ccee207661
commit 04f8686989
9 files changed
+1044 -319

No files matched your search

+7
View File
@@ -27,6 +27,13 @@ namespace wuffs_aux {
using IOBuffer = wuffs_base__io_buffer;
// MemOwner represents ownership of some memory. Dynamically allocated memory
// (e.g. from malloc or new) is typically paired with free or delete, invoked
// when the std::unique_ptr is destroyed. Statically allocated memory might use
// MemOwner(nullptr, &free), even if that statically allocated memory is not
// nullptr, since calling free(nullptr) is a no-op.
using MemOwner = std::unique_ptr<void, decltype(&free)>;
namespace sync_io {
// --------