summaryrefslogtreecommitdiff
path: root/seduservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'seduservice.h')
-rw-r--r--seduservice.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/seduservice.h b/seduservice.h
new file mode 100644
index 0000000..7079041
--- /dev/null
+++ b/seduservice.h
@@ -0,0 +1,85 @@
+/*
+ * seduservice.h: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * $Id: seduservice.h,v 1.3 2012/11/22 18:02:59 wendel Exp $
+ */
+
+#ifndef __SEDU_SERVICE_H
+#define __SEDU_SERVICE_H
+
+//***************************************************************************
+// Pixel - format as provided by softhddevice
+//***************************************************************************
+
+struct Pixel
+{
+ unsigned char b;
+ unsigned char g;
+ unsigned char r;
+ unsigned char a;
+};
+
+//***************************************************************************
+// Sedu Service
+//***************************************************************************
+
+class cSeduService
+{
+ public:
+
+ enum Cinebars
+ {
+ cbHorizontal,
+ cbVertical,
+ cbBoth,
+ cbCount
+ };
+
+ enum SeduMode
+ {
+ smMiniDMX,
+ smTpm2,
+ smCount
+ };
+
+ enum ViewMode
+ {
+ vmAtmo,
+ vmFixedCol,
+ vmRainbow,
+ vmColorWheel,
+ vmColorWheelStatic,
+ vmBlack,
+ vmDetached,
+ vmCount
+ };
+
+ enum LedPosition
+ {
+ lpTop,
+ lpLeft,
+ lpBottom,
+ lpRight
+ };
+
+ struct cLed
+ {
+ int x;
+ int toX;
+ int y;
+ int toY;
+ LedPosition lp;
+ };
+
+ // static
+
+ void rgb2hsv(int r, int g, int b, double* h, double* s, double* v);
+ Pixel hsv2rgb(int h, double s, double v);
+
+ static const char* toName(ViewMode vm);
+ static const char* viewModes[];
+};
+
+#endif // __SEDU_SERVICE_H