33 #ifndef OPJ_INCLUDES_H
34 #define OPJ_INCLUDES_H
40 #include "opj_config_private.h"
64 #if defined(OPJ_HAVE_FSEEKO) && !defined(fseek)
70 #if defined(WIN32) && !defined(Windows95) && !defined(__BORLANDC__) && \
71 !(defined(_MSC_VER) && _MSC_VER < 1400) && \
72 !(defined(__MINGW32__) && __MSVCRT_VERSION__ < 0x800)
78 # define OPJ_FSEEK(stream,offset,whence) _fseeki64(stream, offset,whence)
79 # define OPJ_FSTAT(fildes,stat_buff) _fstati64(fildes, stat_buff)
80 # define OPJ_FTELL(stream) _ftelli64(stream)
81 # define OPJ_STAT_STRUCT_T struct _stati64
82 # define OPJ_STAT(path,stat_buff) _stati64(path, stat_buff)
84 # define OPJ_FSEEK(stream,offset,whence) fseek(stream,offset,whence)
85 # define OPJ_FSTAT(fildes,stat_buff) fstat(fildes,stat_buff)
86 # define OPJ_FTELL(stream) ftell(stream)
87 # define OPJ_STAT_STRUCT_T struct stat
88 # define OPJ_STAT(path,stat_buff) stat(path,stat_buff)
106 #if (__STDC_VERSION__ >= 199901L)
107 #define OPJ_RESTRICT restrict
110 #if defined(__GNUC__)
111 #define OPJ_RESTRICT __restrict__
124 #ifdef __has_attribute
125 #if __has_attribute(no_sanitize)
126 #define OPJ_NOSANITIZE(kind) __attribute__((no_sanitize(kind)))
129 #ifndef OPJ_NOSANITIZE
130 #define OPJ_NOSANITIZE(kind)
135 #if defined(_MSC_VER)
139 return _mm_cvt_ss2si(_mm_load_ss(&f));
143 #elif defined(_M_IX86)
152 return (
long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
155 #elif defined(__BORLANDC__)
158 return (
long)((f>0.0f) ? (f + 0.5f):(f -0.5f));
176 #if defined(_MSC_VER) && (_MSC_VER < 1400)
177 #define vsnprintf _vsnprintf
181 #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__INTEL_COMPILER) && defined(_M_IX86)
183 # pragma intrinsic(__emul)
219 #include "openjpwl/jpwl.h"
Implementation of a list of procedures.
Implementation of a tile coder/decoder (TCD)
Modification of jpip.c from 2KAN indexer.
Implementation of a tier-2 coding (packetization of code-block data) (T2)
Implementation of the matrix inversion.
Implementation of a discrete wavelet transform (DWT)
static INLINE long opj_lrintf(float f)
Definition: opj_includes.h:171
Implementation of an individual bit input-output (BIO)
Implementation of an MQ-Coder (MQC)
The JPEG-2000 Codestream Reader/Writer (J2K)
#define INLINE
Definition: openjpeg.h:65
Implementation of the tier-1 coding (coding of code-block coefficients) (T1)
Implementation of operations on images (IMAGE)
The JPEG-2000 file format Reader/Writer (JP2)
Implementation of operations for raw encoding (RAW)
Implementation of operations on integers (INT)
Implementation of a packet iterator (PI)
Modification of jpip.h from 2KAN indexer.
Implementation of a multi-component transforms (MCT)
Implementation of a event callback system.
Internal function for timing.
Implementation of a byte input-output process (CIO)
Implementation of a tag-tree coder (TGT)