blob: b9bf0d8e3db3de9323b353eacfda86b00061a90e (
plain)
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
98
|
/*! \file display_shared.hch
*
* \brief Datastructures and defines for usage when interacting with the
* display library.
*
* \section project Project information.
* Graphic Equalizer 2\n
* \author
* \date 20041011
* \version 0.1
*
* \section copyright Copyright
* Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
*
* \section history Change history
* 20041011: \n Initial version
*
********************************************************************/
#ifndef _DISPLAY_SHARED_HCH
#define _DISPLAY_SHARED_HCH 1
/*! \struct skin_info_t
* \brief Structure containing the four boundry limits of an area and
* maximal two colors per area.
*/
typedef struct {
unsigned 11 left; /*!< leftmost point registerd in the area */
unsigned 11 right; /*!< rightmost point registerd in the area */
unsigned 11 bottom; /*!< lowest point registerd in the area */
unsigned 11 top; /*!< highest point registerd in the area */
unsigned 24 color_primary; /*!< primary color for this area */
unsigned 24 color_secondary; /*!< optionally an area can have a second color */
} skininfo_t;
/*! \struct skindata_t
* \brief This struct contains all area- dimensions and color information
* for the skin.
*/
typedef struct {
skininfo_t waveform; /*!< We store all information about the waveform area here. */
skininfo_t spectrum; /*!< We store all information about the spectrum analyzer area here. */
skininfo_t volume; /*!< We store all information about the volume control area here. */
skininfo_t inputgain; /*!< We store all information about the inputgain area here. */
skininfo_t equalizer; /*!< We store all information about the equalizerbars here. */
} skindata_t;
#define AREA_WAVEFORM 0x01 /*!< Waveform area. */
#define AREA_VOLUME_YAXIS 0x02 /*!< Volume control on the Y plane. */
#define AREA_SPECTRUM_ANALYZER 0x03 /*!< Spectrum Analyzer area. */
#define BUTTON_LOG 0x04 /*!< Logarithmic display button. */
#define BUTTON_DEMO 0x05 /*!< Demo preset button. */
#define BUTTON_RESET 0x06 /*!< Reset presets button. */
#define BUTTON_PRESET_1 0x07 /*!< Button for switching to preset 1 */
#define BUTTON_PRESET_2 0x08 /*!< Button for switching to preset 2 */
#define BUTTON_PRESET_3 0x09 /*!< Button for switching to preset 3 */
#define BUTTON_PRESET_4 0x0a /*!< Button for switching to preset 4 */
#define BUTTON_PRESET_5 0x0b /*!< Button for switching to preset 5 */
#define BUTTON_PRESET_6 0x0c /*!< Button for switching to preset 6 */
#define BUTTON_PRECISE 0x0d /*!< | 'Precise' selection Button */
#define BUTTON_CONVEX_HALF 0x0f /*!< /\ 'Convex' mode Button */
#define BUTTON_CONVEX_FULL 0x11 /*!< / - \ 'Convex' mode Button*/
#define BUTTON_HELP 0x12 /*!< Button to display help screen. */
#define BUTTON_MODE 0x13 /*!< Button to switch to graphical mode. */
#define BUTTON_OPTION 0x14 /*!< Button to display options screen. */
#define BUTTON_ABOUT 0x15 /*!< Button to change about screen. */
#define AREA_ABOUT_BOTTOM 0x16 /*!< Bottom half of about area */
#define AREA_ABOUT_TOP 0x17 /*!< Top half of about area */
#define BUTTON_URL_FONTYS 0x18 /*!< Url for Fontys in about screen */
#define BUTTON_URL_TASS 0x19 /*!< Url for TASS in about screen */
#define BUTTON_URL_TRANSFER 0x1a /*!< Url for Transfer in about screen */
#define BUTTON_URL_CELOXICA 0x1b /*!< Url for Celoxica in about screen */
#define BUTTON_URL_DETAILS 0x1c /*!< Url for Details in about screen */
#define BUTTON_EXIT_TO_SKIN 0x1d /*!< Button that exits the current screen and returns to the normal 'skin' screen */
#define AREA_INPUTGAIN_YAXIS 0x1e /*!< Input Gain control on the Y plane. */
#define BUTTON_PLAY 0x1f /*!< Button to play built in audio. */
#define AREA_MASK_END 0x7e /*!< Area in mask determining the end of the area beeing drawn */
#define AREA_EQUALIZER_MIN 0x80 /*!< First bar of the Equalizer Area. */
#define AREA_EQUALIZER_MAX 0xff /*!< Last bar of the Equalizer Area. */
#else
#error "ERROR file display_shared.hch multiple times included"
#endif /* --- _DISPLAY_SHARED_HCH --- */
|