diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2011-01-23 16:41:36 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2011-01-23 16:41:36 +0100 |
commit | 6de17bd75905cccb8e5d24545491eb0a74b4bd22 (patch) | |
tree | fccac0c31c6e40d9d39d27862228682399793fb2 /display.h | |
parent | b5ed30d0f422f572b7e36968a9182b8f2ecdb134 (diff) | |
download | vdr-plugin-graphlcd-6de17bd75905cccb8e5d24545491eb0a74b4bd22.tar.gz vdr-plugin-graphlcd-6de17bd75905cccb8e5d24545491eb0a74b4bd22.tar.bz2 |
added SPAN patch
see http://projects.vdr-developer.org/issues/523
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -31,10 +31,39 @@ #include <vdr/thread.h> #include <vdr/player.h> +#define SPAN_CLIENT_CHECK_ID "Span-ClientCheck-v1.0" +#define SPAN_GET_BAR_HEIGHTS_ID "Span-GetBarHeights-v1.0" #define LCDMAXCARDS 4 static const int kMaxTabCount = 10; +struct Span_Client_Check_1_0 { + bool *isActive; + bool *isRunning; +}; + +struct Span_GetBarHeights_v1_0 { + unsigned int bands; // number of bands to compute + unsigned int *barHeights; // the heights of the bars of the + // two channels combined + unsigned int *barHeightsLeftChannel; // the heights of the bars of the + // left channel + unsigned int *barHeightsRightChannel; // the heights of the bars of the + // right channel + unsigned int *volumeLeftChannel; // the volume of the left channels + unsigned int *volumeRightChannel; // the volume of the right channels + unsigned int *volumeBothChannels; // the combined volume of the two + // channels + const char *name; // name of the plugin that wants to + // get the data (must be unique for + // each client!) + unsigned int falloff; // bar falloff value + unsigned int *barPeaksBothChannels; // bar peaks of the two channels + // combined + unsigned int *barPeaksLeftChannel; // bar peaks of the left channel + unsigned int *barPeaksRightChannel; // bar peaks of the right channel +}; + enum ThreadState { Normal, @@ -107,6 +136,7 @@ private: time_t LastTime; time_t LastTimeCheckSym; time_t LastTimeModSym; + cTimeMs LastTimeSA; //span struct timeval CurrTimeval; struct timeval UpdateAt; @@ -128,6 +158,7 @@ private: void DisplayTextItem(); void DisplayColorButtons(); void DisplayVolume(); + void DisplaySA(); //span void UpdateIn(long usec); bool CheckAndUpdateSymbols(); |