-
Notifications
You must be signed in to change notification settings - Fork 4
/
rga_angle.h
executable file
·97 lines (86 loc) · 6.18 KB
/
rga_angle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
* rockchip hwcomposer( 2D graphic acceleration unit) .
*
* Copyright (C) 2015 Rockchip Electronics Co., Ltd.
*/
#ifndef __RGA_ANGLE_H__
#define __RGA_ANGLE_H__
static int sina_table[360] =
{
0, 1144, 2287, 3430, 4572, 5712, 6850, 7987, 9121, 10252,
11380, 12505, 13626, 14742, 15855, 16962, 18064, 19161, 20252, 21336,
22415, 23486, 24550, 25607, 26656, 27697, 28729, 29753, 30767, 31772,
32768, 33754, 34729, 35693, 36647, 37590, 38521, 39441, 40348, 41243,
42126, 42995, 43852, 44695, 45525, 46341, 47143, 47930, 48703, 49461,
50203, 50931, 51643, 52339, 53020, 53684, 54332, 54963, 55578, 56175,
56756, 57319, 57865, 58393, 58903, 59396, 59870, 60326, 60764, 61183,
61584, 61966, 62328, 62672, 62997, 63303, 63589, 63856, 64104, 64332,
64540, 64729, 64898, 65048, 65177, 65287, 65376, 65446, 65496, 65526,
65536, 65526, 65496, 65446, 65376, 65287, 65177, 65048, 64898, 64729,
64540, 64332, 64104, 63856, 63589, 63303, 62997, 62672, 62328, 61966,
61584, 61183, 60764, 60326, 59870, 59396, 58903, 58393, 57865, 57319,
56756, 56175, 55578, 54963, 54332, 53684, 53020, 52339, 51643, 50931,
50203, 49461, 48703, 47930, 47143, 46341, 45525, 44695, 43852, 42995,
42126, 41243, 40348, 39441, 38521, 37590, 36647, 35693, 34729, 33754,
32768, 31772, 30767, 29753, 28729, 27697, 26656, 25607, 24550, 23486,
22415, 21336, 20252, 19161, 18064, 16962, 15855, 14742, 13626, 12505,
11380, 10252, 9121, 7987, 6850, 5712, 4572, 3430, 2287, 1144,
0, -1144, -2287, -3430, -4572, -5712, -6850, -7987, -9121, -10252,
-11380, -12505, -13626, -14742, -15855, -16962, -18064, -19161, -20252, -21336,
-22415, -23486, -24550, -25607, -26656, -27697, -28729, -29753, -30767, -31772,
-32768, -33754, -34729, -35693, -36647, -37590, -38521, -39441, -40348, -41243,
-42126, -42995, -43852, -44695, -45525, -46341, -47143, -47930, -48703, -49461,
-50203, -50931, -51643, -52339, -53020, -53684, -54332, -54963, -55578, -56175,
-56756, -57319, -57865, -58393, -58903, -59396, -59870, -60326, -60764, -61183,
-61584, -61966, -62328, -62672, -62997, -63303, -63589, -63856, -64104, -64332,
-64540, -64729, -64898, -65048, -65177, -65287, -65376, -65446, -65496, -65526,
-65536, -65526, -65496, -65446, -65376, -65287, -65177, -65048, -64898, -64729,
-64540, -64332, -64104, -63856, -63589, -63303, -62997, -62672, -62328, -61966,
-61584, -61183, -60764, -60326, -59870, -59396, -58903, -58393, -57865, -57319,
-56756, -56175, -55578, -54963, -54332, -53684, -53020, -52339, -51643, -50931,
-50203, -49461, -48703, -47930, -47143, -46341, -45525, -44695, -43852, -42995,
-42126, -41243, -40348, -39441, -38521, -37590, -36647, -35693, -34729, -33754,
-32768, -31772, -30767, -29753, -28729, -27697, -26656, -25607, -24550, -23486,
-22415, -21336, -20252, -19161, -18064, -16962, -15855, -14742, -13626, -12505,
-11380, -10252, -9121, -7987, -6850, -5712, -4572, -3430, -2287, -1144
};
static int cosa_table[360] =
{
65536, 65526, 65496, 65446, 65376, 65287, 65177, 65048, 64898, 64729,
64540, 64332, 64104, 63856, 63589, 63303, 62997, 62672, 62328, 61966,
61584, 61183, 60764, 60326, 59870, 59396, 58903, 58393, 57865, 57319,
56756, 56175, 55578, 54963, 54332, 53684, 53020, 52339, 51643, 50931,
50203, 49461, 48703, 47930, 47143, 46341, 45525, 44695, 43852, 42995,
42126, 41243, 40348, 39441, 38521, 37590, 36647, 35693, 34729, 33754,
32768, 31772, 30767, 29753, 28729, 27697, 26656, 25607, 24550, 23486,
22415, 21336, 20252, 19161, 18064, 16962, 15855, 14742, 13626, 12505,
11380, 10252, 9121, 7987, 6850, 5712, 4572, 3430, 2287, 1144,
0, -1144, -2287, -3430, -4572, -5712, -6850, -7987, -9121, -10252,
-11380, -12505, -13626, -14742, -15855, -16962, -18064, -19161, -20252, -21336,
-22415, -23486, -24550, -25607, -26656, -27697, -28729, -29753, -30767, -31772,
-32768, -33754, -34729, -35693, -36647, -37590, -38521, -39441, -40348, -41243,
-42126, -42995, -43852, -44695, -45525, -46341, -47143, -47930, -48703, -49461,
-50203, -50931, -51643, -52339, -53020, -53684, -54332, -54963, -55578, -56175,
-56756, -57319, -57865, -58393, -58903, -59396, -59870, -60326, -60764, -61183,
-61584, -61966, -62328, -62672, -62997, -63303, -63589, -63856, -64104, -64332,
-64540, -64729, -64898, -65048, -65177, -65287, -65376, -65446, -65496, -65526,
-65536, -65526, -65496, -65446, -65376, -65287, -65177, -65048, -64898, -64729,
-64540, -64332, -64104, -63856, -63589, -63303, -62997, -62672, -62328, -61966,
-61584, -61183, -60764, -60326, -59870, -59396, -58903, -58393, -57865, -57319,
-56756, -56175, -55578, -54963, -54332, -53684, -53020, -52339, -51643, -50931,
-50203, -49461, -48703, -47930, -47143, -46341, -45525, -44695, -43852, -42995,
-42126, -41243, -40348, -39441, -38521, -37590, -36647, -35693, -34729, -33754,
-32768, -31772, -30767, -29753, -28729, -27697, -26656, -25607, -24550, -23486,
-22415, -21336, -20252, -19161, -18064, -16962, -15855, -14742, -13626, -12505,
-11380, -10252, -9121, -7987, -6850, -5712, -4572, -3430, -2287, -1144,
0, 1144, 2287, 3430, 4572, 5712, 6850, 7987, 9121, 10252,
11380, 12505, 13626, 14742, 15855, 16962, 18064, 19161, 20252, 21336,
22415, 23486, 24550, 25607, 26656, 27697, 28729, 29753, 30767, 31772,
32768, 33754, 34729, 35693, 36647, 37590, 38521, 39441, 40348, 41243,
42126, 42995, 43852, 44695, 45525, 46341, 47143, 47930, 48703, 49461,
50203, 50931, 51643, 52339, 53020, 53684, 54332, 54963, 55578, 56175,
56756, 57319, 57865, 58393, 58903, 59396, 59870, 60326, 60764, 61183,
61584, 61966, 62328, 62672, 62997, 63303, 63589, 63856, 64104, 64332,
64540, 64729, 64898, 65048, 65177, 65287, 65376, 65446, 65496, 65526
};
#endif