]> git.sesse.net Git - movit/blobdiff - resize_effect.h
Small cleanup in movit.pc.in.
[movit] / resize_effect.h
index c11f4bc9ea6dd9fd4e52241e5e16b8c46b73da21..8fbaba70b08ccfbe5724af7b24068da6b420a75b 100644 (file)
@@ -5,6 +5,8 @@
 // (set by the two integer parameters "width" and "height").
 // Mostly useful as part of other algorithms.
 
+#include <string>
+
 #include "effect.h"
 
 class ResizeEffect : public Effect {
@@ -17,6 +19,7 @@ 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, unsigned *virtual_width, unsigned *virtual_height) const;