]> git.sesse.net Git - movit/blobdiff - flat_input.h
Output the graph in dot form at finalize time.
[movit] / flat_input.h
index 69c1a6f14d00b2b5a64205133aad3853d23a31eb..3bcdc76d61a46a4555e7f8ab1b822ff101dc6efa 100644 (file)
@@ -7,7 +7,9 @@
 // comes from a single 2D array with chunky pixels.
 class FlatInput : public Input {
 public:
-       FlatInput(ImageFormat format, unsigned width, unsigned height);
+       FlatInput(ImageFormat format, MovitPixelFormat pixel_format, unsigned width, unsigned height);
+
+       virtual std::string effect_type_id() const { return "FlatInput"; }
 
        // Create the texture itself. We cannot do this in the constructor,
        // because we don't necessarily know all the settings (sRGB texture,
@@ -56,6 +58,7 @@ public:
 
 private:
        ImageFormat image_format;
+       MovitPixelFormat pixel_format;
        GLenum format;
        GLuint pbo, texture_num;
        bool needs_update, finalized;