summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/display.hch
blob: 9b0efe830fa44ad414342e24840270cdc4fc7e36 (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
/*! \file display.hch
 *
 * \section generic Display API
 *
 * \section project Project information.
 * Project Graphic Equalizer\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_HCH
#define _DISPLAY_HCH 1



/*
 * Set the color for various items that will be drawn on screen.
 */
#define DISABLED		(0x808080)
#define MASK			(pixeldata[31:24])
#define PIXEL			(pixeldata <- 24)
#define PIXEL_VOLUME		(0x2d74b5)
#define PIXEL_INPUTGAIN_NORM	(0x2d74b5)
#define PIXEL_INPUTGAIN_SAT	(0xc7541f)
#define PIXEL_EQUALIZER		(0xc7541f)
#define PIXEL_SPECTRUM		((((skindata->spectrum.bottom -(SCANY <- 11)) <<1) <- 8) @ 0x00 @ (((skindata->spectrum.bottom -(SCANY <- 11)) <<1) <- 8))
#define PIXEL_WAVEFORM		(0x2d74b5)



#define MASK_AREA_BACKGROUND	0x00
#define MASK_AREA_ABOUT_TOP	0x01
#define MASK_AREA_ABOUT_BOTTOM	0x02
#define MASK_AREA_AUDIO_PLAYER	0x03



/*
 * Main display loop. This function never returns! It handles display output.
 * It needs to respond to certain events set by the events pointer. Also it
 * informs events what the current mask is. To optain the current mask we need
 * the X and Y coordinates from our mousedata pointer.
 */
inline void display_main(skindata_t *skindata, audiodata_t *audiodata, events_t *events, mousedata_t *mousedata);



/*
 * reload equalizer bars into the display memory.
 */
void reload_equalizer(events_t *events, unsigned 4 *equalizer_levels_ptr);

#else
#error "ERROR file display.hch multiple times included"
#endif /* --- _DISPLAY_HCH --- */