X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=slice_effect.h;h=89aeb0e4297eaac7eebd0985833c6549adc5829d;hp=3448941873aebbfef9067e682d906fafc0308805;hb=185ced44b129739c9b5438da691e71d664d6443a;hpb=8c7e53028a3ef4805d2608643041a5d7e6bd1b6e diff --git a/slice_effect.h b/slice_effect.h index 3448941..89aeb0e 100644 --- a/slice_effect.h +++ b/slice_effect.h @@ -7,8 +7,8 @@ // discard roles, where one does convolutions by means of many small FFTs, but // could also work as a (relatively boring) video effect on its own. // -// Note that vertical slices happen from the bottom, not the top, due to the -// OpenGL coordinate system. +// Note that vertical slices happen from the top, consistent with the rest of +// Movit. #include #include @@ -29,12 +29,15 @@ public: unsigned *virtual_width, unsigned *virtual_height) const; void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); + virtual void inform_added(EffectChain *chain) { this->chain = chain; } enum Direction { HORIZONTAL = 0, VERTICAL = 1 }; private: + EffectChain *chain; int input_width, input_height; int input_slice_size, output_slice_size; + int offset; Direction direction; };