Openholo  v5.0
Open Source Digital Holographic Library
define.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 oph
 

Macros

#define M_PI   3.141592653589793238462643383279502884197169399375105820974944592308
 
#define M_PI_F   3.14159265358979323846f
 
#define RADIAN(theta)   (theta*M_PI)/180.0
 
#define DEGREE(theta)   (theta*180.0)/M_PI
 
#define RADIAN_F(theta)   (theta*M_PI_F)/180.f
 
#define DEGREE_F(theta)   (theta*180.f)/M_PI_F
 
#define OPH_FORWARD   (-1)
 
#define OPH_BACKWARD   (1)
 
#define OPH_MEASURE   (0U)
 
#define OPH_DESTROY_INPUT   (1U << 0)
 
#define OPH_UNALIGNED   (1U << 1)
 
#define OPH_CONSERVE_MEMORY   (1U << 2)
 
#define OPH_EXHAUSTIVE   (1U << 3)
 
#define OPH_PRESERVE_INPUT   (1U << 4)
 
#define OPH_PATIENT   (1U << 5)
 
#define OPH_ESTIMATE   (1U << 6)
 
#define OPH_WISDOM_ONLY   (1U << 21)
 
#define _FIRST   0
 
#define _SECOND   1
 
#define _THIRD   2
 
#define _X   0
 
#define _Y   1
 
#define _Z   2
 
#define _W   3
 
#define _R   0
 
#define _G   1
 
#define _B   2
 
#define _D   3
 
#define _COL   0
 
#define _ROW   1
 
#define _MAT   2
 
#define MAX_FLOAT   ((float)3.40282347e+38)
 
#define MAX_DOUBLE   ((double)1.7976931348623158e+308)
 
#define MIN_FLOAT   ((float)1.17549435e-38)
 
#define MIN_DOUBLE   ((double)2.2250738585072014e-308)
 
#define MIN_REAL   MIN_DOUBLE;
 
#define MAX_REAL   MAX_DOUBLE;
 
#define MODE_CPU   0
 
#define MODE_GPU   1
 
#define MODE_DOUBLE   0
 
#define MODE_FLOAT   2
 
#define MODE_FASTMATH   4
 
#define WIDTHBYTES(bits)   (((bits)+31)/32*4)
 
#define OPH_PLANES   1
 
#define OPH_COMPRESSION   0
 
#define X_PIXEL_PER_METER   0x130B
 
#define Y_PIXEL_PER_METER   0x130B
 

Macro Definition Documentation

◆ _B

#define _B   2

Definition at line 116 of file define.h.

◆ _COL

#define _COL   0

Definition at line 124 of file define.h.

◆ _D

#define _D   3

Definition at line 120 of file define.h.

◆ _FIRST

#define _FIRST   0

Definition at line 80 of file define.h.

◆ _G

#define _G   1

Definition at line 112 of file define.h.

◆ _MAT

#define _MAT   2

Definition at line 132 of file define.h.

◆ _R

#define _R   0

Definition at line 108 of file define.h.

◆ _ROW

#define _ROW   1

Definition at line 128 of file define.h.

◆ _SECOND

#define _SECOND   1

Definition at line 84 of file define.h.

◆ _THIRD

#define _THIRD   2

Definition at line 88 of file define.h.

◆ _W

#define _W   3

Definition at line 104 of file define.h.

◆ _X

#define _X   0

Definition at line 92 of file define.h.

◆ _Y

#define _Y   1

Definition at line 96 of file define.h.

◆ _Z

#define _Z   2

Definition at line 100 of file define.h.

◆ DEGREE

#define DEGREE (   theta)    (theta*180.0)/M_PI

Definition at line 61 of file define.h.

◆ DEGREE_F

#define DEGREE_F (   theta)    (theta*180.f)/M_PI_F

Definition at line 64 of file define.h.

◆ M_PI

#define M_PI   3.141592653589793238462643383279502884197169399375105820974944592308

