Go to the documentation of this file.
19 #ifndef GNASH_OPENVG_BITMAP_H
20 #define GNASH_OPENVG_BITMAP_H
51 bool disposed()
const {
return !_image.get(); }
63 std::uint8_t *
getData()
const {
return _image->begin(); }
79 std::unique_ptr<image::GnashImage> _image;
80 VGImageFormat _pixel_format;
90 #endif // __RENDER_OPENVG_BITMAP_H__
bitmap_wrap_mode
Set line and fill styles for mesh & line_strip rendering.
Definition: OpenVGBitmap.h:43
size_t width() const
Get the image's width.
Definition: GnashImage.h:126
virtual size_t stride() const
Get the pitch of the image buffer.
Definition: GnashImage.h:112
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
A basic RGBA type.
Definition: RGBA.h:36
~OpenVGBitmap()
Definition: OpenVGBitmap.cpp:127
SWFMatrix & invert()
Invert this SWFMatrix and return the result.
Definition: SWFMatrix.cpp:288
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void dispose()
Free the memory associated with this CachedBitmap.
Definition: OpenVGBitmap.h:50
Base class for different types of bitmaps.
Definition: GnashImage.h:78
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
OpenVGBitmap * createLinearBitmap(float x0, float y0, float x1, float y1, const SWFCxForm &cx, const GradientFill::GradientRecords &records, const VGPaint paint)
Definition: OpenVGBitmap.cpp:209
bool disposed() const
Whether the CachedBitmap has been disposed.
Definition: OpenVGBitmap.h:51
std::int32_t c() const
Definition: SWFMatrix.h:87
void log_error(StringType msg, Args... args)
Definition: log.h:283
ImageType type() const
Return the ImageType of the image.
Definition: GnashImage.h:91
virtual image::GnashImage & image()=0
Return a GnashImage for manipulation.
int getHeight()
Definition: OpenVGBitmap.h:62
const VGfloat color[4]
Definition: testr_gtk.cpp:82
std::int32_t a() const
Definition: SWFMatrix.h:79
std::int32_t d() const
Definition: SWFMatrix.h:91
std::int32_t b() const
Definition: SWFMatrix.h:83
OpenVGBitmap(VGPaint paint)
Definition: OpenVGBitmap.cpp:41
VGPaint & vgimage()
Definition: OpenVGBitmap.h:57
std::int32_t tx() const
Definition: SWFMatrix.h:95
@ WRAP_PAD
Definition: OpenVGBitmap.h:43
@ WRAP_FILL
Definition: OpenVGBitmap.h:43
OpenVGBitmap * applyPatternBitmap(const gnash::SWFMatrix &matrix, bitmap_wrap_mode mode, CachedBitmap *bitmap, VGPaint paint)
Definition: OpenVGBitmap.cpp:272
std::vector< GradientRecord > GradientRecords
Definition: FillStyle.h:176
int getWidth()
Definition: OpenVGBitmap.h:61
Definition: SWFMatrix.h:54
@ j
Definition: GnashKey.h:156
VGPaint paint
Definition: testr_gtk.cpp:85
@ WRAP_REFLECT
Definition: OpenVGBitmap.h:43
Definition: OpenVGBitmap.h:40
image::GnashImage & image()
Return a GnashImage for manipulation.
Definition: OpenVGBitmap.h:53
std::uint8_t * getData() const
Definition: OpenVGBitmap.h:63
@ c
Definition: GnashKey.h:149
@ TYPE_RGB
Definition: GnashImage.h:49
OpenVGBitmap * createRadialBitmap(float x0, float y0, float x1, float y1, float radial, const SWFCxForm &cx, const GradientFill::GradientRecords &records, VGPaint paint)
Definition: OpenVGBitmap.cpp:154
virtual iterator begin()
Access the raw data.
Definition: GnashImage.h:154
std::int32_t ty() const
Definition: SWFMatrix.h:99
VGPaint getFillPaint() const
Definition: OpenVGBitmap.h:60
@ WRAP_REPEAT
Definition: OpenVGBitmap.h:43
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
static const char * getErrorString(VGErrorCode error)
Definition: OpenVGRenderer.cpp:1583
@ TYPE_RGBA
Definition: GnashImage.h:50
size_t height() const
Get the image's width.
Definition: GnashImage.h:133