|
Gnash
0.8.11dev
|
#include <RawFBDevice.h>
Public Member Functions | |
| RawFBDevice () | |
| RawFBDevice (int) | |
| RawFBDevice (int argc, char *argv[]) | |
| virtual | ~RawFBDevice () |
| dtype_t | getType () |
| bool | initDevice (int argc, char *argv[]) |
| bool | attachWindow (GnashDevice::native_window_t window) |
| const char * | getErrorString (int error) |
| Return a string with the error code as text, instead of a numeric value. More... | |
| int | getDepth () |
| Get the depth of the device. More... | |
| size_t | getWidth () |
| Get the width of the device. More... | |
| size_t | getHeight () |
| Get the Height of the device. More... | |
| bool | supportsRenderer (GnashDevice::rtype_t) |
| Is the specified renderer supported by this hardware ? More... | |
| bool | isBufferDestroyed () |
| Are buffers destroyed ? More... | |
| int | getID () |
| Get the window ID handle. More... | |
| int | getRedSize () |
| Get the size of the Red pixel. More... | |
| int | getGreenSize () |
| Get the size of the Green pixel. More... | |
| int | getBlueSize () |
| Get the size of the Blue pixel. More... | |
| bool | isNativeRender () |
| Is this renderering natively. More... | |
| native_window_t | getDrawableWindow () |
| void | createWindow (const char *name, int x, int y, int width, int height) |
| std::uint8_t * | getFBMemory () |
| Get the memory from the real framebuffer. More... | |
| std::uint8_t * | getOffscreenBuffer () |
| Get the memory from an offscreen buffer to support Double Buffering. More... | |
| size_t | getStride () |
| Query the system for all supported configs. More... | |
| size_t | getFBMemSize () |
| int | getHandle () |
| void | eventLoop (size_t passes) |
| bool | setGrayscaleLUT8 () |
| bool | isSingleBuffered () |
| Is this device single buffered. More... | |
| bool | swapBuffers () |
| void | dump () |
Public Member Functions inherited from gnash::renderer::GnashDevice | |
| GnashDevice (int argc, char *argv[]) | |
| GnashDevice () | |
| virtual | ~GnashDevice () |
| virtual bool | bindClient (GnashDevice::rtype_t) |
Protected Member Functions | |
| void | clear () |
| Clear the framebuffer memory. More... | |
Protected Attributes | |
| int | _fd |
| std::string | _filespec |
| struct fb_fix_screeninfo | _fixinfo |
| struct fb_var_screeninfo | _varinfo |
| std::uint8_t * | _fbmem |
| std::unique_ptr< std::uint8_t > | _offscreen_buffer |
| struct fb_cmap | _cmap |
Additional Inherited Members | |
Public Types inherited from gnash::renderer::GnashDevice | |
| enum | rtype_t { OPENVG, OPENGL, OPENGLES1, OPENGLES2, XORG, VAAPI } |
| The list of supported renders that use devices. More... | |
| enum | dtype_t { GNASH_NODEV, EGL, DIRECTFB, X11, RAWFB } |
| The list of supported device types. More... | |
| typedef long | native_window_t |
| gnash::renderer::rawfb::RawFBDevice::RawFBDevice | ( | ) |
Referenced by RawFBDevice().
| gnash::renderer::rawfb::RawFBDevice::RawFBDevice | ( | int | ) |
References _, _cmap, _fbmem, _fd, initDevice(), gnash::log_error(), and RawFBDevice().
| gnash::renderer::rawfb::RawFBDevice::RawFBDevice | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
virtual |
References _, _fbmem, _fd, _offscreen_buffer, and gnash::log_debug().
|
virtual |
Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.
Implements gnash::renderer::GnashDevice.
References _fbmem, _fixinfo, _offscreen_buffer, GNASH_REPORT_FUNCTION, isSingleBuffered(), and gnash::log_error().
|
protected |
Clear the framebuffer memory.
References _fbmem, _fixinfo, _offscreen_buffer, and GNASH_REPORT_FUNCTION.
| void gnash::renderer::rawfb::RawFBDevice::createWindow | ( | const char * | name, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
References GNASH_REPORT_FUNCTION.
| void gnash::renderer::rawfb::RawFBDevice::dump | ( | ) |
References _, _fixinfo, _varinfo, data, gnash::log_debug(), gnash::log_error(), gnash::log_unimpl(), and gnash::amf::write().
| void gnash::renderer::rawfb::RawFBDevice::eventLoop | ( | size_t | passes | ) |
Start an RAWFB event loop. This is only used by testing. Note that calling this function blocks until the specified number of events have been handled. The first 5 are used up by creating the window.
| passes | the number of events to process before returning. |
References GNASH_REPORT_FUNCTION.
|
inlinevirtual |
Get the size of the Blue pixel.
Implements gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Get the depth of the device.
Implements gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inline |
|
virtual |
Return a string with the error code as text, instead of a numeric value.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Get the memory from the real framebuffer.
Reimplemented from gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Reimplemented from gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Get the size of the Green pixel.
Implements gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inline |
Referenced by gnash::gui::FBAggGlue::init(), and main().
|
inlinevirtual |
Get the Height of the device.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Get the window ID handle.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Get the memory from an offscreen buffer to support Double Buffering.
Reimplemented from gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Get the size of the Red pixel.
Implements gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Query the system for all supported configs.
Get the stride of the device
Implements gnash::renderer::GnashDevice.
Referenced by gnash::gui::FBAggGlue::createRenderHandler().
|
inlinevirtual |
Get the type of the instatiated device. Since the renderer has a single value for the supported device, this is used to see which device has been loaded.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Get the width of the device.
Implements gnash::renderer::GnashDevice.
|
virtual |
Initialize GNASH Device layer. This mostly just initializes all the private data.
Implements gnash::renderer::GnashDevice.
References _, _fd, _fixinfo, _varinfo, GNASH_REPORT_FUNCTION, gnash::log_debug(), and gnash::log_error().
Referenced by RawFBDevice().
|
inlinevirtual |
Are buffers destroyed ?
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Is this renderering natively.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
Is this device single buffered.
Implements gnash::renderer::GnashDevice.
References gnash::fontlib::clear().
Referenced by attachWindow(), and gnash::gui::FBAggGlue::createRenderHandler().
| bool gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8 | ( | ) |
For 8 bit (palette / LUT) modes, sets a grayscale palette. This GUI currently does not support palette modes.
References _, _cmap, _fd, gnash::key::b, CMAP_SIZE, gnash::key::g, GNASH_REPORT_FUNCTION, gnash::key::i, gnash::log_debug(), gnash::log_error(), gnash::key::r, and TO_16BIT.
Referenced by gnash::gui::FBAggGlue::init().
|
inlinevirtual |
Is the specified renderer supported by this hardware ?
Implements gnash::renderer::GnashDevice.
|
virtual |
Reimplemented from gnash::renderer::GnashDevice.
References _fbmem, _fixinfo, and _offscreen_buffer.
|
protected |
Referenced by RawFBDevice(), and setGrayscaleLUT8().
|
protected |
Referenced by attachWindow(), clear(), RawFBDevice(), swapBuffers(), and ~RawFBDevice().
|
protected |
Referenced by initDevice(), RawFBDevice(), setGrayscaleLUT8(), and ~RawFBDevice().
|
protected |
|
protected |
Referenced by attachWindow(), clear(), dump(), initDevice(), and swapBuffers().
|
protected |
Referenced by attachWindow(), clear(), swapBuffers(), and ~RawFBDevice().
|
protected |
Referenced by dump(), and initDevice().
1.8.12