rev |
line source |
nuclear@0
|
1 #ifndef DITHER_MATRIX_H_
|
nuclear@0
|
2 #define DITHER_MATRIX_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 static const float dither_matrix2[2][2] = {
|
nuclear@0
|
5 {0, 3}, {2, 1}
|
nuclear@0
|
6 };
|
nuclear@0
|
7
|
nuclear@0
|
8 static const float dither_matrix4[4][4] = {
|
nuclear@0
|
9 {0, 12, 3, 15},
|
nuclear@0
|
10 {8, 4, 11, 7},
|
nuclear@0
|
11 {2, 14, 1, 13},
|
nuclear@0
|
12 {10, 6, 9, 5}
|
nuclear@0
|
13 };
|
nuclear@0
|
14
|
nuclear@0
|
15 static const float dither_matrix8[8][8] = {
|
nuclear@0
|
16 {0, 48, 12, 60, 3, 51, 15, 63},
|
nuclear@0
|
17 {32, 16, 44, 28, 35, 19, 47, 31},
|
nuclear@0
|
18 {8, 56, 4, 52, 11, 59, 7, 55},
|
nuclear@0
|
19 {40, 24, 36, 20, 43, 27, 39, 23},
|
nuclear@0
|
20 {2, 50, 14, 62, 1, 49, 13, 61},
|
nuclear@0
|
21 {34, 18, 46, 30, 33, 17, 45, 29},
|
nuclear@0
|
22 {10, 58, 6, 54, 9, 57, 5, 53},
|
nuclear@0
|
23 {42, 26, 38, 22, 41, 25, 37, 21}
|
nuclear@0
|
24 };
|
nuclear@0
|
25
|
nuclear@0
|
26 #endif /* DITHER_MATRIX_H_ */
|