pike.git
/
src
/
modules
/
Image
/
phase.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/phase.h:59:
imgi[i].R=0;\ }\ else \ {\ if (V==0) imgi[i].R=32;\ else if (H==0) imgi[i].R=256-32;\ else\ {\ if (abs(V)>abs(H))\ if (V<0)\
-
imgi[i].R=DOUBLE_TO_
CHAR
(0.5+224+(((float)H)/
\
-
(0-V))*32.0);\
+
imgi[i].R=DOUBLE_TO_
COLORTYPE
(0.5+224+(((float)H)/(0-V))*32.0);\
else\
-
imgi[i].R=DOUBLE_TO_
CHAR
(0.5+96+(((float)H)/
\
-
(V))*32.0);\
+
imgi[i].R=DOUBLE_TO_
COLORTYPE
(0.5+96+(((float)H)/(V))*32.0);\
else\ if (H<0)\
-
imgi[i].R=DOUBLE_TO_
CHAR
(0.5+32+(((float)V)/
\
-
(0-H))*32.0);\
+
imgi[i].R=DOUBLE_TO_
COLORTYPE
(0.5+32+(((float)V)/(0-H))*32.0);\
else\
-
imgi[i].R=DOUBLE_TO_
CHAR
(0.5+160+(((float)V)/
\
-
(H))*32.0);\
+
imgi[i].R=DOUBLE_TO_
COLORTYPE
(0.5+160+(((float)V)/(H))*32.0);\
}\ }\ } DALOOP(r) DALOOP(g) DALOOP(b) #undef DALOOP THREADS_DISALLOW(); push_object(o); }