#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"); \
EXTERNAL_PICTS
-#undef EXTERNALPICTURES
+#undef EXTERNALPICTURE
#define BACKBUFFER_WIDTH 1280
--- /dev/null
+/*
+ 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
class MovieInfo;
class SeriesInfo;
-typedef enum tStaticArtwork
-{
- sa_wallpaper,
- sa_vdrlogo,
- sa_MAX
-} StaticArtwork;
class TVMediaInfo
{
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;};