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; };
93 int getRedOffset() {
return _varinfo.red.offset; };
94 int getGreenOffset() {
return _varinfo.green.offset; };
95 int getBlueOffset() {
return _varinfo.blue.offset; };
108 void createWindow(
const char *name,
int x,
int y,
int width,
int height);
126 void eventLoop(
size_t passes);
130 bool setGrayscaleLUT8();
133 #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
160 int fakefb_ioctl(
int fd,
int request,
void *
data);
172 #endif // end of __RAWFB_DEVICE_H__