2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2013-01-24 07:02:31 +04:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
2013-01-26 04:36:55 +04:00
|
|
|
#include <iostream>
|
2013-01-24 07:02:31 +04:00
|
|
|
|
|
|
|
bool write_png(const char *filename, unsigned char *pixels, int width, int height);
|
2013-01-24 09:05:15 +04:00
|
|
|
bool write_png(std::ostream &output, unsigned char *pixels, int width, int height);
|
2013-01-24 07:02:31 +04:00
|
|
|
void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height);
|