]> git.cworth.org Git - apitrace/blobdiff - common/image.hpp
glstate: Use stringstream for holding the temporary PNG images.
[apitrace] / common / image.hpp
index e930512f86473c89352a8990443cd9bbff40d622..2f927ce9a35e5407362c206c4d3738b244b826ed 100644 (file)
@@ -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);