X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_pass_effect.h;h=fbf4511e222cd6a725a5ffa2e597ae5c5927f292;hp=501c562700716ba3e0969595af950fdefb46d53f;hb=27d066774adf38a774934c09746d638196d7d392;hpb=12c11c0e615f7fc17ef7a600ff0c9099f7908dbc diff --git a/fft_pass_effect.h b/fft_pass_effect.h index 501c562..fbf4511 100644 --- a/fft_pass_effect.h +++ b/fft_pass_effect.h @@ -98,16 +98,28 @@ 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 }; + 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