diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-07-26 17:06:55 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-07-26 17:06:55 +0100 |
| commit | 7092eaaae3e844a68804b8a6b6825381e9a81443 (patch) | |
| tree | 2d65ea068c5bc6c678f9dc3e2c456a6f6b15b83d /rotord/rotor.h | |
| parent | 6f7be98c7289aedd9e45f9fafcc67ac6348cebf2 (diff) | |
cairo library and first drawing node
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: |
