15#ifndef JXL_DECODE_CXX_H_ 
   16#define JXL_DECODE_CXX_H_ 
   24#error "This a C++ only header. Use jxl/decode.h from C sources." 
   38typedef std::unique_ptr<JxlDecoder, JxlDecoderDestroyStruct> 
JxlDecoderPtr;
 
Decoding API for JPEG XL.
struct JxlMemoryManagerStruct JxlMemoryManager
std::unique_ptr< JxlDecoder, JxlDecoderDestroyStruct > JxlDecoderPtr
Definition decode_cxx.h:38
JXL_EXPORT JxlDecoder * JxlDecoderCreate(const JxlMemoryManager *memory_manager)
JXL_EXPORT void JxlDecoderDestroy(JxlDecoder *dec)
struct JxlDecoderStruct JxlDecoder
Definition decode.h:84
Abstraction functions used by JPEG XL to allocate memory.
Struct to call JxlDecoderDestroy from the JxlDecoderPtr unique_ptr.
Definition decode_cxx.h:28
void operator()(JxlDecoder *decoder)
Calls JxlDecoderDestroy() on the passed decoder.
Definition decode_cxx.h:30