20 #ifndef __RAWFB_DEVICE_H__ 21 #define __RAWFB_DEVICE_H__ 1 29 #include <sys/ioctl.h> 43 #define CMAP_SIZE (256*2) 59 bool initDevice(
int argc,
char *argv[]);
67 const char *getErrorString(
int error);
69 int getDepth() {
return _varinfo.bits_per_pixel; };
90 int getRedOffset() {
return _varinfo.red.offset; };
93 int getGreenOffset() {
return _varinfo.green.offset; };
94 int getBlueOffset() {
return _varinfo.blue.offset; };
125 void eventLoop(
size_t passes);
129 bool setGrayscaleLUT8();
132 #ifdef ENABLE_DOUBLE_BUFFERING 148 struct fb_fix_screeninfo _fixinfo;
149 struct fb_var_screeninfo _varinfo;
153 struct fb_cmap _cmap;
156 #ifdef ENABLE_FAKE_FRAMEBUFFER 157 int fakefb_ioctl(
int fd,
int request,
void *
data);
172 #endif // end of __RAWFB_DEVICE_H__ std::uint8_t * getFBMemory()
Get the memory from the real framebuffer.
Definition: RawFBDevice.h:110
native_window_t getDrawableWindow()
Definition: RawFBDevice.h:100
bool isBufferDestroyed()
Are buffers destroyed ?
Definition: RawFBDevice.h:78
bool isSingleBuffered()
Is this device single buffered.
Definition: RawFBDevice.h:131
int getRedSize()
Get the size of the Red pixel.
Definition: RawFBDevice.h:85
int(* key_func)(unsigned key)
Definition: RawFBDevice.h:166
bool supportsRenderer(GnashDevice::rtype_t)
Is the specified renderer supported by this hardware ?
Definition: RawFBDevice.h:76
void(* draw_func)()
Definition: RawFBDevice.h:165
void clear()
Clean up the font library.
Definition: fontlib.cpp:36
long native_window_t
Definition: GnashDevice.h:43
std::unique_ptr< std::uint8_t > _offscreen_buffer
Definition: RawFBDevice.h:152
Definition: GnashDevice.h:39
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
std::uint8_t * getOffscreenBuffer()
Get the memory from an offscreen buffer to support Double Buffering.
Definition: RawFBDevice.h:113
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
int getDepth()
Get the depth of the device.
Definition: RawFBDevice.h:69
Definition: klash_part.cpp:329
size_t getWidth()
Get the width of the device.
Definition: RawFBDevice.h:73
int getGreenSize()
Get the size of the Green pixel.
Definition: RawFBDevice.h:86
int getBlueSize()
Get the size of the Blue pixel.
Definition: RawFBDevice.h:87
size_t getHeight()
Get the Height of the device.
Definition: RawFBDevice.h:74
bool isNativeRender()
Is this renderering natively.
Definition: RawFBDevice.h:98
void(* init_func)()
Definition: RawFBDevice.h:163
Definition: klash_part.cpp:329
size_t getStride()
Query the system for all supported configs.
Definition: RawFBDevice.h:115
rtype_t
The list of supported renders that use devices.
Definition: GnashDevice.h:46
void(* reshape_func)(int, int)
Definition: RawFBDevice.h:164
dtype_t getType()
Definition: RawFBDevice.h:56
size_t getFBMemSize()
Definition: RawFBDevice.h:116
std::int32_t x
Definition: BitmapData_as.cpp:434
#define DSOEXPORT
Definition: dsodefs.h:55
int getHandle()
Definition: RawFBDevice.h:117
std::int32_t y
Definition: BitmapData_as.cpp:435
int _fd
Definition: RawFBDevice.h:146
std::uint8_t * _fbmem
Definition: RawFBDevice.h:150
int getID()
Get the window ID handle.
Definition: RawFBDevice.h:82
Definition: RawFBDevice.h:45
std::string name
Definition: LocalConnection_as.cpp:149
std::string _filespec
Definition: RawFBDevice.h:147