diff options
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index abba4cf..f922fcf 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -20,8 +20,6 @@ http://stackoverflow.com/questions/5261658/how-to-seek-in-ffmpeg-c-c #include <memory> #include <sys/time.h> #include <iostream> -//#include <cairo.h> - #include "Poco/Net/HTTPServer.h" #include "Poco/Net/HTTPResponse.h" @@ -1263,31 +1261,6 @@ namespace Rotor { private: Image *image; //is an image generator }; - class Draw: public Image_node { - public: - Draw(){image=nullptr;}; - Draw(map<string,string> &settings) { - base_settings(settings); - }; - ~Draw(){ if (image) delete image;}; - Draw* clone(map<string,string> &_settings) { return new Draw(_settings);}; - Image *output(const Frame_spec &frame){ - if (image_inputs.size()) { - if (image_inputs[0]->connection){ - //copy incoming image **writable - if (image) delete image; - image=(((Image_node*)image_inputs[0]->connection)->get_output(frame))->clone(); - } - else image->setup(frame.w,frame.h); - } - else image->setup(frame.w,frame.h); //do this twice or use a goto - //draw onto new or input image - - return image; - } - private: - Image *image; //is an image generator - }; //------------------------------------------------------------------- class Node_factory{ public: |
