Browse Source

fixed some includes

master
Joshua Moerman 12 years ago
parent
commit
73b6179da1
  1. 3
      ImageStreams/basics.hpp
  2. 2
      ImageStreams/bmp.hpp
  3. 2
      ImageStreams/jpg.hpp
  4. 8
      ImageStreams/main.cpp
  5. 2
      ImageStreams/png.hpp

3
ImageStreams/basics.hpp

@ -28,6 +28,9 @@
number of bits per color (TODO: what to do with encodings like 565 ?)
*/
#include <cstdint>
#include <algorithm>
namespace pixel_formats {
inline uint8_t clamp(int n){
return std::min(255, std::max(0, n));

2
ImageStreams/bmp.hpp

@ -12,7 +12,7 @@
#include <ostream>
#include <fstream>
#include <stdexcept>
#include <algorithm>
#include <type_traits>
#include "basics.hpp"
/*

2
ImageStreams/jpg.hpp

@ -9,7 +9,7 @@
#ifndef ImageStreams_jpg_hpp
#define ImageStreams_jpg_hpp
#include <stdio.h>
#include <cstdio>
#include <stdexcept>
#include <vector>
#include <jpeglib.h>

8
ImageStreams/main.cpp

@ -7,16 +7,12 @@
//
#include <iostream>
#include <cstdlib>
#include <array>
#include "png.hpp"
#include "bmp.hpp"
#include "jpg.hpp"
#include "basics.hpp"
#include <cmath>
#include <vector>
#include <array>
#include <algorithm>
template <typename ImageType>
void basic_colors(std::string filename) {

2
ImageStreams/png.hpp

@ -9,7 +9,7 @@
#ifndef ImageStreams_png_hpp
#define ImageStreams_png_hpp
#include <stdio.h>
#include <cstdio>
#include <stdexcept>
#include <vector>
#include <png.h>