stats.h
2.75 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
#ifndef __AE_stats_h
#define __AE_stats_h
#define MAX_PROF_CT 32
#define PEAK_BASE 205
#define PEAK_TOP (PEAK_BASE - 114)
#define PEAKL_LEFT 25
#define PEAKL_RIGHT 40
#define PEAKR_LEFT 60
#define PEAKR_RIGHT 75
#define SCALE_TOP (PEAK_TOP - 4)
#define SCALE_CENTER (((PEAKL_RIGHT + PEAKR_LEFT) / 2) - 8)
#define SIX_DB_PIX 16
#define NUM_PEAKS 4
#define CLIP_BOTTOM (PEAK_TOP-3)
#define CLIP_TOP (CLIP_BOTTOM-6)
#define ABSOL(a) (((a)>=(-a))?(a):(-a))
#define NUM_TIMES 55
#define CPU_LEFT 130
#define BAR_WIDTH 3
#define CPU_RIGHT (CPU_LEFT + (NUM_TIMES * BAR_WIDTH))
#define CPU_BASE 225
#define CPU_TOP (CPU_BASE - 50)
#define RSP_LEFT CPU_LEFT
#define RSP_RIGHT (RSP_LEFT + (NUM_TIMES * BAR_WIDTH))
#define RSP_BASE (CPU_BASE - 55)
#define RSP_TOP (RSP_BASE - 50)
#define VOX_LEFT CPU_LEFT
#define VOX_RIGHT (VOX_LEFT + (NUM_TIMES * BAR_WIDTH))
#define VOX_BASE (CPU_BASE - 110)
#define VOX_TOP (VOX_BASE - 48)
#define MAX_VCS_CT_LEFT (VOX_RIGHT - 40)
#define MAX_VCS_CT_TOP (VOX_TOP + 2)
#define MAX_VCS_CT_RIGHT (VOX_RIGHT - 2)
#define MAX_VCS_CT_BASE (VOX_TOP + 16)
#define STATE_STR_LEFT 25
#define STATE_STR_TOP 16
#define CMMD_STR_LEFT 25
#define CMMD_STR_TOP 32
#define DMAS_STR_LEFT 25
#define DMAS_STR_TOP 48
#define DMAB_STR_LEFT 150
#define DMAB_STR_TOP 48
#define UPDS_STR_LEFT 150
#define UPDS_STR_TOP 16
#define EVTS_STR_LEFT 150
#define EVTS_STR_TOP 32
#define RSP_STR_LEFT RSP_LEFT - 40
#define RSP_STR_TOP RSP_TOP + 10
#define CPU_STR_LEFT CPU_LEFT - 40
#define CPU_STR_TOP CPU_TOP + 10
#define VCS_STR_LEFT VOX_LEFT - 40
#define VCS_STR_TOP VOX_TOP + 10
#define L_STR_LEFT PEAKL_LEFT + 3
#define L_STR_TOP PEAK_BASE + 6
#define R_STR_LEFT PEAKR_LEFT + 3
#define R_STR_TOP PEAK_BASE + 6
#define MAX_VX_SCL_LEFT VOX_LEFT - 16
#define MAX_VX_SCL_TOP VOX_BASE - 48
#define MID_VX_SCL_LEFT VOX_LEFT - 16
#define MID_VX_SCL_TOP VOX_BASE - 29
#define MIN_VX_SCL_LEFT VOX_LEFT - 9
#define MIN_VX_SCL_TOP VOX_BASE - 10
#define MAX_RSP_SCL_LEFT RSP_LEFT - 9
#define MAX_RSP_SCL_TOP RSP_BASE - 50
#define MID_RSP_SCL_LEFT RSP_LEFT - 16
#define MID_RSP_SCL_TOP RSP_BASE - 30
#define MIN_RSP_SCL_LEFT RSP_LEFT - 9
#define MIN_RSP_SCL_TOP RSP_BASE - 10
#define MAX_CPU_SCL_LEFT CPU_LEFT - 9
#define MAX_CPU_SCL_TOP CPU_BASE - 50
#define MID_CPU_SCL_LEFT CPU_LEFT - 16
#define MID_CPU_SCL_TOP CPU_BASE - 30
#define MIN_CPU_SCL_LEFT CPU_LEFT - 9
#define MIN_CPU_SCL_TOP CPU_BASE - 10
#define MAX_VCS_STR_LEFT MAX_VCS_CT_LEFT + 1
#define MAX_VCS_STR_TOP MAX_VCS_CT_TOP + 2
#endif