Go to the source code of this file.
◆ kDelta
◆ div255()
static unsigned div255 |
( |
unsigned |
x | ) |
|
|
inlinestatic |
Definition at line 48 of file SkEmbossMask.cpp.
48 {
50 return x * ((1 << 24) / 255) >> 24;
51}
◆ neq_to_mask()
Definition at line 39 of file SkEmbossMask.cpp.
39 {
40#if 0
42#else
44 return (
x -
max) >> 31;
45#endif
46}
static float max(float r, float g, float b)
◆ neq_to_one()
Definition at line 30 of file SkEmbossMask.cpp.
30 {
31#if 0
33#else
35 return ((
unsigned)(
x -
max)) >> 31;
36#endif
37}
◆ nonzero_to_one()
static int nonzero_to_one |
( |
int |
x | ) |
|
|
inlinestatic |
Definition at line 22 of file SkEmbossMask.cpp.
22 {
23#if 0
25#else
26 return ((
unsigned)(
x | -
x)) >> 31;
27#endif
28}