]> git.sesse.net Git - movit/blobdiff - fft_convolution_effect.h
Convert a loop to range-based for.
[movit] / fft_convolution_effect.h
index 4136a2a7e2be02c9d88e81a1c2aaf62ab9f62c7d..cbd0120d2755efe49e216f8eafade27f673481f3 100644 (file)
@@ -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;