From 3a66eefd5021f3f93d2f2ce7a10d8c31dafa76d8 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 29 Aug 2013 15:40:28 +0100 Subject: making still image node --- rotord/src/rotor.h | 10 ++++++++-- 1 file 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 "< &_settings) { return new Still_image(_settings);}; Image *output(const Frame_spec &frame){ - + if (!image.rgb.empty()){ + + } + else return nullptr; } private: }; -- cgit v1.2.3