X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=unsharp_mask_effect.cpp;h=7c289253624b49a53ccf9f123ae87407238d71a8;hp=db8ccd21d767367c8b72d30b793310885ad11b59;hb=d4f00f9f47a0efaefabaf1efa1a0e214eeecca67;hpb=6da2b27aecd1e3ccea21abc6f57e219cd811aab6;ds=sidebyside diff --git a/unsharp_mask_effect.cpp b/unsharp_mask_effect.cpp index db8ccd2..7c28925 100644 --- a/unsharp_mask_effect.cpp +++ b/unsharp_mask_effect.cpp @@ -1,18 +1,18 @@ -#include #include +#include -#include "unsharp_mask_effect.h" #include "blur_effect.h" -#include "mix_effect.h" #include "effect_chain.h" +#include "mix_effect.h" +#include "unsharp_mask_effect.h" #include "util.h" UnsharpMaskEffect::UnsharpMaskEffect() : blur(new BlurEffect), mix(new MixEffect) { - mix->set_float("strength_first", 1.0f); - mix->set_float("strength_second", -0.3f); + CHECK(mix->set_float("strength_first", 1.0f)); + CHECK(mix->set_float("strength_second", -0.3f)); } void UnsharpMaskEffect::rewrite_graph(EffectChain *graph, Node *self) @@ -31,7 +31,6 @@ void UnsharpMaskEffect::rewrite_graph(EffectChain *graph, Node *self) } bool UnsharpMaskEffect::set_float(const std::string &key, float value) { - printf("%s = %f\n", key.c_str(), value); if (key == "amount") { bool ok = mix->set_float("strength_first", 1.0f + value); return ok && mix->set_float("strength_second", -value);