Go to the source code of this file.
|
static void | set_concat (float result[20], const float outer[20], const float inner[20]) |
|
static void | setrow (float row[], float r, float g, float b) |
|
|
static const float | kHueR = 0.213f |
|
static const float | kHueG = 0.715f |
|
static const float | kHueB = 0.072f |
|
◆ anonymous enum
Enumerator |
---|
kR_Scale | |
kG_Scale | |
kB_Scale | |
kA_Scale | |
kR_Trans | |
kG_Trans | |
kB_Trans | |
kA_Trans | |
Definition at line 25 of file SkColorMatrix.cpp.
◆ set_concat()
static void set_concat |
( |
float |
result[20], |
|
|
const float |
outer[20], |
|
|
const float |
inner[20] |
|
) |
| |
|
static |
Definition at line 37 of file SkColorMatrix.cpp.
37 {
38 float tmp[20];
40
43 } else {
45 }
46
47 int index = 0;
48 for (int j = 0; j < 20; j += 5) {
49 for (
int i = 0;
i < 4;
i++) {
50 target[index++] = outer[j + 0] * inner[
i + 0] +
51 outer[j + 1] * inner[
i + 5] +
52 outer[j + 2] * inner[
i + 10] +
53 outer[j + 3] * inner[
i + 15];
54 }
55 target[index++] = outer[j + 0] * inner[4] +
56 outer[j + 1] * inner[9] +
57 outer[j + 2] * inner[14] +
58 outer[j + 3] * inner[19] +
59 outer[j + 4];
60 }
61
64 }
65}
◆ setrow()
static void setrow |
( |
float |
row[], |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
|
static |
◆ kHueB
const float kHueB = 0.072f |
|
static |
◆ kHueG
const float kHueG = 0.715f |
|
static |
◆ kHueR
const float kHueR = 0.213f |
|
static |