summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_v1.0/include/display_shared.hch
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer_v1.0/include/display_shared.hch')
-rw-r--r--Graphic_Equalizer_v1.0/include/display_shared.hch98
1 files changed, 98 insertions, 0 deletions
diff --git a/Graphic_Equalizer_v1.0/include/display_shared.hch b/Graphic_Equalizer_v1.0/include/display_shared.hch
new file mode 100644
index 0000000..b9bf0d8
--- /dev/null
+++ b/Graphic_Equalizer_v1.0/include/display_shared.hch
@@ -0,0 +1,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 --- */
+