X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=white_balance_effect.h;h=342426beee9e514ae1b16debe2a6181c37d09079;hp=c4e46a47548354c6df953fd2caf20d7c9112a80f;hb=80fc4a6e806e5638ae050c3020962137ca5fd76b;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a diff --git a/white_balance_effect.h b/white_balance_effect.h index c4e46a4..342426b 100644 --- a/white_balance_effect.h +++ b/white_balance_effect.h @@ -1,18 +1,21 @@ -#ifndef _WHITE_BALANCE_EFFECT_H -#define _WHITE_BALANCE_EFFECT_H 1 +#ifndef _MOVIT_WHITE_BALANCE_EFFECT_H +#define _MOVIT_WHITE_BALANCE_EFFECT_H 1 // Color correction in LMS color space. -#include +#include #include #include "effect.h" +namespace movit { + class WhiteBalanceEffect : public Effect { public: WhiteBalanceEffect(); virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; } virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; } + virtual bool one_to_one_sampling() const { return true; } std::string output_fragment_shader(); void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); @@ -26,4 +29,6 @@ private: float output_color_temperature; }; -#endif // !defined(_WHITE_BALANCE_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_WHITE_BALANCE_EFFECT_H)