1 #ifndef INDICE_TOOLS_CPU_H_
2 #define INDICE_TOOLS_CPU_H_
4 #include "cudaType_CPU.h"
6 /*----------------------------------------------------------------------*\
8 \*---------------------------------------------------------------------*/
10 /*--------------------------------------*\
12 \*-------------------------------------*/
19 /*--------------------------------------*\
21 \*--------------------------------------*/
25 /*--------------------------------------*\
27 \*--------------------------------------*/
32 * s[0,W*H[ --> i[0,H[ j[0,W[
34 static void toIJ(int s
, int w
, int* ptri
, int* ptrj
);
37 * s[0,W*H[ --> x[0,W[ y[0,H[
39 static float2
toPixelFloat(int s
, int w
);
42 * i[0,H[ j[0,W[ --> s[0,W*H[
44 static int toS(int w
, int i
, int j
);
46 /*-------------------------------------*\
48 \*-------------------------------------*/
57 /*----------------------------------------------------------------------*\
59 \*---------------------------------------------------------------------*/