Gnash
0.8.10
|
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 | JpegInput |
Class for reading JPEG image data. More... | |
class | JpegOutput |
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. | |
std::auto_ptr< Input > | createGifInput (boost::shared_ptr< IOChannel > in) |
Create a GifInput and transfer ownership to the caller. | |
std::auto_ptr< Input > | createPngInput (boost::shared_ptr< IOChannel > in) |
Create a PngInput and transfer ownership to the caller. | |
std::auto_ptr< Output > | createPngOutput (boost::shared_ptr< IOChannel > o, size_t width, size_t height, int quality) |
template<typename T > | |
pixel_iterator< T > | begin (GnashImage &im) |
template<typename T > | |
pixel_iterator< T > | end (GnashImage &im) |
Image handling functions and classes.
pixel_iterator<T> gnash::image::begin | ( | GnashImage & | im | ) |
References gnash::image::GnashImage::begin(), and gnash::image::GnashImage::type().
Referenced by gnash::FltkGui::createWindow(), gnash::image::GnashImage::end(), and gnash::InputDevice::scanForDevices().
std::auto_ptr< Input > gnash::image::createGifInput | ( | boost::shared_ptr< IOChannel > | in | ) |
Create a GifInput and transfer ownership to the caller.
in | The IOChannel to read GIF data from. |
Referenced by gnash::image::Input::readImageData().
std::auto_ptr< Input > gnash::image::createPngInput | ( | boost::shared_ptr< IOChannel > | in | ) |
Create a PngInput and transfer ownership to the caller.
in | The IOChannel to read PNG data from. |
Referenced by gnash::image::Input::readImageData().
std::auto_ptr< Output > gnash::image::createPngOutput | ( | boost::shared_ptr< IOChannel > | o, |
size_t | width, | ||
size_t | height, | ||
int | quality | ||
) |
Referenced by gnash::image::Output::writeImageData().
pixel_iterator<T> gnash::image::end | ( | GnashImage & | im | ) |
References gnash::image::GnashImage::end(), and gnash::image::GnashImage::type().
Referenced by gnash::media::AudioDecoderSpeex::decode(), gnash::BitsReader::size(), gnash::BitsReader::setBuffer(), gnash::BitsReader::read_u16(), gnash::BitsReader::read_u32(), gnash::BitsReader::gotBits(), gnash::plugin::ExternalInterface::parseInvoke(), gnash::plugin::ExternalInterface::parseXML(), gnash::plugin::ExternalInterface::parseProperties(), gnash::plugin::ExternalInterface::parseArguments(), gnash::ExternalInterface::parseInvoke(), gnash::ExternalInterface::parseXML(), gnash::ExternalInterface::parseArguments(), gnash::FltkGui::createWindow(), KlashPart::KlashPart(), KlashPart::play(), gnash::renderer::openvg::preparepath(), gnash::renderer::openvg::Renderer_ovg::drawLine(), gnash::Renderer_cairo::add_path(), gnash::Renderer_cairo::draw_outlines(), gnash::Renderer_cairo::find_subshapes(), gnash::Renderer_cairo::draw_mask(), gnash::Renderer_cairo::add_paths(), gnash::renderer::opengl::interpolate(), gnash::renderer::opengl::Tesselator::feed(), gnash::renderer::opengl::Tesselator::tesselate(), gnash::rtmp::RTMP::sendPacket(), gnash::sound::sound_handler::fetchSamples(), gnash::TextField::replaceSelection(), gnash::TextField::setSelection(), and gnash::media::ffmpeg::VideoDecoderFfmpeg::pop().
DSOEXPORT void gnash::image::mergeAlpha | ( | ImageRGBA & | im, |
GnashImage::const_iterator | alphaData, | ||
const size_t | bufferLength | ||
) |
size_t gnash::image::numChannels | ( | ImageType | t | ) | [inline] |
References TYPE_RGBA, and TYPE_RGB.
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.
row | The index of the required row. |
References assert, gnash::image::GnashImage::height(), gnash::image::GnashImage::begin(), and gnash::image::GnashImage::stride().
Referenced by gnash::image::ImageRGBA::setPixel(), gnash::image::Input::readImageData(), gnash::image::Input::readSWFJpeg3(), and 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.
y | The index of the required row. |
References assert, gnash::image::GnashImage::height(), gnash::image::GnashImage::begin(), and gnash::image::GnashImage::stride().