]> git.vomp.tv Git - vompclient.git/commitdiff
Some code clean up to reduce the recompilation time to keep me sane
authorMarten Richter <marten.richter@freenet.de>
Mon, 6 Oct 2014 06:50:25 +0000 (08:50 +0200)
committerMarten Richter <marten.richter@freenet.de>
Mon, 6 Oct 2014 06:50:25 +0000 (08:50 +0200)
osdopenvg.cc
osdopenvg.h
staticartwork.h [new file with mode: 0644]
surface.cc
surfacevector.cc
tvmedia.cc
tvmedia.h
vdr.cc
vdr.h

index fd1a02846e6cea9166ebad47439d9139d90ffb3e..9dc944323e93e581231187be2be9a4f089075a99 100644 (file)
 #include <math.h>
 #include <bcm_host.h>
 
-#define EXTERNAL_PICTS \
-       EXTERNALPICTURE(vdrlogo, vdrhires, jpg) \
-       EXTERNALPICTURE(wallpaper, wallpaper720p, jpg)
-
 
 
 #define EXTERNALPICTURE(name, fname, fileextension)  extern uint8_t name ## _data[]  asm("_binary_other_"#fname"_"#fileextension"_start"); \
@@ -45,7 +41,7 @@
 
 EXTERNAL_PICTS
 
-#undef EXTERNALPICTURES
+#undef EXTERNALPICTURE
 
 
 #define  BACKBUFFER_WIDTH 1280
index c502ded81988462562507b2fb9fd4dfc0aff1d3e..c3f4dfa3ae503c8869e390a89918d33585d552f7 100644 (file)
@@ -38,6 +38,7 @@
 #include "mutex.h"
 #include "signal.h"
 #include "videoomx.h"
+#include "staticartwork.h"
 #ifdef PICTURE_DECODER_OMX
 #include "imageomx.h"
 #endif
diff --git a/staticartwork.h b/staticartwork.h
new file mode 100644 (file)
index 0000000..7b03e5f
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+    Copyright 2014 Marten Richter
+
+    This file is part of VOMP.
+
+    VOMP is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    VOMP is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with VOMP; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+*/
+
+#ifndef STATIC_ARTWORK_H
+#define STATIC_ARTWORK_H
+
+#define EXTERNAL_PICTS \
+       EXTERNALPICTURE(vdrlogo, vdrhires, jpg) \
+       EXTERNALPICTURE(wallpaper, wallpaper720p, jpg)
+
+#define EXTERNALPICTURE(name, fname, fileextension)  sa_ ## name,
+
+
+typedef enum tStaticArtwork
+{
+       EXTERNAL_PICTS
+       sa_MAX
+} StaticArtwork;
+
+#undef EXTERNALPICTURE
+
+
+#endif
index 4555987072c8037a1c6b21a222e772d46dd3f8f6..390c237968b2e7a7f9c268697d72f3ce2399edd6 100644 (file)
@@ -26,6 +26,7 @@
 #include "video.h"
 
 #include "teletxt/txtfont.h"
+#include "staticartwork.h"
 
 unsigned int interpol_table_fac1[16][22];
 unsigned int interpol_table_fac2[16][22];
index bb8ce08f1aee513dc2144ceb0b168f680dcab6fb..eb612cb647f9c81814dad0243641adf54350feba 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "surfacevector.h"
 #include "bitmap.h"
+#include "staticartwork.h"
 #include <wchar.h>
 #include <stdlib.h>
 #include <math.h>
index 4f79a0965deef8bebd8587eda2a71d5c7c4fb8d8..20deaf492b882c51acd5bcb77202c4272e0eb7c5 100644 (file)
@@ -67,7 +67,7 @@ void TVMediaInfo::setPosterThumb(const char* recname)
        primary_name=recname;
 }
 
-void TVMediaInfo::setStaticArtwork(StaticArtwork id)
+void TVMediaInfo::setStaticArtwork(int id)
 {
        type=4;
        primary_id=id;
index 50156afce47a0abf306df4c82b0d5a07f053b60d..9dbc34f280404f890d54b01afb7036aa2871eec2 100644 (file)
--- a/tvmedia.h
+++ b/tvmedia.h
 class MovieInfo;
 class SeriesInfo;
 
-typedef enum tStaticArtwork
-{
-       sa_wallpaper,
-       sa_vdrlogo,
-       sa_MAX
-} StaticArtwork;
 
 class TVMediaInfo
 {
@@ -53,7 +47,7 @@ public:
        void setPosterThumb(const char* recname);
        void setPosterThumb(int channel, int eventid);
        void setChannelLogo(int channel);
-       void setStaticArtwork(StaticArtwork artwork);
+       void setStaticArtwork(int artwork);
        int getType() {return type;};
        int getPrimaryID() {return primary_id;};
        int getSecondaryID() {return secondary_id;};
diff --git a/vdr.cc b/vdr.cc
index c73fea9de3d98e67890394e3ddaaf2f69ce9a239..174e15930a6647946dcedef3a1a5d0f2e3f42c84 100644 (file)
--- a/vdr.cc
+++ b/vdr.cc
@@ -42,6 +42,7 @@
 #include "movieinfo.h"
 #include "seriesinfo.h"
 #include "osdvector.h"
+#include "tvmedia.h"
 
 #define VOMP_PROTOCOLL_VERSION 0x00000302
 
diff --git a/vdr.h b/vdr.h
index ce796a3d5fce8a3c25d11a9167a41597586baa7b..a2339705538aa171ed9a3702c349470c3f2522c0 100644 (file)
--- a/vdr.h
+++ b/vdr.h
@@ -42,7 +42,6 @@
 #include "eventdispatcher.h"
 #include "i18n.h"
 #include "log.h"
-#include "tvmedia.h"
 
 class TCP;
 class Log;
@@ -56,6 +55,7 @@ class SerializeBuffer;
 #endif
 class MovieInfo;
 class SeriesInfo;
+struct TVMediaInfo;
 
 
 using namespace std;