X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=padding_effect.h;h=13dc5c00ab511e34166450c5f768206c91016cb7;hb=b564238fa1293c01c77bcabe7b2de267f146ab24;hp=fdefbe0fe1a7b0fe329ed094bacaf3065b113697;hpb=e92a5ffa19eb67b4db5af1db8559630139073668;p=movit diff --git a/padding_effect.h b/padding_effect.h index fdefbe0..13dc5c0 100644 --- a/padding_effect.h +++ b/padding_effect.h @@ -11,12 +11,8 @@ // The border color is taken to be in linear gamma, sRGB, with premultiplied alpha. // You may not change it after calling finalize(), since that could change the // graph (need_linear_light() etc. depend on the border color you choose). -// -// As a convenience, if the flag “pad_from_bottom” is nonzero, the “top” parameter -// will mean pixels from the bottom (matching OpenGL's usual bottom-left convention), -// instead of from the top as usual. -#include +#include #include #include "effect.h" @@ -35,6 +31,8 @@ public: virtual AlphaHandling alpha_handling() const; virtual bool changes_output_size() const { return true; } + virtual bool sets_virtual_output_size() const { return false; } + virtual bool one_to_one_sampling() const { return true; } virtual void get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const; virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height); @@ -43,7 +41,6 @@ private: int input_width, input_height; int output_width, output_height; float top, left; - int pad_from_bottom; }; } // namespace movit