]> git.sesse.net Git - movit/blob - white_balance_effect.h
Fix a comment.
[movit] / white_balance_effect.h
1 #ifndef _MOVIT_WHITE_BALANCE_EFFECT_H
2 #define _MOVIT_WHITE_BALANCE_EFFECT_H 1
3
4 // Color correction in LMS color space.
5
6 #include <epoxy/gl.h>
7 #include <string>
8
9 #include "effect.h"
10
11 namespace movit {
12
13 class WhiteBalanceEffect : public Effect {
14 public:
15         WhiteBalanceEffect();
16         virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
17         virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
18         virtual bool one_to_one_sampling() const { return true; }
19         std::string output_fragment_shader();
20
21         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
22
23 private:
24         // The neutral color, in linear sRGB.
25         RGBTriplet neutral_color;
26
27         // Output color temperature (in Kelvins).
28         // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
29         float output_color_temperature;
30 };
31
32 }  // namespace movit
33
34 #endif // !defined(_MOVIT_WHITE_BALANCE_EFFECT_H)