]> git.cworth.org Git - apitrace/blobdiff - image.hpp
Encode the snapshots as png's.
[apitrace] / image.hpp
index 5a9704eb821b9fba736e9c00233b1b0996df2aea..f46fb31e69712f4cebe322dea04b71c13e48a686 100644 (file)
--- a/image.hpp
+++ b/image.hpp
@@ -77,6 +77,11 @@ public:
     double compare(Image &ref);
 };
 
+bool writePixelsToBuffer(unsigned char *pixels,
+                         unsigned w, unsigned h, unsigned numChannels,
+                         bool flipped,
+                         char **buffer,
+                         int *size);
 
 Image *
 readPNG(const char *filename);