X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=input.h;h=08f18da927c161b4ca5c778afee98d34f49b0768;hp=e0febb1712895876758c9bffe9459b4c32feb8c7;hb=6f1efa8348a90a393187c12d70fd10d81bbd2c99;hpb=f8e636666b3d36f97b125bc1a0f0f582c5026c7f diff --git a/input.h b/input.h index e0febb1..08f18da 100644 --- 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. // @@ -22,10 +24,16 @@ public: // 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)