Wavelet and Image class library  1.3.2
Public Member Functions | Protected Member Functions
JpgReader Class Reference

#include <JpgReader.hh>

Inheritance diagram for JpgReader:
Inheritance graph
[legend]
Collaboration diagram for JpgReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 JpgReader (char const *name, Image *images[])

Protected Member Functions

virtual int readfmt (void)

Detailed Description

A JPG file reader. Only JPGs version 6 are supported.

BUGS: Only color depths of 1 and 3 are supported.

Definition at line 23 of file JpgReader.hh.


Constructor & Destructor Documentation

JpgReader::JpgReader ( char const *  name,
Image images[] 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference.

Parameters:
namethe file name
imagesthe array of greyscale images for the values

Definition at line 33 of file JpgReader.hh.


Member Function Documentation

virtual int JpgReader::readfmt ( void  ) [protected, virtual]

Read the JPG file format. This does the actual work of reading and parsing the image file. It gets called by the {read ()} method.

Returns:
0 if successful, -1 on read error, -2 on file format error.

Implements PixmapReader.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines