X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.h;h=7689cf1e60688fb60d1c620baffb6ba1fac1dab9;hp=460a946be4dcbdb24f8bddfcc011cb3cdb6af6a0;hb=131e7179b596f8268fd80c32312849da83581e55;hpb=e9f0fb5e6ae193a5a853ac5aef82927b6a81267a diff --git a/fft_pass_effect.h b/fft_pass_effect.h index 460a946..7689cf1 100644 --- a/fft_pass_effect.h +++ b/fft_pass_effect.h @@ -101,16 +101,25 @@ public: virtual void inform_added(EffectChain *chain) { this->chain = chain; } - enum Direction { HORIZONTAL = 0, VERTICAL = 1 }; + enum Direction { INVALID = -1, HORIZONTAL = 0, VERTICAL = 1 }; private: + void generate_support_texture(); + EffectChain *chain; int input_width, input_height; GLuint tex; + int fft_size; Direction direction; int pass_number; // From 1..n. int inverse; // 0 = forward (FFT), 1 = reverse (IFFT). + + int last_fft_size; + Direction last_direction; + int last_pass_number; + int last_inverse; + int last_input_size; }; } // namespace movit