image Namespace Reference

Handy image utilities for RGB surfaces. More...


Classes

class  image_base
 Base class for different types of images. More...
class  rgb
 24-bit RGB image. Packed data, red byte first (RGBRGB...) More...
class  rgba
 32-bit RGBA image. Packed data, red byte first (RGBARGBA...) More...
class  alpha
 8-bit alpha image. More...
class  yuv

Enumerations

enum  filter_type {
  FILTER0 = 0, BOX = FILTER0, TRIANGLE, BELL,
  B_SPLINE, SOME_CUBIC, LANCZOS3, MITCHELL,
  FILTER_COUNT
}

Functions

rgbcreate_rgb (int width, int height)
rgbacreate_rgba (int width, int height)
 Make a system-memory 32-bit bitmap surface. Packed data, red byte first.
alphacreate_alpha (int width, int height)
 Make a system-memory 8-bit bitmap surface.
void write_jpeg (tu_file *out, rgb *image, int quality)
 Write the given image to the given out stream, in jpeg format.
rgbread_jpeg (const char *filename)
 Create and read a new image from the given filename, if possible.
rgbread_jpeg (tu_file *in)
 Create and read a new image from the stream.
rgbread_swf_jpeg2_with_tables (jpeg::input *loader)
 For reading SWF JPEG2-style image data, using pre-loaded headers stored in the given jpeg::input object.
rgbaread_swf_jpeg3 (tu_file *in)
 For reading SWF JPEG3-style image data, like ordinary JPEG, but stores the data in rgba format.
void write_tga (tu_file *out, rgba *image)
 Write a 32-bit Targa format bitmap. Dead simple, no compression.
DSOEXPORT void resample (rgb *out, int out_x0, int out_y0, int out_x1, int out_y1, rgb *in, float in_x0, float in_y0, float in_x1, float in_y1)
DSOEXPORT void resample (rgba *out, int out_x0, int out_y0, int out_x1, int out_y1, rgba *in, float in_x0, float in_y0, float in_x1, float in_y1)
DSOEXPORT rgbread_swf_jpeg2 (tu_file *in)
 For reading SWF JPEG2-style image data (slight variation on ordinary JPEG).

Variables

struct image::filter_table filter_table []
filter_type default_type = TRIANGLE


Detailed Description

Handy image utilities for RGB surfaces.

Enumeration Type Documentation

enum image::filter_type

Enumerator:
FILTER0 
BOX 
TRIANGLE 
BELL 
B_SPLINE 
SOME_CUBIC 
LANCZOS3 
MITCHELL 
FILTER_COUNT 


Function Documentation

DSOEXPORT alpha * image::create_alpha ( int  width,
int  height 
)

Make a system-memory 8-bit bitmap surface.

DSOEXPORT rgb * image::create_rgb ( int  width,
int  height 
)

Make a system-memory 24-bit bitmap surface. 24-bit packed data, red byte first.

DSOEXPORT rgba * image::create_rgba ( int  width,
int  height 
)

Make a system-memory 32-bit bitmap surface. Packed data, red byte first.

DSOEXPORT rgb * image::read_jpeg ( tu_file in  ) 

Create and read a new image from the stream.

Parameters:
in Stream to read from. Ownership to the caller, not needed after return.

DSOEXPORT rgb * image::read_jpeg ( const char *  filename  ) 

Create and read a new image from the given filename, if possible.

DSOEXPORT rgb* image::read_swf_jpeg2 ( tu_file in  ) 

For reading SWF JPEG2-style image data (slight variation on ordinary JPEG).

DSOEXPORT rgb * image::read_swf_jpeg2_with_tables ( jpeg::input j_in  ) 

For reading SWF JPEG2-style image data, using pre-loaded headers stored in the given jpeg::input object.

DSOEXPORT rgba * image::read_swf_jpeg3 ( tu_file in  ) 

For reading SWF JPEG3-style image data, like ordinary JPEG, but stores the data in rgba format.

void image::resample ( image::rgba out,
int  out_x0,
int  out_y0,
int  out_x1,
int  out_y1,
image::rgba in,
float  in_x0,
float  in_y0,
float  in_x1,
float  in_y1 
)

void image::resample ( image::rgb out,
int  out_x0,
int  out_y0,
int  out_x1,
int  out_y1,
image::rgb in,
float  in_x0,
float  in_y0,
float  in_x1,
float  in_y1 
)

DSOEXPORT void image::write_jpeg ( tu_file out,
rgb *  image,
int  quality 
)

Write the given image to the given out stream, in jpeg format.

DSOEXPORT void image::write_tga ( tu_file out,
rgba *  im 
)

Write a 32-bit Targa format bitmap. Dead simple, no compression.


Variable Documentation

filter_type image::default_type = TRIANGLE

struct image::filter_table image::filter_table[]


Generated on Thu Mar 6 18:25:12 2008 for Gnash by  doxygen 1.5.4