X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=diffusion_effect.cpp;h=145eaf695860608040afec87bc0120eb08188c6d;hp=a202f8c4d017c60828dccbf7624572f19a069a0d;hb=refs%2Fheads%2Fepoxy;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a diff --git a/diffusion_effect.cpp b/diffusion_effect.cpp index a202f8c..145eaf6 100644 --- a/diffusion_effect.cpp +++ b/diffusion_effect.cpp @@ -6,6 +6,10 @@ #include "effect_chain.h" #include "util.h" +using namespace std; + +namespace movit { + DiffusionEffect::DiffusionEffect() : blur(new BlurEffect), overlay_matte(new OverlayMatteEffect) @@ -27,7 +31,7 @@ void DiffusionEffect::rewrite_graph(EffectChain *graph, Node *self) self->disabled = true; } -bool DiffusionEffect::set_float(const std::string &key, float value) { +bool DiffusionEffect::set_float(const string &key, float value) { if (key == "blurred_mix_amount") { return overlay_matte->set_float(key, value); } @@ -40,7 +44,9 @@ OverlayMatteEffect::OverlayMatteEffect() register_float("blurred_mix_amount", &blurred_mix_amount); } -std::string OverlayMatteEffect::output_fragment_shader() +string OverlayMatteEffect::output_fragment_shader() { return read_file("overlay_matte_effect.frag"); } + +} // namespace movit