]> git.sesse.net Git - movit/blobdiff - fft_pass_effect.h
More tweaks to the .ld generation.
[movit] / fft_pass_effect.h
index b3e025b1a1284bb0415b04320ba08e491b1fc3f9..460a946be4dcbdb24f8bddfcc011cb3cdb6af6a0 100644 (file)
 // scaling), and as fp16 has quite limited range at times, this can be relevant
 // on some GPUs for larger sizes.
 
-#include <stdio.h>
 #include <GL/glew.h>
+#include <assert.h>
+#include <stdio.h>
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class FFTPassEffect : public Effect {
 public:
        FFTPassEffect();
@@ -95,10 +98,13 @@ public:
                *width = *virtual_width = input_width;
                *height = *virtual_height = input_height;
        }
+
+       virtual void inform_added(EffectChain *chain) { this->chain = chain; }
        
        enum Direction { HORIZONTAL = 0, VERTICAL = 1 };
 
 private:
+       EffectChain *chain;
        int input_width, input_height;
        GLuint tex;
        int fft_size;
@@ -107,4 +113,6 @@ private:
        int inverse;  // 0 = forward (FFT), 1 = reverse (IFFT).
 };
 
+}  // namespace movit
+
 #endif // !defined(_MOVIT_FFT_PASS_EFFECT_H)