X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.h;h=460a946be4dcbdb24f8bddfcc011cb3cdb6af6a0;hp=f12bda7e416ce3eeefe0f02e55ea4f0bbefa59a9;hb=240cced0e8e7f24385a702631c253971862281fe;hpb=9651a4eaae012cdc49c1aa38197861e04f62e91e diff --git a/fft_pass_effect.h b/fft_pass_effect.h index f12bda7..460a946 100644 --- a/fft_pass_effect.h +++ b/fft_pass_effect.h @@ -57,6 +57,8 @@ #include "effect.h" +namespace movit { + class FFTPassEffect : public Effect { public: FFTPassEffect(); @@ -96,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; @@ -108,4 +113,6 @@ private: int inverse; // 0 = forward (FFT), 1 = reverse (IFFT). }; +} // namespace movit + #endif // !defined(_MOVIT_FFT_PASS_EFFECT_H)