20 #ifndef __RAWFB_DEVICE_H__
21 #define __RAWFB_DEVICE_H__ 1
27 #include <boost/scoped_array.hpp>
28 #include <boost/scoped_ptr.hpp>
30 #include <sys/ioctl.h>
44 #define CMAP_SIZE (256*2)
60 bool initDevice(
int argc,
char *argv[]);
68 const char *getErrorString(
int error);
70 int getDepth() {
return _varinfo.bits_per_pixel; };
91 int getRedOffset() {
return _varinfo.red.offset; };
94 int getGreenOffset() {
return _varinfo.green.offset; };
95 int getBlueOffset() {
return _varinfo.blue.offset; };
126 void eventLoop(
size_t passes);
130 bool setGrayscaleLUT8();
133 #ifdef ENABLE_DOUBLE_BUFFERING
149 struct fb_fix_screeninfo _fixinfo;
150 struct fb_var_screeninfo _varinfo;
154 struct fb_cmap _cmap;
157 #ifdef ENABLE_FAKE_FRAMEBUFFER
158 int fakefb_ioctl(
int fd,
int request,
void *
data);
173 #endif // end of __RAWFB_DEVICE_H__
void(* draw_func)()
Definition: RawFBDevice.h:166
native_window_t getDrawableWindow()
Definition: RawFBDevice.h:101
bool isBufferDestroyed()
Are buffers destroyed ?
Definition: RawFBDevice.h:79
bool isSingleBuffered()
Is this device single buffered.
Definition: RawFBDevice.h:132
int getRedSize()
Get the size of the Red pixel.
Definition: RawFBDevice.h:86
bool supportsRenderer(GnashDevice::rtype_t)
Is the specified renderer supported by this hardware ?
Definition: RawFBDevice.h:77
void clear()
Clean up the font library.
Definition: fontlib.cpp:36
long native_window_t
Definition: GnashDevice.h:43
Definition: GnashDevice.h:39
SimpleBuffer data
Definition: LocalConnection_as.cpp:153
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
int getDepth()
Get the depth of the device.
Definition: RawFBDevice.h:70
int(* key_func)(unsigned key)
Definition: RawFBDevice.h:167
boost::uint8_t * _fbmem
Definition: RawFBDevice.h:151
Definition: klash_part.cpp:329
size_t getWidth()
Get the width of the device.
Definition: RawFBDevice.h:74
int getGreenSize()
Get the size of the Green pixel.
Definition: RawFBDevice.h:87
void(* init_func)()
Definition: RawFBDevice.h:164
int getBlueSize()
Get the size of the Blue pixel.
Definition: RawFBDevice.h:88
size_t getHeight()
Get the Height of the device.
Definition: RawFBDevice.h:75
bool isNativeRender()
Is this renderering natively.
Definition: RawFBDevice.h:99
void
Definition: npapi/plugin.cpp:1286
boost::uint8_t * getOffscreenBuffer()
Get the memory from an offscreen buffer to support Double Buffering.
Definition: RawFBDevice.h:114
Definition: klash_part.cpp:329
size_t getStride()
Query the system for all supported configs.
Definition: RawFBDevice.h:116
rtype_t
The list of supported renders that use devices.
Definition: GnashDevice.h:46
boost::uint8_t * getFBMemory()
Get the memory from the real framebuffer.
Definition: RawFBDevice.h:111
dtype_t getType()
Definition: RawFBDevice.h:57
size_t getFBMemSize()
Definition: RawFBDevice.h:117
boost::int32_t x
Definition: BitmapData_as.cpp:434
#define DSOEXPORT
Definition: dsodefs.h:55
void(* reshape_func)(int, int)
Definition: RawFBDevice.h:165
int getHandle()
Definition: RawFBDevice.h:118
boost::int32_t y
Definition: BitmapData_as.cpp:435
int _fd
Definition: RawFBDevice.h:147
int getID()
Get the window ID handle.
Definition: RawFBDevice.h:83
Definition: RawFBDevice.h:46
std::string name
Definition: LocalConnection_as.cpp:151
std::string _filespec
Definition: RawFBDevice.h:148
boost::scoped_ptr< boost::uint8_t > _offscreen_buffer
Definition: RawFBDevice.h:153