#include <vil1_gif.h>
Inheritance diagram for vil1_gif_loader_saver:

Definition at line 53 of file vil1_gif.h.
Public Member Functions | |
| vil1_gif_loader_saver (vil1_stream *) | |
| ~vil1_gif_loader_saver () | |
| int | planes () const |
| Dimensions: Planes x W x H x Components. | |
| int | width () const |
| Dimensions: Planes x W x H x Components. | |
| int | height () const |
| Dimensions: Planes x W x H x Components. | |
| int | components () const |
| Dimensions: Planes x W x H x Components. | |
| int | bits_per_component () const |
| Number of bits per component. | |
| enum vil1_component_format | component_format () const |
| Format. | |
| vil1_image | get_plane (unsigned int p) const |
| return the ith plane. | |
| bool | get_section (void *buf, int x0, int y0, int width, int height) const |
| Copy buffer of this to BUF. | |
| bool | get_section (int image, void *buf, int x0, int y0, int width, int height) const |
| bool | put_section (void const *, int, int, int, int) |
| Copy plane PLANE of BUF to this. | |
| bool | put_section (int, void const *, int, int, int, int) |
| char const * | file_format () const |
| Return a string describing the file format. | |
| bool | get_property (char const *tag, void *prop=0) const |
| Extra property information. | |
| virtual bool | set_property (char const *tag, void const *property_value=0) const |
| virtual vcl_string | is_a () const |
| Return the name of the class;. | |
| virtual bool | is_class (vcl_string const &s) const |
| Return true if the name of the class matches the argument. | |
Private Attributes | |
| vil1_stream * | s |
| int | screen_width_ |
| int | screen_height_ |
| bool | is_grey |
| vil1_gif_color_map * | global_color_map |
| int | background_index |
| vcl_vector< void * > | images |
| vil1_gif_loader_saver::vil1_gif_loader_saver | ( | vil1_stream * | ) |
Definition at line 74 of file vil1_gif.cxx.
| vil1_gif_loader_saver::~vil1_gif_loader_saver | ( | ) |
Definition at line 286 of file vil1_gif.cxx.
| int vil1_gif_loader_saver::planes | ( | ) | const [inline, virtual] |
Dimensions: Planes x W x H x Components.
Implements vil1_image_impl.
Definition at line 67 of file vil1_gif.h.
| int vil1_gif_loader_saver::width | ( | ) | const [inline, virtual] |
Dimensions: Planes x W x H x Components.
Implements vil1_image_impl.
Definition at line 68 of file vil1_gif.h.
| int vil1_gif_loader_saver::height | ( | ) | const [inline, virtual] |
Dimensions: Planes x W x H x Components.
Implements vil1_image_impl.
Definition at line 69 of file vil1_gif.h.
| int vil1_gif_loader_saver::components | ( | ) | const [inline, virtual] |
Dimensions: Planes x W x H x Components.
Implements vil1_image_impl.
Definition at line 70 of file vil1_gif.h.
| int vil1_gif_loader_saver::bits_per_component | ( | ) | const [inline, virtual] |
Number of bits per component.
Size (in bits) for the smallest entity of the image.
Implements vil1_image_impl.
Definition at line 71 of file vil1_gif.h.
| enum vil1_component_format vil1_gif_loader_saver::component_format | ( | ) | const [inline, virtual] |
Format.
A standard RGB RGB RGB image has
Implements vil1_image_impl.
Definition at line 72 of file vil1_gif.h.
| vil1_image vil1_gif_loader_saver::get_plane | ( | unsigned int | p | ) | const [virtual] |
return the ith plane.
Reimplemented from vil1_image_impl.
Definition at line 306 of file vil1_gif.cxx.
| bool vil1_gif_loader_saver::get_section | ( | void * | buf, | |
| int | x0, | |||
| int | y0, | |||
| int | width, | |||
| int | height | |||
| ) | const [virtual] |
Copy buffer of this to BUF.
The buffer is stored like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)
Implements vil1_image_impl.
Definition at line 314 of file vil1_gif.cxx.
| bool vil1_gif_loader_saver::get_section | ( | int | image, | |
| void * | buf, | |||
| int | x0, | |||
| int | y0, | |||
| int | width, | |||
| int | height | |||
| ) | const |
Definition at line 330 of file vil1_gif.cxx.
| bool vil1_gif_loader_saver::put_section | ( | void const * | , | |
| int | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) | [virtual] |
Copy plane PLANE of BUF to this.
The buffer should look like this for each pixel: component0(plane0,plane1,plane2,...),component1(plane0,plane1,plane2,...),...
total size of BUF in bytes should be (bits_per_component * components + 7) / 8 i.e. rounding to the next multiple of 8 bits (only correct if 1 byte = 8 bits)
Implements vil1_image_impl.
Definition at line 322 of file vil1_gif.cxx.
| bool vil1_gif_loader_saver::put_section | ( | int | , | |
| void const * | , | |||
| int | , | |||
| int | , | |||
| int | , | |||
| int | ||||
| ) | [inline] |
Definition at line 78 of file vil1_gif.h.
| char const * vil1_gif_loader_saver::file_format | ( | ) | const [virtual] |
Return a string describing the file format.
Only file images have a format, others return 0
Reimplemented from vil1_image_impl.
Definition at line 304 of file vil1_gif.cxx.
| bool vil1_gif_loader_saver::get_property | ( | char const * | tag, | |
| void * | prop = 0 | |||
| ) | const [virtual] |
Extra property information.
Reimplemented from vil1_image_impl.
Definition at line 63 of file vil1_gif.cxx.
| bool vil1_image_impl::set_property | ( | char const * | tag, | |
| void const * | property_value = 0 | |||
| ) | const [virtual, inherited] |
Reimplemented in vil1_tiff_generic_image, and vil1_image_proxy_impl.
Definition at line 28 of file vil1_image_impl.cxx.
| virtual vcl_string vil1_image_impl::is_a | ( | ) | const [inline, virtual, inherited] |
Return the name of the class;.
Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.
Definition at line 141 of file vil1_image_impl.h.
| virtual bool vil1_image_impl::is_class | ( | vcl_string const & | s | ) | const [inline, virtual, inherited] |
Return true if the name of the class matches the argument.
Reimplemented in vil1_block_cache_image_impl, vil1_clamp_image_impl, vil1_crop_image_impl, vil1_flip_components_impl, vil1_flipud_impl, vil1_image_as_impl< T >, vil1_image_proxy_impl, vil1_memory_image_impl, vil1_resample_image_impl, vil1_scale_intensities_image_impl, and vil1_skip_image_impl.
Definition at line 144 of file vil1_image_impl.h.
vil1_stream* vil1_gif_loader_saver::s [private] |
Definition at line 84 of file vil1_gif.h.
int vil1_gif_loader_saver::screen_width_ [private] |
Definition at line 85 of file vil1_gif.h.
int vil1_gif_loader_saver::screen_height_ [private] |
Definition at line 86 of file vil1_gif.h.
bool vil1_gif_loader_saver::is_grey [private] |
Definition at line 87 of file vil1_gif.h.
Definition at line 89 of file vil1_gif.h.
int vil1_gif_loader_saver::background_index [private] |
Definition at line 90 of file vil1_gif.h.
vcl_vector<void*> vil1_gif_loader_saver::images [private] |
Definition at line 92 of file vil1_gif.h.
1.5.1