]> git.sesse.net Git - movit/blobdiff - input.h
Skip all the compute shader tests if there is no compute support (it was done before...
[movit] / input.h
diff --git a/input.h b/input.h
index e0febb1712895876758c9bffe9459b4c32feb8c7..6c9fca1a4050b8590ef4698c5863c90534029f3f 100644 (file)
--- a/input.h
+++ b/input.h
@@ -6,6 +6,8 @@
 #include "effect.h"
 #include "image_format.h"
 
+namespace movit {
+
 // An input is a degenerate case of an effect; it represents the picture data
 // that comes from the user. As such, it has zero “inputs” itself.
 //
 // including possibly uploading the texture if so required.
 class Input : public Effect {
 public:
-       virtual unsigned num_inputs() const { return 0; }
+       unsigned num_inputs() const override { return 0; }
 
        // Whether this input can deliver linear gamma directly if it's
        // asked to. (If so, set the parameter “output_linear_gamma”
        // to activate it.)
        virtual bool can_output_linear_gamma() const = 0;
 
+       // Whether this input can supply mipmaps if asked to (by setting
+       // the "needs_mipmaps" integer parameter set to 1).
+       virtual bool can_supply_mipmaps() const { return true; }
+
        virtual unsigned get_width() const = 0;
        virtual unsigned get_height() const = 0;
        virtual Colorspace get_color_space() const = 0;
        virtual GammaCurve get_gamma_curve() const = 0;
 };
 
+}  // namespace movit
+
 #endif // !defined(_MOVIT_INPUT_H)