Go to the documentation of this file.
20 #ifndef BACKEND_RENDER_HANDLER_AGG_H
21 #define BACKEND_RENDER_HANDLER_AGG_H
33 unsigned char *_testBuffer;
41 if ( _testBuffer ) free(_testBuffer);
55 unsigned char *tmp =
static_cast<unsigned char *
>(realloc(_testBuffer, size));
63 memset(_testBuffer, 0, size);
64 printf(
"Renderer Test memory at: %p\n", _testBuffer);
94 #endif // BACKEND_RENDER_HANDLER_AGG_H
unsigned int getBitsPerPixel() const
Definition: Renderer_agg.h:50
VGPath path
Definition: testr_gtk.cpp:84
@ CAP_NONE
Definition: LineStyle.h:39
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
pixel_iterator< T > begin(GnashImage &im)
Definition: ImageIterators.h:191
@ height
Definition: klash_part.cpp:329
@ d
Definition: GnashKey.h:150
std::uint8_t m_r
Definition: RGBA.h:113
@ QUALITY_BEST
Definition: GnashEnums.h:39
@ T
Definition: GnashKey.h:132
RenderImages _render_images
Definition: Renderer.h:592
std::shared_ptr< GnashVaapiImageProxy > RenderImage
Definition: Renderer.h:349
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
@ i
Definition: GnashKey.h:155
#define LOG_ONCE(x)
Definition: log.h:49
A basic RGBA type.
Definition: RGBA.h:36
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
bool is_little_endian_host()
Definition: Renderer_agg.cpp:2030
FileType
Definition: GnashEnums.h:25
std::vector< geometry::Range2d< int > > ClipBounds
Definition: OpenVGRenderer.cpp:72
geometry::Range2d< int > world_to_pixel(const geometry::Range2d< int > &wb) const
Definition: Renderer.h:388
std::uint8_t m_g
Definition: RGBA.h:113
Base class for render handlers.
Definition: Renderer.h:189
@ s
Definition: GnashKey.h:165
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
@ CAP_SQUARE
Definition: LineStyle.h:40
@ worldRange
A WORLD range2d is a range including all points on the plane.
Definition: Range2d.h:52
@ QUALITY_MEDIUM
Definition: GnashEnums.h:37
Renderer_agg_base()
Definition: Renderer_agg.h:37
Subshape::Paths Paths
Definition: ShapeRecord.h:131
@ JOIN_BEVEL
Definition: LineStyle.h:45
double twipsToPixels(int i)
Definition: GnashNumeric.h:97
void log_error(StringType msg, Args... args)
Definition: log.h:283
Subshape::LineStyles LineStyles
Definition: ShapeRecord.h:130
Range2d< T > Intersection(const Range2d< T > &r1, const Range2d< T > &r2)
Return a rectangle being the intersetion of the two rectangles.
Definition: Range2d.h:762
geometry::Range2d< int > pixel_to_world(const geometry::Range2d< int > &pixelbounds) const
Definition: Renderer.h:399
@ t
Definition: GnashKey.h:166
const VGfloat color[4]
Definition: testr_gtk.cpp:82
VGPaint fill
Definition: testr_gtk.cpp:86
Subshape::FillStyles FillStyles
Definition: ShapeRecord.h:129
virtual unsigned int getBytesPerPixel() const =0
void for_each(C &container, R(T::*pmf)(const A &), const A &arg)
Definition: Renderer_ogl.cpp:690
@ a
Definition: GnashKey.h:147
@ CAP_ROUND
Definition: LineStyle.h:38
geometry::SnappingRanges2d< std::int32_t > InvalidatedRanges
Standard snapping 2d ranges type for invalidated bounds calculation
Definition: snappingrange.h:655
type
Definition: GnashKey.h:330
virtual geometry::Range2d< int > world_to_pixel(const SWFRect &worldbounds) const =0
Converts world coordinates to pixel coordinates.
@ p
Definition: GnashKey.h:162
geometry::Point2d point
Definition: Point2d.h:143
@ nullRange
A NULL range is a range enclosing NO points.
Definition: Range2d.h:43
@ _1
Definition: GnashKey.h:95
virtual ~Renderer_agg_base()
Definition: Renderer_agg.h:40
@ JOIN_ROUND
Definition: LineStyle.h:44
DSOEXPORT const char * agg_detect_pixel_format(unsigned int rofs, unsigned int rsize, unsigned int gofs, unsigned int gsize, unsigned int bofs, unsigned int bsize, unsigned int bpp)
Definition: Renderer_agg.cpp:2109
@ JOIN_MITER
Definition: LineStyle.h:46
Definition: SWFMatrix.h:54
std::uint8_t m_a
Definition: RGBA.h:113
@ QUALITY_HIGH
Definition: GnashEnums.h:38
@ f
Definition: GnashKey.h:152
Definition: Renderer_agg.h:30
@ c
Definition: GnashKey.h:149
@ TYPE_RGB
Definition: GnashImage.h:49
@ QUALITY_LOW
Definition: GnashEnums.h:36
#define DSOEXPORT
Definition: dsodefs.h:55
std::uint8_t m_b
Definition: RGBA.h:113
Quality
Definition: GnashEnums.h:35
virtual bool initTestBuffer(unsigned width, unsigned height)
Definition: Renderer_agg.h:52
@ GNASH_IMAGE_GPU
Definition: GnashImage.h:57
void transform(const SWFMatrix &mat)
Transform all path coordinates according to the given SWFMatrix.
Definition: Geometry.h:443
@ width
Definition: klash_part.cpp:329
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
@ u
Definition: GnashKey.h:167
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
@ b
Definition: GnashKey.h:148
static DSOEXPORT void writeImageData(FileType type, std::shared_ptr< gnash::IOChannel > out, const GnashImage &image, int quality)
Write the given image to the given IOChannel in a specified format.
Definition: GnashImage.cpp:175
@ e
Definition: GnashKey.h:151
@ TYPE_RGBA
Definition: GnashImage.h:50
void clear()
Clean up the font library.
Definition: fontlib.cpp:36
void setWorld()
Resets to one range with world flags.
Definition: snappingrange.h:303
bool Intersect(const Range2d< T > &r1, const Range2d< T > &r2)
Return true of the two ranges intersect (boundaries included)
Definition: Range2d.h:743