#include <pnmImage.h>
Inheritance diagram for PNMImage:
Public Member Functions | |
INLINE | PNMImage () |
INLINE | PNMImage (const Filename &filename, PNMFileType *type=NULL) |
INLINE | PNMImage (int x_size, int y_size, int num_channels=3, xelval maxval=255, PNMFileType *type=NULL) |
INLINE | PNMImage (const PNMImage ©) |
INLINE void | operator= (const PNMImage ©) |
INLINE | ~PNMImage () |
INLINE xelval | clamp_val (int input_value) const |
INLINE xelval | to_val (double input_value) const |
INLINE double | from_val (xelval input_value) const |
void | clear () |
void | clear (int x_size, int y_size, int num_channels=3, xelval maxval=255, PNMFileType *type=NULL) |
void | copy_from (const PNMImage ©) |
void | copy_header_from (const PNMImageHeader &header) |
INLINE void | fill (double red, double green, double blue) |
INLINE void | fill (double gray=0.0) |
void | fill_val (xelval red, xelval green, xelval blue) |
INLINE void | fill_val (xelval gray=0) |
INLINE void | alpha_fill (double alpha=0.0) |
void | alpha_fill_val (xelval alpha=0) |
bool | read (const Filename &filename, PNMFileType *type=NULL) |
bool | read (PNMReader *reader) |
bool | write (const Filename &filename, PNMFileType *type=NULL) const |
bool | write (PNMWriter *writer) const |
INLINE bool | is_valid () const |
INLINE void | set_num_channels (int num_channels) |
void | set_color_type (ColorType color_type) |
INLINE void | add_alpha () |
INLINE void | remove_alpha () |
INLINE void | make_grayscale () |
void | make_grayscale (double rc, double gc, double bc) |
INLINE void | make_rgb () |
void | set_maxval (xelval maxval) |
INLINE const xel & | get_xel_val (int x, int y) const |
INLINE void | set_xel_val (int x, int y, const xel &value) |
INLINE void | set_xel_val (int x, int y, xelval r, xelval g, xelval b) |
INLINE void | set_xel_val (int x, int y, xelval gray) |
INLINE xelval | get_red_val (int x, int y) const |
INLINE xelval | get_green_val (int x, int y) const |
INLINE xelval | get_blue_val (int x, int y) const |
INLINE xelval | get_gray_val (int x, int y) const |
INLINE xelval | get_alpha_val (int x, int y) const |
INLINE void | set_red_val (int x, int y, xelval r) |
INLINE void | set_green_val (int x, int y, xelval g) |
INLINE void | set_blue_val (int x, int y, xelval b) |
INLINE void | set_gray_val (int x, int y, xelval gray) |
INLINE void | set_alpha_val (int x, int y, xelval a) |
xelval | get_channel_val (int x, int y, int channel) const |
void | set_channel_val (int x, int y, int channel, xelval value) |
INLINE RGBColord | get_xel (int x, int y) const |
INLINE void | set_xel (int x, int y, const RGBColord &value) |
INLINE void | set_xel (int x, int y, double r, double g, double b) |
INLINE void | set_xel (int x, int y, double gray) |
INLINE double | get_red (int x, int y) const |
INLINE double | get_green (int x, int y) const |
INLINE double | get_blue (int x, int y) const |
INLINE double | get_gray (int x, int y) const |
INLINE double | get_alpha (int x, int y) const |
INLINE void | set_red (int x, int y, double r) |
INLINE void | set_green (int x, int y, double g) |
INLINE void | set_blue (int x, int y, double b) |
INLINE void | set_gray (int x, int y, double gray) |
INLINE void | set_alpha (int x, int y, double a) |
INLINE double | get_channel (int x, int y, int channel) const |
INLINE void | set_channel (int x, int y, int channel, double value) |
INLINE double | get_bright (int x, int y) const |
INLINE double | get_bright (int x, int y, double rc, double gc, double bc) const |
INLINE double | get_bright (int x, int y, double rc, double gc, double bc, double ac) const |
INLINE void | blend (int x, int y, const RGBColord &val, double alpha) |
void | blend (int x, int y, double r, double g, double b, double alpha) |
INLINE xel * | operator[] (int y) |
INLINE const xel * | operator[] (int y) const |
void | copy_sub_image (const PNMImage ©, int xto, int yto, int xfrom=0, int yfrom=0, int x_size=-1, int y_size=-1) |
INLINE void | box_filter (double radius=1.0) |
INLINE void | gaussian_filter (double radius=1.0) |
void | box_filter_from (double radius, const PNMImage ©) |
void | gaussian_filter_from (double radius, const PNMImage ©) |
void | quick_filter_from (const PNMImage ©, int xborder=0, int yborder=0) |
Private Member Functions | |
INLINE void | allocate_array () |
INLINE void | allocate_alpha () |
INLINE xel * | row (int row) const |
INLINE xelval * | alpha_row (int row) const |
void | setup_rc () |
Private Attributes | |
xel * | _array |
xelval * | _alpha |
double | _default_rc |
double | _default_gc |
double | _default_bc |
|
|
|
|
|
|
|
|
|
|
|
Referenced by alpha_fill_val(). |
|
Referenced by clear(), copy_header_from(), and set_color_type(). |
|
Referenced by clear(), and copy_header_from(). |
|
|
|
Definition at line 139 of file pnmImage.cxx. References add_alpha(), alpha, PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), is_valid(), set_alpha_val(), x, and y. |
|
|
|
Definition at line 465 of file pnmImage.cxx. References alpha, b, g, get_alpha(), get_blue(), get_green(), get_red(), get_xel(), PNMImageHeader::has_alpha(), r, RGBColord, set_alpha(), set_xel(), x, and y. |
|
|
|
|
|
Definition at line 445 of file pnm-image-filter.cxx. References box_filter_impl(), filter_image(), and width. |
|
|
|
Definition at line 54 of file pnmImage.cxx. References _alpha, _array, PNMImageHeader::_maxval, PNMImageHeader::_num_channels, PNMImageHeader::_type, PNMImageHeader::_x_size, PNMImageHeader::_y_size, allocate_alpha(), allocate_array(), clear(), PNMImageHeader::has_alpha(), setup_rc(), type, and xelval. |
|
Definition at line 31 of file pnmImage.cxx. References _alpha, _array, PNMImageHeader::_maxval, PNMImageHeader::_num_channels, PNMImageHeader::_type, PNMImageHeader::_x_size, PNMImageHeader::_y_size, NULL, and xelval. Referenced by clear(), copy_from(), copy_header_from(), read(), and PixelBuffer::store(). |
|
Definition at line 82 of file pnmImage.cxx. References _alpha, _array, PNMImageHeader::_x_size, PNMImageHeader::_y_size, clear(), copy_header_from(), PNMImageHeader::has_alpha(), is_valid(), and xelval. |
|
Definition at line 104 of file pnmImage.cxx. References allocate_alpha(), allocate_array(), clear(), PNMImageHeader::has_alpha(), PNMImageHeader::operator=(), and setup_rc(). Referenced by copy_from(), and read(). |
|
Definition at line 510 of file pnmImage.cxx. References get_alpha(), PNMImageHeader::get_x_size(), get_xel(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), set_alpha(), set_xel(), x, and y. Referenced by event_T(). |
|
|
|
Referenced by GLGraphicsStateGuardian::build_phony_mipmap_level(), CRGraphicsStateGuardian::build_phony_mipmap_level(), and event_T(). |
|
|
|
Definition at line 123 of file pnmImage.cxx. References blue, PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), green, is_valid(), set_xel_val(), x, and y. |
|
|
|
|
|
Definition at line 459 of file pnm-image-filter.cxx. References filter_image(), gaussian_filter_impl(), and width. |
|
Referenced by blend(), copy_sub_image(), and Texture::read(). |
|
Referenced by get_channel_val(), PixelBuffer::load(), and set_maxval(). |
|
Referenced by blend(). |
|
Referenced by get_channel_val(), PixelBuffer::load(), and set_maxval(). |
|
|
|
|
|
Referenced by make_grayscale(), and set_color_type(). |
|
|
|
Definition at line 393 of file pnmImage.cxx. References PNMImageHeader::_num_channels, get_alpha_val(), get_blue_val(), get_green_val(), PNMImageHeader::get_num_channels(), get_red_val(), x, and y. Referenced by Texture::read(). |
|
Referenced by Texture::read(). |
|
Referenced by PixelBuffer::load(), set_color_type(), and set_maxval(). |
|
Referenced by blend(). |
|
Referenced by get_channel_val(), PixelBuffer::load(), and set_maxval(). |
|
Referenced by blend(). |
|
Referenced by get_channel_val(), PixelBuffer::load(), and set_maxval(). |
|
Referenced by blend(), and copy_sub_image(). |
|
|
|
Referenced by alpha_fill_val(), GLGraphicsStateGuardian::build_phony_mipmap_level(), CRGraphicsStateGuardian::build_phony_mipmap_level(), copy_from(), fill_val(), FUNCTION_NAME(), and write(). |
|
Definition at line 326 of file pnmImage.cxx. References PNMImageHeader::_num_channels, get_bright(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), PNMImageHeader::is_grayscale(), set_gray(), setup_rc(), x, and y. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 567 of file pnm-image-filter.cxx. References box_filter_region(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), set_alpha_val(), and xelval. Referenced by GLGraphicsStateGuardian::build_phony_mipmap_level(), CRGraphicsStateGuardian::build_phony_mipmap_level(), consider_rescale(), DXTextureContext7::CreateTexture(), and Texture::read(). |
|
Definition at line 185 of file pnmImage.cxx. References _alpha, _array, PNMImageHeader::_type, PNMImageHeader::_y_size, clear(), copy_header_from(), NULL, reader(), and setup_rc(). |
|
Definition at line 161 of file pnmImage.cxx. References clear(), PNMImageHeader::make_reader(), NULL, reader(), and type. Referenced by GLGraphicsStateGuardian::build_phony_mipmap_level(), CRGraphicsStateGuardian::build_phony_mipmap_level(), Texture::read(), and PixelBuffer::read(). |
|
|
|
|
|
Referenced by blend(), copy_sub_image(), and PixelBuffer::store(). |
|
Referenced by alpha_fill_val(), quick_filter_from(), set_channel_val(), and set_maxval(). |
|
Referenced by PixelBuffer::store(). |
|
Referenced by set_channel_val(), and set_maxval(). |
|
|
|
Definition at line 428 of file pnmImage.cxx. References PNMImageHeader::_num_channels, set_alpha_val(), set_blue_val(), set_green_val(), set_red_val(), x, and y. |
|
Definition at line 276 of file pnmImage.cxx. References _alpha, PNMImageHeader::_num_channels, PNMImageHeader::_x_size, PNMImageHeader::_y_size, allocate_alpha(), get_bright(), PNMImageHeader::get_color_type(), get_gray_val(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), PNMImageHeader::is_grayscale(), NULL, set_gray(), set_xel_val(), setup_rc(), x, xelval, and y. |
|
Referenced by make_grayscale(), set_color_type(), and PixelBuffer::store(). |
|
Referenced by set_maxval(). |
|
Referenced by PixelBuffer::store(). |
|
Referenced by set_channel_val(), and set_maxval(). |
|
Definition at line 347 of file pnmImage.cxx. References PNMImageHeader::_maxval, get_alpha_val(), get_blue_val(), get_gray_val(), get_green_val(), get_red_val(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PNMImageHeader::has_alpha(), PNMImageHeader::is_grayscale(), set_alpha_val(), set_blue_val(), set_gray_val(), set_green_val(), set_red_val(), x, xelval, and y. |
|
Referenced by consider_downgrade(). |
|
Referenced by PixelBuffer::store(). |
|
Referenced by set_channel_val(), and set_maxval(). |
|
|
|
|
|
Referenced by blend(), and copy_sub_image(). |
|
|
|
|
|
Referenced by fill_val(), and set_color_type(). |
|
Definition at line 560 of file pnmImage.cxx. References _default_bc, _default_gc, _default_rc, and PNMImageHeader::is_grayscale(). Referenced by clear(), copy_header_from(), make_grayscale(), read(), and set_color_type(). |
|
|
|
Definition at line 246 of file pnmImage.cxx. References _alpha, _array, PNMImageHeader::_y_size, is_valid(), NULL, and writer(). |
|
Definition at line 222 of file pnmImage.cxx. References is_valid(), PNMImageHeader::make_writer(), NULL, type, and writer(). Referenced by Texture::write(), and PixelBuffer::write(). |
|
Definition at line 201 of file pnmImage.h. Referenced by clear(), copy_from(), read(), set_color_type(), and write(). |
|
Definition at line 200 of file pnmImage.h. Referenced by clear(), copy_from(), read(), and write(). |
|
Definition at line 202 of file pnmImage.h. Referenced by setup_rc(). |
|
Definition at line 202 of file pnmImage.h. Referenced by setup_rc(). |
|
Definition at line 202 of file pnmImage.h. Referenced by setup_rc(). |