Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ppm_image.h

00001 //FILE:         ppm_image.h
00002 //AUTHOR:       Nathan Cournia <nathan@cournia.com>
00003 
00004 #ifndef COURNIA_PPM_IMAGE_H
00005 #define COURNIA_PPM_IMAGE_H 1
00006 
00007 #include <iostream>
00008 #include <string>
00009 #include "image.h"
00010 
00011 namespace image { 
00013         namespace ppm
00014         {
00016 
00019                 image_t* load( const std::string& filename );
00020 
00022 
00025                 image_t* load( std::istream& stream );
00026         
00028 
00031                 bool can_load( const std::string& filename );
00032         
00034 
00039                 bool can_load( std::istream& stream );
00040         
00041                 //loads a P2 PPM
00042                 image_t* load_ascii_pgm( std::istream& stream );
00043                 
00044                 //loads a P3 PPM
00045                 image_t* load_ascii_ppm( std::istream& stream );
00046 
00047                 //loads a P5 PPM
00048                 image_t* load_binary_pgm( std::istream& stream );
00049                 
00050                 //loads a P6 PPM
00051                 image_t* load_binary_ppm( std::istream& stream );
00052         } 
00053 }
00054 
00055 #endif

Generated on Tue Feb 11 18:49:41 2003 for uber by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002