#include "effect.h"
+namespace movit {
+
class FFTPassEffect : public Effect {
public:
FFTPassEffect();
*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;
int inverse; // 0 = forward (FFT), 1 = reverse (IFFT).
};
+} // namespace movit
+
#endif // !defined(_MOVIT_FFT_PASS_EFFECT_H)