Leptonica  1.54
Файл environ.h
#include <stdint.h>

Классы

struct  L_WallTimer
 

Макросы

#define LEPT_DLL
 
#define HAVE_LIBJPEG   1
 
#define HAVE_LIBTIFF   1
 
#define HAVE_LIBPNG   1
 
#define HAVE_LIBZ   1
 
#define HAVE_LIBGIF   0
 
#define HAVE_LIBUNGIF   0
 
#define HAVE_LIBWEBP   0
 
#define HAVE_LIBJP2K   0
 
#define LIBJP2K_HEADER   <openjpeg-2.1/openjpeg.h>
 
#define HAVE_FMEMOPEN   1
 
#define USE_BMPIO   1
 
#define USE_PNMIO   1
 
#define USE_JP2KHEADER   1
 
#define USE_PDFIO   1
 
#define USE_PSIO   1
 
#define L_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define L_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define L_ABS(x)   (((x) < 0) ? (-1 * (x)) : (x))
 
#define L_SIGN(x)   (((x) < 0) ? -1 : 1)
 
#define UNDEF   -1
 
#define NULL   0
 
#define TRUE   1
 
#define FALSE   0
 
#define LEPT_MALLOC(blocksize)   malloc(blocksize)
 
#define LEPT_CALLOC(numelem, elemsize)   calloc(numelem, elemsize)
 
#define LEPT_REALLOC(ptr, blocksize)   realloc(ptr, blocksize)
 
#define LEPT_FREE(ptr)   free(ptr)
 
#define MINIMUM_SEVERITY   L_SEVERITY_INFO /* Compile-time default */
 
#define DEFAULT_SEVERITY   MINIMUM_SEVERITY /* Run-time default */
 
#define PROCNAME(name)   static const char procName[] = name
 
#define IF_SEV(l, t, f)   ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
 
#define ERROR_INT(a, b, c)   IF_SEV(L_SEVERITY_ERROR, returnErrorInt((a),(b),(c)), (l_int32)(c))
 
#define ERROR_FLOAT(a, b, c)   IF_SEV(L_SEVERITY_ERROR, returnErrorFloat((a),(b),(c)), (l_float32)(c))
 
#define ERROR_PTR(a, b, c)   IF_SEV(L_SEVERITY_ERROR, returnErrorPtr((a),(b),(c)), (void *)(c))
 
#define L_ERROR(a, ...)
 
#define L_WARNING(a, ...)
 
#define L_INFO(a, ...)
 

Определения типов

typedef intptr_t l_intptr_t
 
typedef uintptr_t l_uintptr_t
 
typedef signed char l_int8
 
typedef unsigned char l_uint8
 
typedef short l_int16
 
typedef unsigned short l_uint16
 
typedef int l_int32
 
typedef unsigned int l_uint32
 
typedef float l_float32
 
typedef double l_float64
 
typedef long long l_int64
 
typedef unsigned long long l_uint64
 
typedef void * L_TIMER
 
typedef struct L_WallTimer L_WALLTIMER
 

Перечисления

enum  { L_NOT_FOUND = 0, L_FOUND = 1 }
 
enum  { UNIX_PATH_SEPCHAR = 0, WIN_PATH_SEPCHAR = 1 }
 
enum  {
  L_SEVERITY_EXTERNAL = 0, L_SEVERITY_ALL = 1, L_SEVERITY_DEBUG = 2, L_SEVERITY_INFO = 3,
  L_SEVERITY_WARNING = 4, L_SEVERITY_ERROR = 5, L_SEVERITY_NONE = 6
}
 

Переменные

LEPT_DLL l_int32 LeptMsgSeverity
 

Макросы

◆ DEFAULT_SEVERITY

#define DEFAULT_SEVERITY   MINIMUM_SEVERITY /* Run-time default */

◆ ERROR_FLOAT

#define ERROR_FLOAT (   a,
  b,
 
)    IF_SEV(L_SEVERITY_ERROR, returnErrorFloat((a),(b),(c)), (l_float32)(c))

◆ ERROR_INT

#define ERROR_INT (   a,
  b,
 
)    IF_SEV(L_SEVERITY_ERROR, returnErrorInt((a),(b),(c)), (l_int32)(c))

◆ ERROR_PTR

#define ERROR_PTR (   a,
  b,
 
)    IF_SEV(L_SEVERITY_ERROR, returnErrorPtr((a),(b),(c)), (void *)(c))

◆ FALSE

#define FALSE   0

◆ HAVE_FMEMOPEN

#define HAVE_FMEMOPEN   1

◆ HAVE_LIBGIF

#define HAVE_LIBGIF   0

◆ HAVE_LIBJP2K

