X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgdi%2Ffb.h;h=fcb5ff275ef9b4826d32f980d9a0cf623a4075b1;hp=ab801662bce71868e5de1c58368695d68bb49494;hb=47eb827c45c6c8637418b64480d518d8553e4ee9;hpb=d6f6602d7cea3a7899990fe79216af7d98d05917 diff --git a/lib/gdi/fb.h b/lib/gdi/fb.h index ab80166..fcb5ff2 100644 --- a/lib/gdi/fb.h +++ b/lib/gdi/fb.h @@ -1,8 +1,8 @@ #ifndef __FB_H #define __FB_H -#include #include +#include class fbClass { @@ -14,27 +14,41 @@ class fbClass __u16 red[256], green[256], blue[256], trans[256]; static fbClass *instance; int locked; + + int m_manual_blit; + int m_number_of_pages; + int m_phys_mem; +#ifdef SWIG + fbClass(const char *fb="/dev/fb0"); + ~fbClass(); +public: +#else public: unsigned char *lfb; + void enableManualBlit(); + void disableManualBlit(); int showConsole(int state); int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp); int Available() { return available; } + + int getNumPages() { return m_number_of_pages; } + + unsigned long getPhysAddr() { return m_phys_mem; } + + int setOffset(int off); + int waitVSync(); + void blit(); unsigned int Stride() { return stride; } fb_cmap *CMAP() { return &cmap; } - fbClass(const char *fb="/dev/fb/0"); + fbClass(const char *fb="/dev/fb0"); ~fbClass(); - static fbClass *getInstance(); - - // low level gfx stuff + // low level gfx stuff int PutCMAP(); +#endif + static fbClass *getInstance(); - // gfx stuff (colors are 8bit!) - void Box(int x, int y, int width, int height, int color, int backcolor=0); - void NBox(int x, int y, int width, int height, int color); - void VLine(int x, int y, int sy, int color); - int lock(); void unlock(); int islocked() { return locked; }