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

TIFFIO Class Reference

An ImageIO plugin supporting reading and writing TIFF (RGB and LogLuv). More...

#include <imageio/TIFFIO.h>

Inheritance diagram for TIFFIO:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool supportsExtension (const char *extension)
void registerExtensions (DynArray< std::string > &extensions)
bool readImage (const char *filename, Image *&result)
bool writeImage (const char *filename, const Image *image)

Detailed Description

An ImageIO plugin supporting reading and writing TIFF (RGB and LogLuv).

Note that currently only writing of the LogLuv format is supported. If the image is in RGB mode, a standard RGB TIFF is written out. In XYZ mode, the XYZ values are given directly to the libtiff library and the image is written out in the 32-bit LogLuv format.

Todo:
Add support for reading LogLuv TIFF.


Member Function Documentation

bool TIFFIO::supportsExtension const char *  extension  )  [virtual]
 

Determine if this plugin supports the given extension.

Parameters:
[in] extension A lowercase string extension (e.g. "tif")
Returns:
True if the plugin supports this extension, false otherwise.

Implements ImageIO.

void TIFFIO::registerExtensions DynArray< std::string > &  extensions  )  [virtual]
 

Build a list of all the extensions this plugin can support

Parameters:
[out] extensions A DynArray to hold the list of extensions.
Returns:
The return is by reference (extensions parameter).

Implements ImageIO.

bool TIFFIO::readImage const char *  filename,
Image *&  result
[virtual]
 

Given an Image and a filename, try to create an Image. The system will guarantee that the extension is supported by this plugin.

Parameters:
[in] filename The name of the file to read from.
[out] result The resulting Image. Memory has to be allocated.
Returns:
readImage returns true if everything went smoothly.

Implements ImageIO.

bool TIFFIO::writeImage const char *  filename,
const Image image
[virtual]
 

Given an Image and a filename, try to write the Image to disk. The system will guarantee that the extension is supported by this plugin.

Parameters:
[in] filename The name of the file to write to.
[in] image The Image data to write out.
Returns:
writeImage returns true if everything went smoothly.

Implements ImageIO.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:29 2005 for galileo by  doxygen 1.4.3