15#ifndef JXL_ENCODE_CXX_H_ 
   16#define JXL_ENCODE_CXX_H_ 
   24#error "This a C++ only header. Use jxl/encode.h from C sources." 
   38typedef std::unique_ptr<JxlEncoder, JxlEncoderDestroyStruct> 
JxlEncoderPtr;
 
Encoding API for JPEG XL.
struct JxlMemoryManagerStruct JxlMemoryManager
std::unique_ptr< JxlEncoder, JxlEncoderDestroyStruct > JxlEncoderPtr
Definition encode_cxx.h:38
struct JxlEncoderStruct JxlEncoder
Definition encode.h:47
JXL_EXPORT JxlEncoder * JxlEncoderCreate(const JxlMemoryManager *memory_manager)
JXL_EXPORT void JxlEncoderDestroy(JxlEncoder *enc)
Abstraction functions used by JPEG XL to allocate memory.
Struct to call JxlEncoderDestroy from the JxlEncoderPtr unique_ptr.
Definition encode_cxx.h:28
void operator()(JxlEncoder *encoder)
Calls JxlEncoderDestroy() on the passed encoder.
Definition encode_cxx.h:30