Go to the documentation of this file.
12 #ifndef JXL_ENCODE_CXX_H_
13 #define JXL_ENCODE_CXX_H_
19 #if !(defined(__cplusplus) || defined(c_plusplus))
20 #error "This a C++ only header. Use jxl/encode.h from C sources."
34 typedef std::unique_ptr<JxlEncoder, JxlEncoderDestroyStruct>
JxlEncoderPtr;
52 #endif // JXL_ENCODE_CXX_H_
JXL_EXPORT void JxlEncoderDestroy(JxlEncoder *enc)
std::unique_ptr< JxlEncoder, JxlEncoderDestroyStruct > JxlEncoderPtr
Definition: encode_cxx.h:34
Encoding API for JPEG XL.
void operator()(JxlEncoder *encoder)
Calls JxlEncoderDestroy() on the passed encoder.
Definition: encode_cxx.h:26
struct JxlEncoderStruct JxlEncoder
Definition: encode.h:38
Struct to call JxlEncoderDestroy from the JxlEncoderPtr unique_ptr.
Definition: encode_cxx.h:24
JXL_EXPORT JxlEncoder * JxlEncoderCreate(const JxlMemoryManager *memory_manager)
Definition: memory_manager.h:48