Definition at line 52 of file define.h.

◆ M_PI_F

#define M_PI_F   3.14159265358979323846f

Definition at line 56 of file define.h.

◆ MAX_DOUBLE

#define MAX_DOUBLE   ((double)1.7976931348623158e+308)

Definition at line 140 of file define.h.

◆ MAX_FLOAT

#define MAX_FLOAT   ((float)3.40282347e+38)

Definition at line 136 of file define.h.

◆ MAX_REAL

#define MAX_REAL   MAX_DOUBLE;

Definition at line 152 of file define.h.

◆ MIN_DOUBLE

#define MIN_DOUBLE   ((double)2.2250738585072014e-308)

Definition at line 148 of file define.h.

◆ MIN_FLOAT

#define MIN_FLOAT   ((float)1.17549435e-38)

Definition at line 144 of file define.h.

◆ MIN_REAL

#define MIN_REAL   MIN_DOUBLE;

Definition at line 151 of file define.h.

◆ MODE_CPU

#define MODE_CPU   0

Definition at line 155 of file define.h.

◆ MODE_DOUBLE

#define MODE_DOUBLE   0

Definition at line 157 of file define.h.

◆ MODE_FASTMATH

#define MODE_FASTMATH   4

Definition at line 159 of file define.h.

◆ MODE_FLOAT

#define MODE_FLOAT   2

Definition at line 158 of file define.h.

◆ MODE_GPU

#define MODE_GPU   1

Definition at line 156 of file define.h.

◆ OPH_BACKWARD

#define OPH_BACKWARD   (1)

Definition at line 67 of file define.h.

◆ OPH_COMPRESSION

#define OPH_COMPRESSION   0

Definition at line 164 of file define.h.

◆ OPH_CONSERVE_MEMORY

#define OPH_CONSERVE_MEMORY   (1U << 2)

Definition at line 72 of file define.h.

◆ OPH_DESTROY_INPUT

#define OPH_DESTROY_INPUT   (1U << 0)

Definition at line 70 of file define.h.

◆ OPH_ESTIMATE

#define OPH_ESTIMATE   (1U << 6)

Definition at line 76 of file define.h.

◆ OPH_EXHAUSTIVE

#define OPH_EXHAUSTIVE   (1U << 3)

Definition at line 73 of file define.h.

◆ OPH_FORWARD

#define OPH_FORWARD   (-1)

Definition at line 66 of file define.h.

◆ OPH_MEASURE

#define OPH_MEASURE   (0U)

Definition at line 69 of file define.h.

◆ OPH_PATIENT

#define OPH_PATIENT   (1U << 5)

Definition at line 75 of file define.h.

◆ OPH_PLANES

#define OPH_PLANES   1

Definition at line 163 of file define.h.

◆ OPH_PRESERVE_INPUT

#define OPH_PRESERVE_INPUT   (1U << 4)

Definition at line 74 of file define.h.

◆ OPH_UNALIGNED

#define OPH_UNALIGNED   (1U << 1)

Definition at line 71 of file define.h.

◆ OPH_WISDOM_ONLY

#define OPH_WISDOM_ONLY   (1U << 21)

Definition at line 77 of file define.h.

◆ RADIAN

#define RADIAN (   theta)    (theta*M_PI)/180.0

Definition at line 60 of file define.h.

◆ RADIAN_F

#define RADIAN_F (   theta)    (theta*M_PI_F)/180.f

Definition at line 63 of file define.h.

◆ WIDTHBYTES

#define WIDTHBYTES (   bits)    (((bits)+31)/32*4)

Definition at line 161 of file define.h.

◆ X_PIXEL_PER_METER

#define X_PIXEL_PER_METER   0x130B

Definition at line 165 of file define.h.

◆ Y_PIXEL_PER_METER

#define Y_PIXEL_PER_METER   0x130B

Definition at line 166 of file define.h.