]> git.sesse.net Git - movit/blobdiff - unsharp_mask_effect.h
In ResampleEffect, use std::unique_ptr instead of managing ownership ourselves.
[movit] / unsharp_mask_effect.h
index ba54a96f048ca12df0bd9015cd45a7f9e8b02ba6..62b2bf61113d4769fd41f5e50d47f7808359823b 100644 (file)
 // See DeconvolutionSharpenEffect for a different, possibly better
 // sharpening algorithm.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class BlurEffect;
 class EffectChain;
 class MixEffect;
@@ -24,17 +26,17 @@ class Node;
 class UnsharpMaskEffect : public Effect {
 public:
        UnsharpMaskEffect();
-       virtual std::string effect_type_id() const { return "UnsharpMaskEffect"; }
+       std::string effect_type_id() const override { return "UnsharpMaskEffect"; }
 
-       virtual bool needs_srgb_primaries() const { return false; }
+       bool needs_srgb_primaries() const override { return false; }
 
-       virtual void rewrite_graph(EffectChain *graph, Node *self);
-       virtual bool set_float(const std::string &key, float value);
+       void rewrite_graph(EffectChain *graph, Node *self) override;
+       bool set_float(const std::string &key, float value) override;
 
-       virtual std::string output_fragment_shader() {
+       std::string output_fragment_shader() override {
                assert(false);
        }
-       virtual void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) {
+       void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) override {
                assert(false);
        }
 
@@ -43,4 +45,6 @@ private:
        MixEffect *mix;
 };
 
+}  // namespace movit
+
 #endif // !defined(_MOVIT_UNSHARP_MASK_EFFECT_H)