Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

JPEGImage Class Reference

Definition of a class for JPEG-compressed images. More...

#include <JPEGImage.h>

Inheritance diagram for JPEGImage:

Inheritance graph
[legend]
Collaboration diagram for JPEGImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JPEGImage ()
 Empty constructor.

 JPEGImage (const Image &src)
 Constructs a JPEG image from an image.

JPEGImageoperator= (const Image &src)
 Assignment operator.

void toImage (Image &dest) const
 Uncompress image.


Static Private Member Functions

Handlers for JPEG-compression
void onDestInit (j_compress_ptr cInfo)
int onDestEmpty (j_compress_ptr)
void onDestTerm (j_compress_ptr cInfo)
void onSrcSkip (j_decompress_ptr cInfo, long numBytes)
int onSrcEmpty (j_decompress_ptr)
void onSrcIgnore (j_decompress_ptr)

Private Attributes

unsigned size
 The size of the JPEG image.


Friends

Outoperator<< (Out &stream, const JPEGImage &image)
 Streaming operator that writes a JPEGImage to a stream.

Inoperator>> (In &stream, JPEGImage &image)
 Streaming operator that reads a JPEGImage from a stream.


Detailed Description

Definition of a class for JPEG-compressed images.

Definition at line 41 of file JPEGImage.h.


Constructor & Destructor Documentation

JPEGImage::JPEGImage  )  [inline]
 

Empty constructor.

Definition at line 71 of file JPEGImage.h.

JPEGImage::JPEGImage const Image src  ) 
 

Constructs a JPEG image from an image.

Parameters:
src The image used as template.

Definition at line 10 of file JPEGImage.cpp.


Member Function Documentation

void JPEGImage::onDestInit j_compress_ptr  cInfo  )  [static, private]
 

Definition at line 110 of file JPEGImage.cpp.

References Image::cameraInfo, Image::image, CameraInfo::resolutionHeight, and CameraInfo::resolutionWidth.

Referenced by operator=().

int JPEGImage::onDestEmpty j_compress_ptr   )  [static, private]
 

Definition at line 117 of file JPEGImage.cpp.

References ASSERT.

Referenced by operator=().

void JPEGImage::onDestTerm j_compress_ptr  cInfo  )  [static, private]
 

Definition at line 123 of file JPEGImage.cpp.

References Image::image, and size.

Referenced by operator=().

void JPEGImage::onSrcSkip j_decompress_ptr  cInfo,
long  numBytes
[static, private]
 

Definition at line 129 of file JPEGImage.cpp.

Referenced by toImage().

int JPEGImage::onSrcEmpty j_decompress_ptr   )  [static, private]
 

Definition at line 133 of file JPEGImage.cpp.

References ASSERT.

Referenced by toImage().

void JPEGImage::onSrcIgnore j_decompress_ptr   )  [static, private]
 

Definition at line 139 of file JPEGImage.cpp.

Referenced by toImage().

JPEGImage & JPEGImage::operator= const Image src  ) 
 

Assignment operator.

Parameters:
src The image used as template.
Returns:
The resulting JPEG image.

Reimplemented from Image.

Definition at line 15 of file JPEGImage.cpp.

References Image::cameraInfo, Image::frameNumber, Image::image, onDestEmpty(), onDestInit(), onDestTerm(), CameraInfo::resolutionHeight, and CameraInfo::resolutionWidth.

Here is the call graph for this function:

void JPEGImage::toImage Image dest  )  const
 

Uncompress image.

Parameters:
dest Will receive the uncompressed image.

Definition at line 56 of file JPEGImage.cpp.

References Image::cameraInfo, cameraResolutionHeight_ERS210, cameraResolutionWidth_ERS210, Image::frameNumber, Image::image, onSrcEmpty(), onSrcIgnore(), onSrcSkip(), CameraInfo::resolutionHeight, and CameraInfo::resolutionWidth.

Referenced by Cognition::handleMessage(), LogPlayer::saveAMV(), and LogPlayer::saveImages().

Here is the call graph for this function:


Friends And Related Function Documentation

Out& operator<< Out stream,
const JPEGImage image
[friend]
 

Streaming operator that writes a JPEGImage to a stream.

Parameters:
stream The stream to write on.
image The JPEGImage object.
Returns:
The stream.

Definition at line 143 of file JPEGImage.cpp.

In& operator>> In stream,
JPEGImage image
[friend]
 

Streaming operator that reads a JPEGImage from a stream.

Parameters:
stream The stream to read from.
image The JPEGImage object.
Returns:
The stream.

Definition at line 151 of file JPEGImage.cpp.


Member Data Documentation

unsigned JPEGImage::size [private]
 

The size of the JPEG image.

Definition at line 54 of file JPEGImage.h.

Referenced by onDestTerm(), operator<<(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:08:59 2004 for GT2004 by doxygen 1.3.6