X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resize_effect.h;h=774f510de592aedc4e0ae1991916629d62c64842;hp=c11f4bc9ea6dd9fd4e52241e5e16b8c46b73da21;hb=0934db945c8fde98315c6a4099dde2dfa423c0e7;hpb=2322070a3dbeb6b46b39cca07a0fbf20e95f5468 diff --git a/resize_effect.h b/resize_effect.h index c11f4bc..774f510 100644 --- a/resize_effect.h +++ b/resize_effect.h @@ -1,10 +1,12 @@ -#ifndef _RESIZE_EFFECT_H -#define _RESIZE_EFFECT_H 1 +#ifndef _MOVIT_RESIZE_EFFECT_H +#define _MOVIT_RESIZE_EFFECT_H 1 // An effect that simply resizes the picture to a given output size // (set by the two integer parameters "width" and "height"). // Mostly useful as part of other algorithms. +#include + #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; @@ -25,4 +28,4 @@ private: int width, height; }; -#endif // !defined(_RESIZE_EFFECT_H) +#endif // !defined(_MOVIT_RESIZE_EFFECT_H)