diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-30 09:51:20 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-30 09:51:20 +0000 |
| commit | acfe0ad6458db913aac469804d4d17bea671682a (patch) | |
| tree | 3a8d4afee950198a5f8fa1c3acff2f96d0cdd7e5 /libopenjpeg/j2k_lib.h | |
| parent | d07fa5d9d0b5f3452831e4c0c9da1f03d30a1299 (diff) | |
Changed the OpenJPEG library interface to enable users to access information regarding the codestream (also called index).
Diffstat (limited to 'libopenjpeg/j2k_lib.h')
| -rw-r--r-- | libopenjpeg/j2k_lib.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libopenjpeg/j2k_lib.h b/libopenjpeg/j2k_lib.h index a8fc8f20..bb936c8b 100644 --- a/libopenjpeg/j2k_lib.h +++ b/libopenjpeg/j2k_lib.h @@ -69,8 +69,17 @@ Allocate memory aligned to a 16 byte boundry #include <malloc.h> #endif -#define opj_aligned_malloc(size) _mm_malloc(size, 16) -#define opj_aligned_free(m) _mm_free(m) +#ifdef _mm_malloc + #define opj_aligned_malloc(size) _mm_malloc(size, 16) + #else + #define opj_aligned_malloc(size) malloc(size) + #endif + + #ifdef _mm_free + #define opj_aligned_free(m) _mm_free(m) + #else + #define opj_aligned_free(m) free(m) + #endif #else /* Not WIN32 */ |
