diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-08-16 17:38:47 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-08-16 17:39:20 +0200 |
| commit | 1e387de74273c4dac618df94475556541c1caf3e (patch) | |
| tree | e86a1ebe47d1f7ab706b9fd1087ca4af5fd006e5 /src/lib/openmj2/openjpeg.h | |
| parent | c535531f03369623b9b833ef41952c62257b507e (diff) | |
Fix build issue of JPWL by adding opj_image_data_alloc() and opj_image_data_free() to src/lib/openmj2 (#994)
Diffstat (limited to 'src/lib/openmj2/openjpeg.h')
| -rw-r--r-- | src/lib/openmj2/openjpeg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/openmj2/openjpeg.h b/src/lib/openmj2/openjpeg.h index 7861edb5..10fccf1e 100644 --- a/src/lib/openmj2/openjpeg.h +++ b/src/lib/openmj2/openjpeg.h @@ -763,6 +763,27 @@ Deallocate any resources associated with an image */ OPJ_API void OPJ_CALLCONV opj_image_destroy(opj_image_t *image); +/** + * Allocator for opj_image_t->comps[].data + * To be paired with opj_image_data_free. + * + * @param size number of bytes to allocate + * + * @return a new pointer if successful, NULL otherwise. + * @since 2.2.0 +*/ +OPJ_API void* OPJ_CALLCONV opj_image_data_alloc(size_t size); + +/** + * Destructor for opj_image_t->comps[].data + * To be paired with opj_image_data_alloc. + * + * @param ptr Pointer to free + * + * @since 2.2.0 +*/ +OPJ_API void OPJ_CALLCONV opj_image_data_free(void* ptr); + /* ========================================================== stream functions definitions |
