X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fimage.hpp;h=2f927ce9a35e5407362c206c4d3738b244b826ed;hb=45080ce539648a3fc073375cd9212b031a611f10;hp=e930512f86473c89352a8990443cd9bbff40d622;hpb=61a25343ca58efa75b2d2d7c8b062b9ccee1d02b;p=apitrace diff --git a/common/image.hpp b/common/image.hpp index e930512..2f927ce 100644 --- a/common/image.hpp +++ b/common/image.hpp @@ -99,11 +99,11 @@ public: double compare(Image &ref); }; -bool writePixelsToBuffer(unsigned char *pixels, - unsigned w, unsigned h, unsigned numChannels, - bool flipped, - char **buffer, - int *size); +bool +writePixelsToBuffer(std::ostream &os, + unsigned char *pixels, + unsigned w, unsigned h, unsigned numChannels, + bool flipped); Image * readPNG(const char *filename);