X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fft_convolution_effect.h;h=cbd0120d2755efe49e216f8eafade27f673481f3;hp=f601a49ccbc0f13686509d1fc1dc926eff3fe8b6;hb=eff011224abc5dc81f801f3ea44572287a55bcac;hpb=3ccf5fb197c9a72545affc0b7286349d5603b72e diff --git a/fft_convolution_effect.h b/fft_convolution_effect.h index f601a49..cbd0120 100644 --- a/fft_convolution_effect.h +++ b/fft_convolution_effect.h @@ -72,7 +72,7 @@ // time, which in turn means you cannot change image or kernel size on the fly. #include -#include +#include #include #include "effect.h" @@ -86,9 +86,9 @@ class FFTConvolutionEffect : public Effect { public: FFTConvolutionEffect(int input_width, int input_height, int convolve_width, int convolve_height); ~FFTConvolutionEffect(); - virtual std::string effect_type_id() const { return "FFTConvolutionEffect"; } - std::string output_fragment_shader() { assert(false); } - virtual void rewrite_graph(EffectChain *graph, Node *self); + std::string effect_type_id() const override { return "FFTConvolutionEffect"; } + std::string output_fragment_shader() override { assert(false); } + void rewrite_graph(EffectChain *graph, Node *self) override; // See FFTInput::set_pixel_data(). void set_convolution_kernel(const float *pixel_data) @@ -101,9 +101,6 @@ private: int input_width, input_height; int convolve_width, convolve_height; - // Chosen by algorithm. - int fft_width, fft_height; - // Both of these are owned by us if owns_effects is true (before finalize()), // and otherwise owned by the EffectChain. FFTInput *fft_input;