X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=slice_effect.h;h=0ce5d08b0b7b7917c2b30d5d623a7fab4eb70b5e;hp=6380c1665279078623a802c9ccf2f7db4f17574d;hb=60e4852ff1b04c525a9e3f1c98a1017db28b27bd;hpb=f3591ae239781d0587a141e14633e172ba9e376b diff --git a/slice_effect.h b/slice_effect.h index 6380c16..0ce5d08 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; };