rotate-me-fast/pnm.h
Fabien Freling 7e152c29fc Add support for PGM format.
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.
2014-07-21 06:57:08 +02:00

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);
}