replace framebuffer.h include with forward declaration

instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)
This commit is contained in:
Stefan Seyfried
2017-02-05 13:05:07 +01:00
parent dcd9b982ad
commit 63b6efd1f5
60 changed files with 59 additions and 64 deletions

View File

@@ -23,8 +23,9 @@
#ifndef __CCOLORGRADIENT__
#define __CCOLORGRADIENT__
#include <driver/framebuffer.h>
#include <inttypes.h>
class CFrameBuffer;
class CColorGradient
{
private:

View File

@@ -26,6 +26,7 @@
#include <global.h>
#include <driver/rcinput.h>
#include <driver/fade.h>
#include <driver/framebuffer.h>
#include <unistd.h>
#if HAVE_COOL_HARDWARE

View File

@@ -22,8 +22,9 @@
#ifndef __fade_f__
#define __fade_f__
#include <driver/framebuffer.h>
#include <inttypes.h>
class CFrameBuffer;
class COSDFader
{
private:

View File

@@ -23,8 +23,8 @@
#define __fb_window_h__
#include <driver/fontrenderer.h>
#include <driver/framebuffer.h>
class CFrameBuffer;
class CFBWindow
{
public:

View File

@@ -33,6 +33,7 @@
#include <ft2build.h>
#include FT_FREETYPE_H
#include <driver/framebuffer.h>
#include <driver/fontrenderer.h>
#include <system/debug.h>

View File

@@ -28,6 +28,7 @@
#include <pthread.h>
#include <string>
#include <inttypes.h>
#include <ft2build.h>
#include FT_FREETYPE_H
@@ -36,9 +37,7 @@
#include FT_CACHE_IMAGE_H
#include FT_CACHE_SMALL_BITMAPS_H
#include "framebuffer.h"
class CFrameBuffer;
class FBFontRenderClass;
class Font
{

View File

@@ -22,8 +22,8 @@
#include <gui/movieinfo.h>
#include <gui/components/cc.h>
#include <driver/framebuffer.h>
class CFrameBuffer;
class CMovieCut
{
private:

View File

@@ -1,3 +1,4 @@
#include <config.h>
#include "pv_config.h"
#ifdef FBV_SUPPORT_BMP
#include "pictureviewer.h"

View File

@@ -1,3 +1,4 @@
#include <config.h>
#include "pv_config.h"
#include <cstring>
#include <cstdlib>

View File

@@ -1,3 +1,4 @@
#include <config.h>
#include "pv_config.h"
#include <cstring>

View File

@@ -30,7 +30,7 @@
#include <vector>
#include <stdio.h> /* printf */
#include <sys/time.h> /* gettimeofday */
#include <driver/framebuffer.h>
#include <inttypes.h>
class CPictureViewer
{
struct cformathandler
@@ -64,7 +64,7 @@ class CPictureViewer
void Cleanup();
void SetVisible(int startx, int endx, int starty, int endy);
static double m_aspect_ratio_correction;
bool DisplayImage (const std::string & name, int posx, int posy, int width, int height, int transp=CFrameBuffer::TM_EMPTY);
bool DisplayImage (const std::string & name, int posx, int posy, int width, int height, int transp=0 /*CFrameBuffer::TM_EMPTY*/);
// bool DisplayLogo (uint64_t channel_id, int posx, int posy, int width, int height);
bool GetLogoName(const uint64_t& channel_id, const std::string& ChanName, std::string & name, int *width = NULL, int *height = NULL);
fb_pixel_t * getImage (const std::string & name, int width, int height);

View File

@@ -1,3 +1,4 @@
#include <config.h>
#include "pv_config.h"
#ifdef FBV_SUPPORT_PNG

View File

@@ -46,7 +46,6 @@
#ifndef __RADIO_AUDIO_H
#define __RADIO_AUDIO_H
#include <driver/framebuffer.h>
#include <driver/fontrenderer.h>
#if 0

View File

@@ -25,7 +25,6 @@
#endif
#include <driver/lcdd.h>
#include <driver/framebuffer.h>
#include <global.h>
#include <neutrino.h>

View File

@@ -26,9 +26,9 @@
#ifndef __CVOLUME__
#define __CVOLUME__
#include <driver/framebuffer.h>
#include <gui/volumebar.h>
class CFramebuffer;
class CVolume : public CChangeObserver
{
private: