X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=unsharp_mask_effect.h;h=62b2bf61113d4769fd41f5e50d47f7808359823b;hp=45a04f0fe00bdddd0149c417e50d35625c5db374;hb=a0e355b792d04d48f115b5c6230bab6be91ec835;hpb=6da2b27aecd1e3ccea21abc6f57e219cd811aab6 diff --git a/unsharp_mask_effect.h b/unsharp_mask_effect.h index 45a04f0..62b2bf6 100644 --- a/unsharp_mask_effect.h +++ b/unsharp_mask_effect.h @@ -1,5 +1,5 @@ -#ifndef _UNSHARP_MASK_EFFECT_H -#define _UNSHARP_MASK_EFFECT_H 1 +#ifndef _MOVIT_UNSHARP_MASK_EFFECT_H +#define _MOVIT_UNSHARP_MASK_EFFECT_H 1 // Unsharp mask is probably the most popular way of doing sharpening today, // although it does not always deliver the best results (it is very prone @@ -10,25 +10,33 @@ // See DeconvolutionSharpenEffect for a different, possibly better // sharpening algorithm. +#include +#include +#include + #include "effect.h" +namespace movit { + class BlurEffect; +class EffectChain; class MixEffect; +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); } @@ -37,4 +45,6 @@ private: MixEffect *mix; }; -#endif // !defined(_UNSHARP_MASK_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_UNSHARP_MASK_EFFECT_H)