idct.h
1.11 KB
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
.name p0, $v8
.name q0, $v9
.name p2, $v10
.name q2, $v11
.name p1, $v12
.name q1, $v13
.name p3, $v14
.name q3, $v15
.name a00, $v4
.name a08, $v5
.name a10, $v6
.name a18, $v7
.name vone, $v1
.name vdum, $v2
.name consts, $v3
#define SCALEUP 0
#define ZERO 1
#define NEG1 2
#define SCALEDN 3
#define ONE 4
#define HALF 5
#define SHIFT5 6
#define SUBHALF 7
/* These are offsets to IDCT_CONST_BASE
#define AMAT0L 0x00
#define AMAT0H 0x10
#define AMAT1L 0x20
#define AMAT1H 0x30
#define IDCT_CONSTS 0x40
*/
#define ROW0 0x00
#define ROW1 0x10
#define ROW2 0x20
#define ROW3 0x30
#define ROW4 0x40
#define ROW5 0x50
#define ROW6 0x60
#define ROW7 0x70
/*
#define TRANS0 0x00
#define TRANS1 0x10
#define TRANS2 0x20
#define TRANS3 0x30
#define TRANS4 0x40
#define TRANS5 0x50
#define TRANS6 0x60
#define TRANS7 0x70
*/
.name dum, $6
.name caddr, $7
.name x00, $v16
.name x01, $v17
.name x02, $v18
.name x03, $v19
.name x10, $v20
.name x11, $v21
.name x12, $v22
.name x13, $v23
.name x20, $v24
.name x21, $v25
.name x22, $v26
.name x23, $v27
.name x24, $v28
.name x25, $v29
.name x26, $v30
.name x27, $v31