Go to the documentation of this file.
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
147 std::string _filespec;
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__
bool setGrayscaleLUT8()
Definition: RawFBDevice.cpp:161
void(* reshape_func)(int, int)
Definition: RawFBDevice.h:164
long native_window_t
Definition: GnashDevice.h:43
int getID()
Get the window ID handle.
Definition: RawFBDevice.h:82
std::string name
Definition: LocalConnection_as.cpp:149
bool isBufferDestroyed()
Are buffers destroyed ?
Definition: RawFBDevice.h:78
@ height
Definition: klash_part.cpp:329
bool supportsRenderer(GnashDevice::rtype_t)
Is the specified renderer supported by this hardware ?
Definition: RawFBDevice.h:76
struct fb_fix_screeninfo _fixinfo
Definition: RawFBDevice.h:148
bool initDevice(int argc, char *argv[])
Definition: RawFBDevice.cpp:103
void(* draw_func)()
Definition: RawFBDevice.h:165
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
@ i
Definition: GnashKey.h:155
RawFBDevice(int argc, char *argv[])
int getGreenSize()
Get the size of the Green pixel.
Definition: RawFBDevice.h:86
RawFBDevice()
Definition: RawFBDevice.cpp:41
int getRedSize()
Get the size of the Red pixel.
Definition: RawFBDevice.h:85
#define _(String)
Definition: log.h:44
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ g
Definition: GnashKey.h:153
bool isNativeRender()
Is this renderering natively.
Definition: RawFBDevice.h:98
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
void log_error(StringType msg, Args... args)
Definition: log.h:283
struct fb_var_screeninfo _varinfo
Definition: RawFBDevice.h:149
int getDepth()
Get the depth of the device.
Definition: RawFBDevice.h:69
bool attachWindow(GnashDevice::native_window_t window)
Definition: RawFBDevice.cpp:205
Definition: GnashDevice.h:40
size_t getWidth()
Get the width of the device.
Definition: RawFBDevice.h:73
@ r
Definition: GnashKey.h:164
std::unique_ptr< std::uint8_t > _offscreen_buffer
Definition: RawFBDevice.h:152
int getBlueSize()
Get the size of the Blue pixel.
Definition: RawFBDevice.h:87
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
#define CMAP_SIZE
Definition: RawFBDevice.h:43
std::uint8_t * getOffscreenBuffer()
Get the memory from an offscreen buffer to support Double Buffering.
Definition: RawFBDevice.h:113
struct fb_cmap _cmap
Definition: RawFBDevice.h:153
size_t getStride()
Query the system for all supported configs.
Definition: RawFBDevice.h:115
size_t getHeight()
Get the Height of the device.
Definition: RawFBDevice.h:74
virtual ~RawFBDevice()
Definition: RawFBDevice.cpp:81
void eventLoop(size_t passes)
Definition: RawFBDevice.cpp:269
Definition: RawFBDevice.h:46
int _fd
Definition: RawFBDevice.h:146
void createWindow(const char *name, int x, int y, int width, int height)
Definition: RawFBDevice.cpp:262
dtype_t getType()
Definition: RawFBDevice.h:56
size_t getFBMemSize()
Definition: RawFBDevice.h:116
std::uint8_t * _fbmem
Definition: RawFBDevice.h:150
#define DSOEXPORT
Definition: dsodefs.h:55
int getHandle()
Definition: RawFBDevice.h:117
std::uint8_t * getFBMemory()
Get the memory from the real framebuffer.
Definition: RawFBDevice.h:110
rtype_t
The list of supported renders that use devices.
Definition: GnashDevice.h:46
int(* key_func)(unsigned key)
Definition: RawFBDevice.h:166
bool swapBuffers()
Definition: RawFBDevice.cpp:235
@ width
Definition: klash_part.cpp:329
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
const char * getErrorString(int error)
Return a string with the error code as text, instead of a numeric value.
Definition: RawFBDevice.cpp:255
void(* init_func)()
Definition: RawFBDevice.h:163
std::int32_t x
Definition: BitmapData_as.cpp:434
@ b
Definition: GnashKey.h:148
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
void clear()
Clear the framebuffer memory.
Definition: RawFBDevice.cpp:69
native_window_t getDrawableWindow()
Definition: RawFBDevice.h:100
void dump()
Definition: RawFBDevice.cpp:275
void clear()
Clean up the font library.
Definition: fontlib.cpp:36
bool isSingleBuffered()
Is this device single buffered.
Definition: RawFBDevice.h:131