summaryrefslogtreecommitdiff
path: root/dxr3colormanager.c
diff options
context:
space:
mode:
authorscop <scop>2005-04-17 16:41:17 +0000
committerscop <scop>2005-04-17 16:41:17 +0000
commit74d8232de848f462ad36a8c0f51c26ad400ee8ec (patch)
treefac415de30c23adc3f4522bc7b98051ab76c7ced /dxr3colormanager.c
parent9216c55e163f619a33770119339ae0651cd1e417 (diff)
downloadvdr-plugin-dxr3-74d8232de848f462ad36a8c0f51c26ad400ee8ec.tar.gz
vdr-plugin-dxr3-74d8232de848f462ad36a8c0f51c26ad400ee8ec.tar.bz2
Sync with Luca's workspace.
Diffstat (limited to 'dxr3colormanager.c')
-rw-r--r--dxr3colormanager.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/dxr3colormanager.c b/dxr3colormanager.c
index d2aa7ff..0bddb60 100644
--- a/dxr3colormanager.c
+++ b/dxr3colormanager.c
@@ -56,33 +56,6 @@
#include <stdio.h>
#include <string.h>
-//#define timingdebug
-// Enables some time measure debugging code
-// (taken from the osdteletext plugin, thanks folks)
-#ifdef timingdebug
- #include <sys/timeb.h>
-
- class cTime {
- // Debugging: Simple class to measure time
- timeb start;
- public:
- void Start() {
- ftime(&start);
- }
- void Stop(char *txt) {
- timeb t;
- ftime(&t);
- int s=t.time-start.time;
- int ms=t.millitm-start.millitm;
- if (ms<0) {
- s--;
- ms+=1000;
- }
- printf("%s: %i.%03i\n",txt,s,ms);
- }
- };
-#endif
-
// ==================================
//! constructor
cColorManager::cColorManager()
@@ -132,11 +105,6 @@ void cColorManager::EncodeColors(int width, int height, unsigned char* map, unsi
unsigned char ColorIndex;
int mapoffset=0;
- #ifdef timingdebug
- cTime t;
- t.Start();
- #endif
-
OpenRegion(0);
for (int y = 0; y < height; ++y) {
oldcolor=0xFF;
@@ -173,10 +141,6 @@ void cColorManager::EncodeColors(int width, int height, unsigned char* map, unsi
//close the last highligt region
CloseRegion(height);
- #ifdef timingdebug
- t.Stop("EncodeColors");
- #endif
-
//#define colordebug
#ifdef colordebug
{