00001
00002
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
00042 image_t* load_ascii_pgm( std::istream& stream );
00043
00044
00045 image_t* load_ascii_ppm( std::istream& stream );
00046
00047
00048 image_t* load_binary_pgm( std::istream& stream );
00049
00050
00051 image_t* load_binary_ppm( std::istream& stream );
00052 }
00053 }
00054
00055 #endif