#include "unsharp_mask_effect.h"
#include "util.h"
+using namespace std;
+
+namespace movit {
+
UnsharpMaskEffect::UnsharpMaskEffect()
: blur(new BlurEffect),
mix(new MixEffect)
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);
}
+
+} // namespace movit