Gnash
0.8.11dev
|
#include <DirectFBDevice.h>
Public Member Functions | |
DirectFBDevice () | |
DirectFBDevice (int argc, char *argv[]) | |
~DirectFBDevice () | |
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... | |
size_t | getWidth () |
Get the width of the device. More... | |
size_t | getHeight () |
Get the Height of the device. More... | |
int | getDepth () |
Get the depth of the device. 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 | isSingleBuffered () |
Is this device single buffered. More... | |
int | getID () |
Get the window ID handle. More... | |
bool | isBufferDestroyed () |
Are buffers destroyed ? More... | |
int | getSurfaceID () |
virtual bool | supportsRenderer (rtype_t) |
Is the specified renderer supported by this hardware ? More... | |
int | getDepth (DFBSurfacePixelFormat format) |
size_t | getWidth (IDirectFBSurface *surface) |
size_t | getHeight (IDirectFBSurface *surface) |
bool | isSurfaceBackBuffered () |
int | getContextID () |
bool | isContextSingleBuffered () |
bool | isContextBackBuffered () |
bool | isNativeRender () |
Is this renderering natively. More... | |
size_t | getVerticalRes () |
size_t | getVerticalRes (IDirectFBScreen *screen) |
size_t | getHorzRes () |
size_t | getHorzRes (IDirectFBScreen *screen) |
void | printDirectFB () |
print the data in a DirectFB More... | |
void | printDirectFB (IDirectFB *fb) |
print the data in a DirectFB More... | |
void | printFBSurface () |
print the data in a DirectFBSurface More... | |
void | printFBSurface (IDirectFBSurface *surface) |
print the data in a DirectFBSurface More... | |
void | printFBFont () |
print the data in a DirectFBFont More... | |
void | printFBFont (IDirectFBFont *font) |
print the data in a DirectFBFont More... | |
void | printFBDisplay () |
print the data in a DirectFBDisplay More... | |
void | printFBDisplay (IDirectFBDisplayLayer *display) |
void | printFBLayer () |
void | printFBDisplayLayer (IDirectFBDisplayLayer *layer) |
void | printFBScreen () |
print the data in a DirectFBFont More... | |
void | printFBScreen (IDirectFBScreen *screen) |
void | printFBInputDevice () |
print the data in a DirectFBInputDevice More... | |
void | printFBInputDevice (IDirectFBInputDevice *input) |
print the data in a DirectFBInputDevice More... | |
![]() | |
GnashDevice (int argc, char *argv[]) | |
GnashDevice () | |
virtual | ~GnashDevice () |
virtual size_t | getStride ()=0 |
Query the system for all supported configs. More... | |
virtual std::uint8_t * | getFBMemory () |
Get the memory from the real framebuffer. More... | |
virtual std::uint8_t * | getOffscreenBuffer () |
Get the memory from an offscreen buffer to support Double Buffering. More... | |
virtual size_t | getFBMemSize () |
virtual bool | bindClient (GnashDevice::rtype_t) |
virtual bool | swapBuffers () |
Protected Member Functions | |
void | printAccelerationMask (DFBAccelerationMask mask) |
void | printSurfaceBlittingFlags (DFBSurfaceBlittingFlags flags) |
void | printSurfaceDrawingFlags (DFBSurfaceDrawingFlags flags) |
void | printGrapbicsDriverIndo (DFBGraphicsDriverInfo *driver) |
void | printSurfaceDescriptionFlags (DFBSurfaceDescriptionFlags flags) |
void | printSurfaceCapabilities (DFBSurfaceCapabilities caps) |
void | printSurfacePixelFormat (DFBSurfacePixelFormat format) |
void | printDisplayLayerTypeFlags (DFBDisplayLayerTypeFlags flags) |
void | printDisplayLayerCapabilities (DFBDisplayLayerCapabilities caps) |
void | printfScreenCapabilities (DFBScreenCapabilities caos) |
void | printDisplayLayerConfig (DFBDisplayLayerConfig *config) |
void | printDisplayLayerBufferMode (DFBDisplayLayerBufferMode mode) |
void | printColor (DFBColor color) |
Protected Attributes | |
IDirectFB * | _dfb |
IDirectFBSurface * | _surface |
IDirectFBInputDevice * | _keyboard |
IDirectFBEventBuffer * | _keybuffer |
IDirectFBImageProvider * | _provider |
IDirectFBFont * | _font |
IDirectFBDisplayLayer * | _layer |
IDirectFBScreen * | _screen |
Additional Inherited Members | |
![]() | |
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::directfb::DirectFBDevice::DirectFBDevice | ( | ) |
gnash::renderer::directfb::DirectFBDevice::DirectFBDevice | ( | int | argc, |
char * | argv[] | ||
) |
References _, GNASH_REPORT_FUNCTION, initDevice(), and gnash::log_error().
gnash::renderer::directfb::DirectFBDevice::~DirectFBDevice | ( | ) |
|
virtual |
Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.
Implements gnash::renderer::GnashDevice.
References GNASH_REPORT_FUNCTION.
Referenced by getType().
|
inlinevirtual |
Get the size of the Blue pixel.
Implements gnash::renderer::GnashDevice.
|
inline |
References _layer.
|
inlinevirtual |
Get the depth of the device.
Implements gnash::renderer::GnashDevice.
References _surface.
Referenced by supportsRenderer().
int gnash::renderer::directfb::DirectFBDevice::getDepth | ( | DFBSurfacePixelFormat | format | ) |
|
virtual |
Return a string with the error code as text, instead of a numeric value.
Implements gnash::renderer::GnashDevice.
Referenced by getType(), initDevice(), and printFBScreen().
|
inlinevirtual |
Get the size of the Green pixel.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
|
inline |
|
inline |
References _screen.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Get the size of the Red pixel.
Implements gnash::renderer::GnashDevice.
|
inline |
|
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.
References attachWindow(), gnash::renderer::GnashDevice::DIRECTFB, getErrorString(), and initDevice().
|
inline |
References _screen.
|
inline |
|
inlinevirtual |
|
inline |
|
virtual |
Initialize GNASH Device layer. This mostly just initializes all the private data.
Implements gnash::renderer::GnashDevice.
References _, _dfb, _font, _keyboard, _keybuffer, _layer, _provider, _screen, _surface, getErrorString(), GNASH_REPORT_FUNCTION, gnash::log_error(), x, and y.
Referenced by DirectFBDevice(), and getType().
|
inlinevirtual |
Are buffers destroyed ?
Implements gnash::renderer::GnashDevice.
|
inline |
References _layer, and gnash::config.
|
inline |
References _layer, and gnash::config.
|
inlinevirtual |
Is this renderering natively.
Implements gnash::renderer::GnashDevice.
|
inlinevirtual |
|
inline |
References _surface.
|
protected |
Referenced by printDirectFB(), printFBInputDevice(), and printFBSurface().
|
protected |
Referenced by printFBInputDevice().
|
inline |
void gnash::renderer::directfb::DirectFBDevice::printDirectFB | ( | IDirectFB * | fb | ) |
print the data in a DirectFB
References _, _dfb, gnash::log_error(), printAccelerationMask(), printGrapbicsDriverIndo(), printSurfaceBlittingFlags(), and printSurfaceDrawingFlags().
|
protected |
Referenced by printDisplayLayerConfig(), and printFBInputDevice().
|
protected |
Referenced by printFBDisplay(), and printFBInputDevice().
|
protected |
References printDisplayLayerBufferMode(), printSurfaceCapabilities(), and printSurfacePixelFormat().
Referenced by printFBInputDevice().
|
protected |
Referenced by printFBDisplay(), and printFBInputDevice().
|
inline |
print the data in a DirectFBDisplay
References _layer.
void gnash::renderer::directfb::DirectFBDevice::printFBDisplay | ( | IDirectFBDisplayLayer * | display | ) |
References printDisplayLayerCapabilities(), and printDisplayLayerTypeFlags().
void gnash::renderer::directfb::DirectFBDevice::printFBDisplayLayer | ( | IDirectFBDisplayLayer * | layer | ) |
Referenced by printFBLayer().
|
inline |
print the data in a DirectFBFont
References _font.
void gnash::renderer::directfb::DirectFBDevice::printFBFont | ( | IDirectFBFont * | font | ) |
print the data in a DirectFBFont
References _font.
|
inline |
print the data in a DirectFBInputDevice
References _keyboard, color, gnash::config, printAccelerationMask(), printColor(), printDisplayLayerBufferMode(), printDisplayLayerCapabilities(), printDisplayLayerConfig(), printDisplayLayerTypeFlags(), printfScreenCapabilities(), printGrapbicsDriverIndo(), printSurfaceBlittingFlags(), printSurfaceCapabilities(), printSurfaceDescriptionFlags(), printSurfaceDrawingFlags(), and printSurfacePixelFormat().
void gnash::renderer::directfb::DirectFBDevice::printFBInputDevice | ( | IDirectFBInputDevice * | input | ) |
print the data in a DirectFBInputDevice
|
inline |
References _layer, and printFBDisplayLayer().
|
inline |
print the data in a DirectFBFont
References _screen.
void gnash::renderer::directfb::DirectFBDevice::printFBScreen | ( | IDirectFBScreen * | screen | ) |
References _, getErrorString(), gnash::log_error(), printfScreenCapabilities(), x, and y.
|
inline |
print the data in a DirectFBSurface
References _surface.
void gnash::renderer::directfb::DirectFBDevice::printFBSurface | ( | IDirectFBSurface * | surface | ) |
print the data in a DirectFBSurface
References _surface, printAccelerationMask(), printSurfaceCapabilities(), x, and y.
|
protected |
Referenced by printFBInputDevice(), and printFBScreen().
|
protected |
Referenced by printDirectFB(), and printFBInputDevice().
|
protected |
Referenced by printDirectFB(), and printFBInputDevice().
|
protected |
Referenced by printDisplayLayerConfig(), printFBInputDevice(), and printFBSurface().
|
protected |
Referenced by printFBInputDevice().
|
protected |
Referenced by printDirectFB(), and printFBInputDevice().
|
protected |
Referenced by printDisplayLayerConfig(), and printFBInputDevice().
|
inlinevirtual |
Is the specified renderer supported by this hardware ?
Implements gnash::renderer::GnashDevice.
References getDepth().
|
protected |
Referenced by initDevice(), printDirectFB(), and ~DirectFBDevice().
|
protected |
Referenced by initDevice(), printFBFont(), and ~DirectFBDevice().
|
protected |
Referenced by initDevice(), and printFBInputDevice().
|
protected |
Referenced by initDevice(), and ~DirectFBDevice().
|
protected |
|
protected |
Referenced by initDevice(), and ~DirectFBDevice().
|
protected |
Referenced by getHorzRes(), getSurfaceID(), getVerticalRes(), initDevice(), and printFBScreen().
|
protected |
Referenced by getDepth(), getHeight(), getWidth(), initDevice(), isSingleBuffered(), isSurfaceBackBuffered(), printFBSurface(), and ~DirectFBDevice().