LIBJXL
butteraugli_cxx.h
Go to the documentation of this file.
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
5 
14 
15 #ifndef JXL_BUTTERAUGLI_CXX_H_
16 #define JXL_BUTTERAUGLI_CXX_H_
17 
18 #include <memory>
19 
20 #include "jxl/butteraugli.h"
21 
22 #if !(defined(__cplusplus) || defined(c_plusplus))
23 #error "This a C++ only header. Use jxl/butteraugli.h from C sources."
24 #endif
25 
31 };
32 
38 typedef std::unique_ptr<JxlButteraugliApi, JxlButteraugliApiDestroyStruct>
40 
47  }
48 };
49 
55 typedef std::unique_ptr<JxlButteraugliResult, JxlButteraugliResultDestroyStruct>
57 
58 #endif // JXL_BUTTERAUGLI_CXX_H_
59 
Butteraugli API for JPEG XL.
std::unique_ptr< JxlButteraugliResult, JxlButteraugliResultDestroyStruct > JxlButteraugliResultPtr
Definition: butteraugli_cxx.h:56
JXL_EXPORT void JxlButteraugliResultDestroy(JxlButteraugliResult *result)
JXL_EXPORT void JxlButteraugliApiDestroy(JxlButteraugliApi *api)
std::unique_ptr< JxlButteraugliApi, JxlButteraugliApiDestroyStruct > JxlButteraugliApiPtr
Definition: butteraugli_cxx.h:39
struct JxlButteraugliResultStruct JxlButteraugliResult
Definition: butteraugli.h:39
struct JxlButteraugliApiStruct JxlButteraugliApi
Definition: butteraugli.h:31
Definition: butteraugli_cxx.h:28
void operator()(JxlButteraugliApi *api)
Calls JxlButteraugliApiDestroy() on the passed api.
Definition: butteraugli_cxx.h:30
Definition: butteraugli_cxx.h:43
void operator()(JxlButteraugliResult *result)
Calls JxlButteraugliResultDestroy() on the passed result object.
Definition: butteraugli_cxx.h:45