1
Fork 0

fixed some includes

This commit is contained in:
Joshua Moerman 2012-09-15 17:22:51 +02:00
parent cd1fbab4e9
commit 73b6179da1
5 changed files with 8 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

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