X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=resize_effect.h;h=3cb40e3344d7703180e90e8d2352a73df876e87a;hb=7af4d1b54ba141fdb74cd13ddc6110708855d157;hp=4c3fe86c1991f231af8ad3cee7df2343d93b581e;hpb=f99ad333a7acbb6c8c995dbb036484ae8940c490;p=movit diff --git a/resize_effect.h b/resize_effect.h index 4c3fe86..3cb40e3 100644 --- a/resize_effect.h +++ b/resize_effect.h @@ -17,9 +17,10 @@ public: // in case we need to scale down a lot. virtual bool need_texture_bounce() const { return true; } virtual bool needs_mipmaps() const { return true; } + virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } virtual bool changes_output_size() const { return true; } - virtual void get_output_size(unsigned *width, unsigned *height) const; + virtual void get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const; private: int width, height;