X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=input.h;h=6c9fca1a4050b8590ef4698c5863c90534029f3f;hp=7652e1793a4599d01fb726bfbf939741ac01d2aa;hb=8cd14c3d54e817f9ad83966409dd672bcbfb7555;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2 diff --git a/input.h b/input.h index 7652e17..6c9fca1 100644 --- a/input.h +++ b/input.h @@ -17,13 +17,17 @@ namespace movit { // 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;