vil1_jpeg_generic_image Class Reference

#include <vil1_jpeg.h>

Inheritance diagram for vil1_jpeg_generic_image:

vil1_image_impl List of all members.

Detailed Description

generic_image implementation for JPEG files.

Definition at line 46 of file vil1_jpeg.h.


Public Member Functions

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 Member Functions

 vil1_jpeg_generic_image (vil1_stream *is)
 vil1_jpeg_generic_image (vil1_stream *is, int planes, int width, int height, int components, int bits_per_component, vil1_component_format format)
 ~vil1_jpeg_generic_image ()
int planes () const
 implementation of virtual interface.
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.
vil1_component_format component_format () const
 Format.
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.
vil1_image get_plane (unsigned int p) const
 assume only one plane.
bool get_section (void *buf, int x0, int y0, int w, int h) const
 decompressing from the vil1_stream to a section buffer.
bool put_section (void const *buf, int x0, int y0, int w, int h)
 compressing a section onto the vil1_stream.

Private Attributes

vil1_jpeg_compressorjc
vil1_jpeg_decompressorjd
vil1_streamstream

Friends

class vil1_jpeg_file_format

Constructor & Destructor Documentation

vil1_jpeg_generic_image::vil1_jpeg_generic_image ( vil1_stream is  )  [private]

Definition at line 75 of file vil1_jpeg.cxx.

vil1_jpeg_generic_image::vil1_jpeg_generic_image ( vil1_stream is,
int  planes,
int  width,
int  height,
int  components,
int  bits_per_component,
vil1_component_format  format 
) [private]

Definition at line 94 of file vil1_jpeg.cxx.

vil1_jpeg_generic_image::~vil1_jpeg_generic_image (  )  [private]

Definition at line 124 of file vil1_jpeg.cxx.


Member Function Documentation

int vil1_jpeg_generic_image::planes (  )  const [private, virtual]

implementation of virtual interface.

Implements vil1_image_impl.

Definition at line 203 of file vil1_jpeg.cxx.

int vil1_jpeg_generic_image::width (  )  const [private, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 209 of file vil1_jpeg.cxx.

int vil1_jpeg_generic_image::height (  )  const [private, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 217 of file vil1_jpeg.cxx.

int vil1_jpeg_generic_image::components (  )  const [private, virtual]

Dimensions: Planes x W x H x Components.

Implements vil1_image_impl.

Definition at line 225 of file vil1_jpeg.cxx.

int vil1_jpeg_generic_image::bits_per_component (  )  const [private, virtual]

Number of bits per component.

Size (in bits) for the smallest entity of the image.

Implements vil1_image_impl.

Definition at line 233 of file vil1_jpeg.cxx.

vil1_component_format vil1_jpeg_generic_image::component_format (  )  const [private, virtual]

Format.

A standard RGB RGB RGB image has

Implements vil1_image_impl.

Definition at line 239 of file vil1_jpeg.cxx.

char const * vil1_jpeg_generic_image::file_format (  )  const [private, 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 252 of file vil1_jpeg.cxx.

bool vil1_jpeg_generic_image::get_property ( char const *  tag,
void *  prop = 0 
) const [private, virtual]

Extra property information.

Reimplemented from vil1_image_impl.

Definition at line 83 of file vil1_jpeg.cxx.

vil1_image vil1_jpeg_generic_image::get_plane ( unsigned int  p  )  const [private, virtual]

assume only one plane.

Reimplemented from vil1_image_impl.

Definition at line 245 of file vil1_jpeg.cxx.

bool vil1_jpeg_generic_image::get_section ( void *  buf,
int  x0,
int  y0,
int  w,
int  h 
) const [private, virtual]

decompressing from the vil1_stream to a section buffer.

Implements vil1_image_impl.

Definition at line 141 of file vil1_jpeg.cxx.

bool vil1_jpeg_generic_image::put_section ( void const *  buf,
int  x0,
int  y0,
int  w,
int  h 
) [private, virtual]

compressing a section onto the vil1_stream.

Implements vil1_image_impl.

Definition at line 168 of file vil1_jpeg.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.


Friends And Related Function Documentation

friend class vil1_jpeg_file_format [friend]

Definition at line 75 of file vil1_jpeg.h.


Member Data Documentation

vil1_jpeg_compressor* vil1_jpeg_generic_image::jc [private]

Definition at line 72 of file vil1_jpeg.h.

vil1_jpeg_decompressor* vil1_jpeg_generic_image::jd [private]

Definition at line 73 of file vil1_jpeg.h.

vil1_stream* vil1_jpeg_generic_image::stream [private]

Definition at line 74 of file vil1_jpeg.h.


The documentation for this class was generated from the following files:
Generated on Sun Sep 7 05:08:30 2008 for core/vil1 by  doxygen 1.5.1