diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-08-29 15:40:28 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-08-29 15:40:28 +0100 |
| commit | 3a66eefd5021f3f93d2f2ce7a10d8c31dafa76d8 (patch) | |
| tree | 89d282400d337bb33a4c1ed37f9bbce6c8b98ee3 /rotord/src | |
| parent | feb34d02ff8ef3c9cbe9e5a948a461c81d9b4d1a (diff) | |
making still image node
Diffstat (limited to 'rotord/src')
| -rwxr-xr-x | rotord/src/rotor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index ae6b849..2b18061 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -800,14 +800,20 @@ namespace Rotor { base_settings(settings); if (attributes["filename"]->value!=""){ string filewithpath=find_setting(settings,"media_path","")+attributes["filename"]->value; - image.read_file(filewithpath); + if (image.read_file(filewithpath)) { + cerr<<"Still_image: loaded "<<filewithpath<<endl; + } + else cerr<<"Still_image: could not load "<<filewithpath<<endl; } }; ~Still_image(){ }; Still_image* clone(map<string,string> &_settings) { return new Still_image(_settings);}; Image *output(const Frame_spec &frame){ - + if (!image.rgb.empty()){ + + } + else return nullptr; } private: }; |
