7e152c29fc
The code has been split into different source files. This breaks for now rotation for tiled images and PPM format. The focus is now on the PGM format.
17 lines
293 B
C++
17 lines
293 B
C++
#pragma once
|
|
|
|
#include <fstream>
|
|
|
|
namespace pnm
|
|
{
|
|
|
|
enum class Format {
|
|
PGM,
|
|
PPM
|
|
};
|
|
|
|
bool read_header(std::ifstream& istr, Format& type, unsigned int& width, unsigned int& height);
|
|
bool write_header(std::ofstream& ostr, Format type, unsigned int width, unsigned int height);
|
|
|
|
}
|