From 1daee727f5d47681a73417a469d71673e1a0827c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 25 Jun 2013 19:42:30 +0100 Subject: pesky youtube movies --- rotord/rotor.h | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'rotord/rotor.h') diff --git a/rotord/rotor.h b/rotord/rotor.h index cb1e815..da7e875 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -1200,7 +1200,6 @@ namespace Rotor { if (_mode=="screen") mode=BLEND_screen; if (_mode=="multiply") mode=BLEND_multiply; if (_mode=="blend") mode=BLEND_blend; - cerr<<"blend node: mode: "< &settings) { + base_settings(settings); + image=new Image(); + amount=find_setting(settings,"amount",1.0f); + string _mode=find_setting(settings,"mode","screen"); + if (_mode=="horiz") mode=BLEND_screen; + if (_mode=="vert") mode=BLEND_multiply; + }; + ~Mirror(){ delete image;}; + Mirror* clone(map &_settings) { return new Mirror(_settings);}; + Image *output(const Frame_spec &frame){ + if (image_inputs.size()) { + if (image_inputs[0]->connection){ + + //if there aren't 2 image inputs connected just return the first + return (((Image_node*)image_inputs[0]->connection)->get_output(frame)); + } + } + return nullptr; + } + private: + Image *image; //is an image generator + int mode; + }; + */ //------------------------------------------------------------------- class Node_factory{ public: -- cgit v1.2.3