]> git.sesse.net Git - movit/blobdiff - gamma_expansion_effect.cpp
Emulate glReadPixels of GL_ALPHA.
[movit] / gamma_expansion_effect.cpp
index f51dc21c17dad084e98491227fffe35e3e4f474e..24e8ea51aae3f08ab564e11f7a82cd7cb0aeac53 100644 (file)
@@ -1,4 +1,3 @@
-#include <math.h>
 #include <assert.h>
 
 #include "effect_util.h"
@@ -7,6 +6,8 @@
 
 using namespace std;
 
+namespace movit {
+
 GammaExpansionEffect::GammaExpansionEffect()
        : source_curve(GAMMA_LINEAR)
 {
@@ -122,3 +123,5 @@ void GammaExpansionEffect::set_gl_state(GLuint glsl_program_num, const string &p
                set_uniform_float(glsl_program_num, prefix, "beta", 0.0181 * 4.5);
        }
 }
+
+}  // namespace movit