X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=deconvolution_sharpen_effect.h;h=9279abf52f9686ca60bac6c652fa9e5b14db9971;hp=293916fd52da9433d7843ff9ca26c3526a8fdc06;hb=e33b485dcb7bdbe056f6511945d5eb118c085d65;hpb=19fde87d1ba773650754dc1f9d9455107d4a7882 diff --git a/deconvolution_sharpen_effect.h b/deconvolution_sharpen_effect.h index 293916f..9279abf 100644 --- a/deconvolution_sharpen_effect.h +++ b/deconvolution_sharpen_effect.h @@ -1,5 +1,5 @@ -#ifndef _DECONVOLUTION_SHARPEN_EFFECT_H -#define _DECONVOLUTION_SHARPEN_EFFECT_H 1 +#ifndef _MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H +#define _MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H 1 // DeconvolutionSharpenEffect is an effect that sharpens by way of deconvolution // (i.e., trying to reverse the blur kernel, as opposed to just boosting high @@ -19,9 +19,11 @@ // // Jain, Anil K.: “Fundamentals of Digital Image Processing”, Prentice Hall, 1988. -#include "effect.h" - +#include #include +#include + +#include "effect.h" class DeconvolutionSharpenEffect : public Effect { public: @@ -39,6 +41,7 @@ public: } void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); + virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } private: // Input size. @@ -65,4 +68,4 @@ private: void update_deconvolution_kernel(); }; -#endif // !defined(_DECONVOLUTION_SHARPEN_EFFECT_H) +#endif // !defined(_MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H)