]> git.cworth.org Git - apitrace/blobdiff - image/image.hpp
Add option '--snapshot-format=' to allow write raw RGB directly to stdout
[apitrace] / image / image.hpp
index 7dd18c1225e821a0286ea11e0a73989be57acc51..11bfc63c6c48c3189f09fe70df6e8ff5232af7ed 100644 (file)
@@ -106,6 +106,19 @@ public:
         return writePNG(os);
     }
 
+    void
+    writeRAW(std::ostream &os) const;
+
+    inline bool
+    writeRAW(const char *filename) const {
+       std::ofstream os(filename, std::ofstream::binary);
+       if (!os) {
+           return false;
+       }
+       writeRAW(os);
+       return true;
+    }
+
     double compare(Image &ref);
 };