Go to the documentation of this file.
15 #ifndef JXL_ENCODE_CXX_H_
16 #define JXL_ENCODE_CXX_H_
22 #if !(defined(__cplusplus) || defined(c_plusplus))
23 #error "This a C++ only header. Use jxl/encode.h from C sources."
37 typedef std::unique_ptr<JxlEncoder, JxlEncoderDestroyStruct>
JxlEncoderPtr;
55 #endif // JXL_ENCODE_CXX_H_
Encoding API for JPEG XL.
void operator()(JxlEncoder *encoder)
Calls JxlEncoderDestroy() on the passed encoder.
Definition: encode_cxx.h:29
Struct to call JxlEncoderDestroy from the JxlEncoderPtr unique_ptr.
Definition: encode_cxx.h:27
std::unique_ptr< JxlEncoder, JxlEncoderDestroyStruct > JxlEncoderPtr
Definition: encode_cxx.h:37
struct JxlEncoderStruct JxlEncoder
Definition: encode.h:41
Definition: memory_manager.h:51
JXL_EXPORT JxlEncoder * JxlEncoderCreate(const JxlMemoryManager *memory_manager)
JXL_EXPORT void JxlEncoderDestroy(JxlEncoder *enc)