]> git.sesse.net Git - movit/blobdiff - slice_effect.h
Stop using BGR, BGRA and grayscale formats.
[movit] / slice_effect.h
index 6380c1665279078623a802c9ccf2f7db4f17574d..89aeb0e4297eaac7eebd0985833c6549adc5829d 100644 (file)
@@ -7,10 +7,10 @@
 // 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 <GL/glew.h>
+#include <epoxy/gl.h>
 #include <string>
 
 #include "effect.h"
@@ -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;
 };