]> git.sesse.net Git - movit/blobdiff - unsharp_mask_effect.cpp
Forgot to increment version.h for bounce override; doing so now.
[movit] / unsharp_mask_effect.cpp
index 7c289253624b49a53ccf9f123ae87407238d71a8..9c6804917eef8dc44b6fd5b8ca5670976951e0ad 100644 (file)
@@ -7,6 +7,10 @@
 #include "unsharp_mask_effect.h"
 #include "util.h"
 
 #include "unsharp_mask_effect.h"
 #include "util.h"
 
+using namespace std;
+
+namespace movit {
+
 UnsharpMaskEffect::UnsharpMaskEffect()
        : blur(new BlurEffect),
          mix(new MixEffect)
 UnsharpMaskEffect::UnsharpMaskEffect()
        : blur(new BlurEffect),
          mix(new MixEffect)
@@ -30,10 +34,12 @@ void UnsharpMaskEffect::rewrite_graph(EffectChain *graph, Node *self)
        self->disabled = true;
 }
 
        self->disabled = true;
 }
 
-bool UnsharpMaskEffect::set_float(const std::string &key, float value) {
+bool UnsharpMaskEffect::set_float(const string &key, float value) {
        if (key == "amount") {
                bool ok = mix->set_float("strength_first", 1.0f + value);
                return ok && mix->set_float("strength_second", -value);
        }
        return blur->set_float(key, value);
 }
        if (key == "amount") {
                bool ok = mix->set_float("strength_first", 1.0f + value);
                return ok && mix->set_float("strength_second", -value);
        }
        return blur->set_float(key, value);
 }
+
+}  // namespace movit