diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2004-12-09 13:44:56 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2004-12-09 13:44:56 (GMT) |
commit | 593d5fded11b8723ce27883e06865ab205c6f008 (patch) | |
tree | 1f25584a40a2f24861464f0e6ea5416db7951514 /Graphic_Equalizer_Original_Port/include/display.hch | |
parent | 2b08ad7b3243965c832960b8089013cd1f6f46f3 (diff) | |
download | TASS-593d5fded11b8723ce27883e06865ab205c6f008.zip TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.gz TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.bz2 |
Phase 1: Original Port Completed.
Recommended additions:
add and update (doxygen) documentation
Diffstat (limited to 'Graphic_Equalizer_Original_Port/include/display.hch')
-rw-r--r-- | Graphic_Equalizer_Original_Port/include/display.hch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Graphic_Equalizer_Original_Port/include/display.hch b/Graphic_Equalizer_Original_Port/include/display.hch new file mode 100644 index 0000000..af29b4f --- /dev/null +++ b/Graphic_Equalizer_Original_Port/include/display.hch @@ -0,0 +1,52 @@ +/*! \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 PIXEL (pixeldata <- 24)
+#define PIXEL_VOLUME (0x2d74b5)
+#define PIXEL_EQUALIZER (0xc7541f)
+#define PIXEL_SPECTRUM ((((skindata->area_spectrum_bottom -(SCANY <- 10)) <<1) <- 8) @ 0x00 @ (((skindata->area_spectrum_bottom -(SCANY <- 10)) <<1) <- 8))
+#define PIXEL_WAVEFORM (0x2d74b5)
+
+
+
+/*
+ * 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.
+ */
+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 --- */
|