stats.h 2.75 KB
#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