#define HAVE_LIBJP2K   0

◆ HAVE_LIBJPEG

#define HAVE_LIBJPEG   1

◆ HAVE_LIBPNG

#define HAVE_LIBPNG   1

◆ HAVE_LIBTIFF

#define HAVE_LIBTIFF   1

◆ HAVE_LIBUNGIF

#define HAVE_LIBUNGIF   0

◆ HAVE_LIBWEBP

#define HAVE_LIBWEBP   0

◆ HAVE_LIBZ

#define HAVE_LIBZ   1

◆ IF_SEV

#define IF_SEV (   l,
  t,
 
)    ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))

◆ L_ABS

#define L_ABS (   x)    (((x) < 0) ? (-1 * (x)) : (x))

◆ L_ERROR

#define L_ERROR (   a,
  ... 
)
Макроопределение:
(void)fprintf(stderr, "Error in %s: " a, __VA_ARGS__), \
(void)0)
Definition: environ.h:317
#define IF_SEV(l, t, f)
Definition: environ.h:426

◆ L_INFO

#define L_INFO (   a,
  ... 
)
Макроопределение:
(void)fprintf(stderr, "Info in %s: " a, __VA_ARGS__), \
(void)0)
#define IF_SEV(l, t, f)
Definition: environ.h:426
Definition: environ.h:315

◆ L_MAX

#define L_MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

◆ L_MIN

#define L_MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

◆ L_SIGN

#define L_SIGN (   x)    (((x) < 0) ? -1 : 1)

◆ L_WARNING

#define L_WARNING (   a,
  ... 
)
Макроопределение:
(void)fprintf(stderr, "Warning in %s: " a, __VA_ARGS__), \
(void)0)
#define IF_SEV(l, t, f)
Definition: environ.h:426
Definition: environ.h:316

◆ LEPT_CALLOC

#define LEPT_CALLOC (   numelem,
  elemsize 
)    calloc(numelem, elemsize)

◆ LEPT_DLL

#define LEPT_DLL

◆ LEPT_FREE

#define LEPT_FREE (   ptr)    free(ptr)

◆ LEPT_MALLOC

#define LEPT_MALLOC (   blocksize)    malloc(blocksize)

◆ LEPT_REALLOC

#define LEPT_REALLOC (   ptr,
  blocksize 
)    realloc(ptr, blocksize)

◆ LIBJP2K_HEADER

#define LIBJP2K_HEADER   <openjpeg-2.1/openjpeg.h>

◆ MINIMUM_SEVERITY

#define MINIMUM_SEVERITY   L_SEVERITY_INFO /* Compile-time default */

◆ NULL

#define NULL   0

◆ PROCNAME

#define PROCNAME (   name)    static const char procName[] = name

◆ TRUE

#define TRUE   1

◆ UNDEF

#define UNDEF   -1

◆ USE_BMPIO

#define USE_BMPIO   1

◆ USE_JP2KHEADER

#define USE_JP2KHEADER   1

◆ USE_PDFIO

#define USE_PDFIO   1

◆ USE_PNMIO

#define USE_PNMIO   1

◆ USE_PSIO

#define USE_PSIO   1

Типы

◆ l_float32

typedef float l_float32

◆ l_float64

typedef double l_float64

◆ l_int16

typedef short l_int16

◆ l_int32

typedef int l_int32

◆ l_int64

typedef long long l_int64

◆ l_int8

typedef signed char l_int8

◆ l_intptr_t

typedef intptr_t l_intptr_t

◆ L_TIMER

typedef void* L_TIMER

◆ l_uint16

typedef unsigned short l_uint16

◆ l_uint32

typedef unsigned int l_uint32

◆ l_uint64

typedef unsigned long long l_uint64

◆ l_uint8

typedef unsigned char l_uint8

◆ l_uintptr_t

typedef uintptr_t l_uintptr_t

◆ L_WALLTIMER

typedef struct L_WallTimer L_WALLTIMER

Перечисления

◆ anonymous enum

anonymous enum
Элементы перечислений
L_NOT_FOUND 
L_FOUND 

◆ anonymous enum

anonymous enum
Элементы перечислений
UNIX_PATH_SEPCHAR 
WIN_PATH_SEPCHAR 

◆ anonymous enum

anonymous enum
Элементы перечислений
L_SEVERITY_EXTERNAL 
L_SEVERITY_ALL 
L_SEVERITY_DEBUG 
L_SEVERITY_INFO 
L_SEVERITY_WARNING 
L_SEVERITY_ERROR 
L_SEVERITY_NONE 

Переменные

◆ LeptMsgSeverity

LEPT_DLL l_int32 LeptMsgSeverity