Go to the documentation of this file.
19 #ifndef GNASH_RENDER_HANDLER_DIRECTFB_H
20 #define GNASH_RENDER_HANDLER_DIRECTFB_H
32 #ifdef HAVE_DIRECTFB_H
33 # include <directfb/directfb.h>
52 void init(
float x,
float y);
53 CachedBitmap *createCachedBitmap(std::unique_ptr<image::GnashImage> im);
55 void world_to_pixel(
int&
x,
int&
y,
float world_x,
float world_y);
60 void begin_display(
const gnash::rgba&,
int,
int,
float,
68 void drawLine(
const std::vector<point>& coords,
const rgba&
fill,
72 void drawPoly(
const point* corners,
size_t corner_count,
79 void set_antialiased(
bool enable);
80 void begin_submit_mask();
81 void end_submit_mask();
85 void set_scale(
float xscale,
float yscale);
90 void endInternalRender();
93 bool initTestBuffer(
unsigned width,
unsigned height);
100 unsigned char *_testBuffer;
109 #endif // __RENDER_HANDLER_DIRECTFB_H__
void drawGlyph(const SWF::ShapeRecord &rec, const rgba &c, const SWFMatrix &mat)
Draws a glyph (font character).
Definition: Renderer_DirectFB.cpp:193
void world_to_pixel(int &x, int &y, float world_x, float world_y)
Definition: Renderer_DirectFB.cpp:102
@ height
Definition: klash_part.cpp:329
void set_antialiased(bool enable)
Definition: Renderer_DirectFB.cpp:200
T getMaxY() const
Get max Y ordinate.
Definition: Range2d.h:633
std::int32_t get_x_max() const
Get the x coordinate of the right-down corner.
Definition: SWFRect.h:122
std::int32_t y
Definition: BitmapData_as.cpp:435
A basic RGBA type.
Definition: RGBA.h:36
SWFMatrix & invert()
Invert this SWFMatrix and return the result.
Definition: SWFMatrix.cpp:288
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
T getMaxX() const
Get max X ordinate.
Definition: Range2d.h:613
bool is_null() const
returns true if this is a NULL rectangle
Definition: SWFRect.h:75
std::int32_t get_y_max() const
Get the y coordinate of the right-down corner.
Definition: SWFRect.h:136
Base class for different types of bitmaps.
Definition: GnashImage.h:78
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
Base class for render handlers.
Definition: Renderer.h:189
Renderer * startInternalRender(gnash::image::GnashImage &)
Setup the renderer to draw to an internal buffer.
Definition: Renderer_DirectFB.cpp:257
~Renderer_DirectFB()
Definition: Renderer_DirectFB.cpp:74
@ worldRange
A WORLD range2d is a range including all points on the plane.
Definition: Range2d.h:52
void drawShape(const gnash::SWF::ShapeRecord &, const gnash::Transform &)
Definition: Renderer_DirectFB.cpp:182
T getMinX() const
Get min X ordinate.
Definition: Range2d.h:603
bool is_world() const
TODO: deprecate this 'world' concept.
Definition: SWFRect.h:87
void set_invalidated_regions(const InvalidatedRanges &ranges)
Sets the update region (called prior to begin_display).
Definition: Renderer_DirectFB.cpp:236
void disable_mask()
Definition: Renderer_DirectFB.cpp:220
bool isNull() const
Returns true if this is the NULL Range2d.
Definition: Range2d.h:181
Renderer_DirectFB()
Definition: Renderer_DirectFB.cpp:70
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
void apply_mask()
Definition: Renderer_DirectFB.cpp:215
@ t
Definition: GnashKey.h:166
void set_scale(float xscale, float yscale)
Sets the x/y scale for the movie
Definition: Renderer_DirectFB.cpp:225
bool isWorld() const
Returns true if this is the WORLD Range2d.
Definition: Range2d.h:200
VGPaint fill
Definition: testr_gtk.cpp:86
std::int32_t get_x_min() const
Get the x coordinate of the left-up corner.
Definition: SWFRect.h:115
void transform(geometry::Point2d &p) const
Transform a given point by our SWFMatrix.
Definition: SWFMatrix.cpp:99
T getMinY() const
Get min Y ordinate.
Definition: Range2d.h:623
std::string description() const
Return a description of this renderer.
Definition: Renderer_DirectFB.h:48
void endInternalRender()
Finish internal rendering.
Definition: Renderer_DirectFB.cpp:262
@ p
Definition: GnashKey.h:162
void begin_display(const gnash::rgba &, int, int, float, float, float, float)
Bracket the displaying of a frame from a movie.
Definition: Renderer_DirectFB.cpp:156
@ nullRange
A NULL range is a range enclosing NO points.
Definition: Range2d.h:43
Definition: SWFMatrix.h:54
2D Point class
Definition: Point2d.h:39
void drawPoly(const point *corners, size_t corner_count, const rgba &fill, const rgba &outline, const SWFMatrix &mat, bool masked)
Definition: Renderer_DirectFB.cpp:175
void end_submit_mask()
Definition: Renderer_DirectFB.cpp:211
void drawLine(const std::vector< point > &coords, const rgba &fill, const SWFMatrix &mat)
Draw a line-strip directly, using a thin, solid line.
Definition: Renderer_DirectFB.cpp:169
void drawVideoFrame(gnash::image::GnashImage *frame, const gnash::Transform &tx, const gnash::SWFRect *bounds, bool smooth)
Draws a video frame.
Definition: Renderer_DirectFB.cpp:92
unsigned int getBitsPerPixel()
void init(float x, float y)
Definition: Renderer_DirectFB.cpp:80
@ f
Definition: GnashKey.h:152
@ c
Definition: GnashKey.h:149
CachedBitmap * createCachedBitmap(std::unique_ptr< image::GnashImage > im)
Given an image, returns a pointer to a CachedBitmap class that can later be passed to FillStyleX_bitm...
Definition: Renderer_DirectFB.cpp:86
#define DSOEXPORT
Definition: dsodefs.h:55
void begin_submit_mask()
Definition: Renderer_DirectFB.cpp:206
Holds information needed to draw a shape.
Definition: ShapeRecord.h:127
gnash::point pixel_to_world(int, int)
Definition: Renderer_DirectFB.cpp:145
Definition: Renderer_DirectFB.h:46
@ width
Definition: klash_part.cpp:329
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
void end_display()
Definition: Renderer_DirectFB.cpp:163
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
std::int32_t x
Definition: BitmapData_as.cpp:434
Renderer * create_handler(const char *pixelformat)
Definition: Renderer_DirectFB.cpp:267
std::int32_t get_y_min() const
Get the y coordinate of the left-up corner.
Definition: SWFRect.h:129
bool initTestBuffer(unsigned width, unsigned height)
Definition: Renderer_DirectFB.cpp:241