libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

memory_manager_internal.cc (445B)


      1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 //
      3 // Use of this source code is governed by a BSD-style
      4 // license that can be found in the LICENSE file.
      5 
      6 #include "lib/jxl/memory_manager_internal.h"
      7 
      8 #include <stdlib.h>
      9 
     10 namespace jxl {
     11 
     12 void* MemoryManagerDefaultAlloc(void* opaque, size_t size) {
     13   return malloc(size);
     14 }
     15 
     16 void MemoryManagerDefaultFree(void* opaque, void* address) { free(address); }
     17 
     18 }  // namespace jxl