Go to the documentation of this file.
15 #ifndef JXL_DECODE_CXX_H_
16 #define JXL_DECODE_CXX_H_
22 #if !(defined(__cplusplus) || defined(c_plusplus))
23 #error "This a C++ only header. Use jxl/decode.h from C sources."
37 typedef std::unique_ptr<JxlDecoder, JxlDecoderDestroyStruct>
JxlDecoderPtr;
55 #endif // JXL_DECODE_CXX_H_
void operator()(JxlDecoder *decoder)
Calls JxlDecoderDestroy() on the passed decoder.
Definition: decode_cxx.h:29
std::unique_ptr< JxlDecoder, JxlDecoderDestroyStruct > JxlDecoderPtr
Definition: decode_cxx.h:37
Struct to call JxlDecoderDestroy from the JxlDecoderPtr unique_ptr.
Definition: decode_cxx.h:27
Decoding API for JPEG XL.
JXL_EXPORT void JxlDecoderDestroy(JxlDecoder *dec)
JXL_EXPORT JxlDecoder * JxlDecoderCreate(const JxlMemoryManager *memory_manager)
Definition: memory_manager.h:51
struct JxlDecoderStruct JxlDecoder
Definition: decode.h:84