X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resize_effect.h;h=77dfdd48e1932c63bdb99110045e8b4263b6a290;hp=3cb40e3344d7703180e90e8d2352a73df876e87a;hb=f705cd2a092c0f41603f0d4d619f72dbde476212;hpb=7af4d1b54ba141fdb74cd13ddc6110708855d157 diff --git a/resize_effect.h b/resize_effect.h index 3cb40e3..77dfdd4 100644 --- a/resize_effect.h +++ b/resize_effect.h @@ -1,12 +1,16 @@ -#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" +namespace movit { + class ResizeEffect : public Effect { public: ResizeEffect(); @@ -20,10 +24,13 @@ public: virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } virtual bool changes_output_size() const { return true; } + virtual bool sets_virtual_output_size() const { return false; } virtual void get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const; private: int width, height; }; -#endif // !defined(_RESIZE_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_RESIZE_EFFECT_H)