40#include "opj_config_private.h"
67#if defined(OPJ_HAVE_FSEEKO) && !defined(fseek)
73#if defined(WIN32) && !defined(Windows95) && !defined(__BORLANDC__) && \
74 !(defined(_MSC_VER) && _MSC_VER < 1400) && \
75 !(defined(__MINGW32__) && __MSVCRT_VERSION__ < 0x800)
81# define OPJ_FSEEK(stream,offset,whence) _fseeki64(stream, offset,whence)
82# define OPJ_FSTAT(fildes,stat_buff) _fstati64(fildes, stat_buff)
83# define OPJ_FTELL(stream) _ftelli64(stream)
84# define OPJ_STAT_STRUCT_T struct _stati64
85# define OPJ_STAT(path,stat_buff) _stati64(path, stat_buff)
87# define OPJ_FSEEK(stream,offset,whence) fseek(stream,offset,whence)
88# define OPJ_FSTAT(fildes,stat_buff) fstat(fildes,stat_buff)
89# define OPJ_FTELL(stream) ftell(stream)
90# define OPJ_STAT_STRUCT_T struct stat
91# define OPJ_STAT(path,stat_buff) stat(path,stat_buff)
109#if (__STDC_VERSION__ >= 199901L)
110#define OPJ_RESTRICT restrict
114#define OPJ_RESTRICT __restrict__
127#ifdef __has_attribute
128#if __has_attribute(no_sanitize)
129#define OPJ_NOSANITIZE(kind) __attribute__((no_sanitize(kind)))
132#ifndef OPJ_NOSANITIZE
133#define OPJ_NOSANITIZE(kind)
143 return _mm_cvt_ss2si(_mm_load_ss(&f));
147#elif defined(_M_IX86)
156 return (
long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
159#elif defined(__BORLANDC__)
163 return (
long)((f > 0.0f) ? (f + 0.5f) : (f - 0.5f));
182#if defined(_MSC_VER) && (_MSC_VER < 1400)
183#define vsnprintf _vsnprintf
187#if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__INTEL_COMPILER) && defined(_M_IX86)
189# pragma intrinsic(__emul)
205#if defined(_M_IX86_FP)
221#define OPJ_UNUSED(x) (void)x
258#include "openjpwl/jpwl.h"
Implementation of an individual bit input-output (BIO)
Modification of jpip.h from 2KAN indexer.
Implementation of a byte input-output process (CIO)
Implementation of a discrete wavelet transform (DWT)
Implementation of a event callback system.
Implementation of a list of procedures.
Implementation of operations on images (IMAGE)
Modification of jpip.c from 2KAN indexer.
Implementation of the matrix inversion.
The JPEG-2000 Codestream Reader/Writer (J2K)
The JPEG-2000 file format Reader/Writer (JP2)
Implementation of a multi-component transforms (MCT)
Implementation of an MQ-Coder (MQC)
#define INLINE
Definition openjpeg.h:65
Internal function for timing.
static INLINE long opj_lrintf(float f)
Definition opj_includes.h:176
unsigned int OPJ_BITFIELD
Definition opj_includes.h:219
Implementation of operations on integers (INT)
Implementation of a packet iterator (PI)
Implementation of the tier-1 coding (coding of code-block coefficients) (T1)
Implementation of a tier-2 coding (packetization of code-block data) (T2)
Implementation of a tile coder/decoder (TCD)
Implementation of a tag-tree coder (TGT)