blob: c9bb8de0d7d2fa466b4d37e417e036b3a534ad45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#ifndef IMAGEUTILS_H_
#define IMAGEUTILS_H_
#include <stdlib.h>
#include <iostream>
bool write_png(const char *filename, unsigned char *pixels, int width, int height);
bool write_png(std::ostream &output, unsigned char *pixels, int width, int height);
void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height);
#endif
|