X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.h;h=90e88bc1fddd94650c1deae08011e9c2d0e5395e;hp=b3e025b1a1284bb0415b04320ba08e491b1fc3f9;hb=5c3f76b097c3f3ef1e454f574068a2434c64fa4a;hpb=c4f0d4e876a8177db5738596f22349e030e0a1dc diff --git a/fft_pass_effect.h b/fft_pass_effect.h index b3e025b..90e88bc 100644 --- a/fft_pass_effect.h +++ b/fft_pass_effect.h @@ -50,12 +50,15 @@ // scaling), and as fp16 has quite limited range at times, this can be relevant // on some GPUs for larger sizes. +#include +#include #include -#include #include #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)