Classes | Enumerations | Functions

gnash::image Namespace Reference

Image handling functions and classes. More...

Classes

class  GnashImage
 Base class for different types of bitmaps. More...
class  ImageRGB
 24-bit RGB bitmap More...
class  ImageRGBA
 32-bit RGBA bitmap More...
class  Input
 The base class for reading image data. More...
class  Output
class  GifInput
class  JpegInput
 Class for reading JPEG image data. More...
class  JpegOutput
class  PngInput
class  PngOutput
class  ARGB
 Adapt a pixel_iterator to use 32-bit values in ARGB byte order. More...
struct  pixel_iterator
 The pixel_iterator class is a pixel-level adaptor for a GnashImage. More...

Enumerations

enum  ImageType { GNASH_IMAGE_INVALID, TYPE_RGB, TYPE_RGBA }
 

The types of images handled in Gnash.

More...
enum  ImageLocation { GNASH_IMAGE_CPU = 1, GNASH_IMAGE_GPU }
 

The locations of images handled in Gnash.

More...

Functions

void mergeAlpha (ImageRGBA &im, GnashImage::const_iterator alphaData, const size_t bufferLength)
size_t numChannels (ImageType t)
GnashImage::iterator scanline (GnashImage &im, size_t row)
 Get a pointer to a given row of any image.
GnashImage::const_iterator scanline (const GnashImage &im, size_t row)
 Get a read-only pointer to a given row of any image.
template<typename T >
pixel_iterator< T > begin (GnashImage &im)
template<typename T >
pixel_iterator< T > end (GnashImage &im)

Detailed Description

Image handling functions and classes.


Enumeration Type Documentation

The locations of images handled in Gnash.

Enumerator:
GNASH_IMAGE_CPU 
GNASH_IMAGE_GPU 

The types of images handled in Gnash.

Enumerator:
GNASH_IMAGE_INVALID 
TYPE_RGB 
TYPE_RGBA 

Function Documentation

template<typename T >
pixel_iterator<T> gnash::image::begin ( GnashImage &  im  ) 
template<typename T >
pixel_iterator<T> gnash::image::end ( GnashImage &  im  ) 
void gnash::image::mergeAlpha ( ImageRGBA &  im,
GnashImage::const_iterator  alphaData,
const size_t  bufferLength 
)
size_t gnash::image::numChannels ( ImageType  t  )  [inline]

References TYPE_RGB, and TYPE_RGBA.

Referenced by gnash::image::GnashImage::channels().

GnashImage::iterator gnash::image::scanline ( GnashImage &  im,
size_t  row 
) [inline]

Get a pointer to a given row of any image.

Parameters:
row The index of the required row.
Returns:
A pointer to the first byte of the specified row.

References gnash::image::GnashImage::begin(), gnash::image::GnashImage::height(), and gnash::image::GnashImage::stride().

Referenced by gnash::image::JpegInput::readSWFJpeg2WithTables().

GnashImage::const_iterator gnash::image::scanline ( const GnashImage &  im,
size_t  row 
) [inline]

Get a read-only pointer to a given row of any image.

Parameters:
y The index of the required row.
Returns:
A read-only pointer to the first byte of the specified row.

References gnash::image::GnashImage::begin(), gnash::image::GnashImage::height(), and gnash::image::GnashImage::stride().