Classes | Typedefs | Functions | Variables

claw::graphic Namespace Reference

Everything about image structures and processing. More...

Classes

class  bitmap
 A class for bitmap images. More...
class  color_palette
 A palette of colors, for palettized images. More...
class  gif
 A class for gif pictures. More...
class  image
 A class to deal with images. More...
class  jpeg
 A class for jpeg pictures. More...
class  pcx
 A class for pcx pictures. More...
struct  rgb_pixel
 RGB pixel. More...
struct  rgba_pixel
 RGBA pixel. More...
class  png
 A class for png pictures. More...
class  targa
 A class for targa pictures. More...
class  xbm
 A class for xbm pictures. More...

Typedefs

typedef rgb_pixel rgb_pixel_8
typedef rgba_pixel rgba_pixel_8

Functions

rgba_pixel white_pixel (std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel red_pixel (std::numeric_limits< rgba_pixel::component_type >::max(), 0, 0, std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel yellow_pixel (std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), 0, std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel magenta_pixel (std::numeric_limits< rgba_pixel::component_type >::max(), 0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
void jpeg__error_manager__error_exit (j_common_ptr cinfo)
 Throw an exception when an error occurs in an internal jpeg processing.

Variables

rgba_pixel transparent_pixel (0, 0, 0, 0)
rgba_pixel black_pixel (0, 0, 0, std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel blue_pixel (0, 0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel green_pixel (0, std::numeric_limits< rgba_pixel::component_type >::max(), 0, std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel cyan_pixel (0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
rgba_pixel white_pixel
rgba_pixel red_pixel
rgba_pixel yellow_pixel
rgba_pixel magenta_pixel

Detailed Description

Everything about image structures and processing.


Typedef Documentation

Definition at line 116 of file pixel.hpp.

Definition at line 117 of file pixel.hpp.


Function Documentation

void claw::graphic::jpeg__error_manager__error_exit ( j_common_ptr  cinfo )

Throw an exception when an error occurs in an internal jpeg processing.

Parameters:
cinfoInformations about the process.

Definition at line 39 of file jpeg_error_manager.cpp.

References claw::graphic::jpeg::error_manager::error_string, and claw::graphic::jpeg::error_manager::setjmp_buffer.

Referenced by claw::graphic::jpeg::reader::decompress(), claw::graphic::jpeg::reader::read_data(), claw::graphic::jpeg::reader::read_from_file(), claw::graphic::jpeg::writer::save(), and claw::graphic::jpeg::writer::save_image().

{
  claw::graphic::jpeg::error_manager* err =
    (claw::graphic::jpeg::error_manager*)cinfo->err;

  err->error_string = cinfo->err->jpeg_message_table[cinfo->err->msg_code];

  /* Return control to the setjmp point */
  longjmp(err->setjmp_buffer, 1);
} // jpeg__error_manager__error_exit()
rgba_pixel claw::graphic::magenta_pixel ( std::numeric_limits< rgba_pixel::component_type >::  max(),
,
std::numeric_limits< rgba_pixel::component_type >::  max(),
std::numeric_limits< rgba_pixel::component_type >::  max() 
)
rgba_pixel claw::graphic::red_pixel ( std::numeric_limits< rgba_pixel::component_type >::  max(),
,
,
std::numeric_limits< rgba_pixel::component_type >::  max() 
)
rgba_pixel claw::graphic::white_pixel ( std::numeric_limits< rgba_pixel::component_type >::  max(),
std::numeric_limits< rgba_pixel::component_type >::  max(),
std::numeric_limits< rgba_pixel::component_type >::  max(),
std::numeric_limits< rgba_pixel::component_type >::  max() 
)
rgba_pixel claw::graphic::yellow_pixel ( std::numeric_limits< rgba_pixel::component_type >::  max(),
std::numeric_limits< rgba_pixel::component_type >::  max(),
,
std::numeric_limits< rgba_pixel::component_type >::  max() 
)

Variable Documentation

Definition at line 124 of file pixel.hpp.

Definition at line 130 of file pixel.hpp.

Definition at line 125 of file pixel.hpp.