X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=white_balance_effect.h;h=2370847e966872746e0a75e967550bedd9979e45;hp=5a8ecd548d6cf8efd4143feb3d457d97d76cf930;hb=90ac46cdc5845432df13385f946c63b5496c685e;hpb=ac4fc36aa70ffefb6b9632dc0abea5cbbce5387b diff --git a/white_balance_effect.h b/white_balance_effect.h index 5a8ecd5..2370847 100644 --- a/white_balance_effect.h +++ b/white_balance_effect.h @@ -3,16 +3,20 @@ // Color correction in LMS color space. -#include +#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); @@ -24,6 +28,10 @@ private: // Output color temperature (in Kelvins). // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray). float output_color_temperature; + + Eigen::Matrix3d uniform_correction_matrix; }; +} // namespace movit + #endif // !defined(_MOVIT_WHITE_BALANCE_EFFECT_H)