X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.cpp;h=95437906f4c63134232e7775ba630016b2b6748f;hp=f51dc21c17dad084e98491227fffe35e3e4f474e;hb=95edbfccb0843da3cc105dadc5bc6d8e102f6071;hpb=85f9719bf3519b1f1942738d11601584f5d38725 diff --git a/gamma_expansion_effect.cpp b/gamma_expansion_effect.cpp index f51dc21..9543790 100644 --- a/gamma_expansion_effect.cpp +++ b/gamma_expansion_effect.cpp @@ -1,4 +1,3 @@ -#include #include #include "effect_util.h" @@ -7,6 +6,8 @@ using namespace std; +namespace movit { + GammaExpansionEffect::GammaExpansionEffect() : source_curve(GAMMA_LINEAR) { @@ -39,7 +40,7 @@ void GammaExpansionEffect::set_gl_state(GLuint glsl_program_num, const string &p // However, pow() is relatively slow in GLSL, so we approximate this // part by a minimax polynomial, whose coefficients are precalculated // in Maple. (It is very hard to accurately model the curve as a whole - // using minimax polynomials; both Maple and Mathematically generally + // using minimax polynomials; both Maple and Mathematica generally // just error out if you ask them to optimize over 0..1 with a higher-degree // polynomial.) // @@ -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