diff options
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 9db32b3..ec9f072 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -17,6 +17,8 @@ #include "Poco/Path.h" #include "Poco/Base64Encoder.h" #include "Poco/FileStream.h" +#include "Poco/CountingStream.h" +#include "Poco/StreamCopier.h" #include "xmlIO.h" #include "utils.h" @@ -441,7 +443,7 @@ namespace Rotor { }; ~Signal_greyscale(){}; Image *output(const Frame_spec &frame){ - uint8_t col=255-((uint8_t)(inputs[0]->get((Time_spec)frame)*255.0f)); + uint8_t col=((uint8_t)(inputs[0]->get((Time_spec)frame)*255.0f)); if (col!=prevcol){ //how about when starting a new render? for (int i=0;i<image.w*image.h*3;i++){ image.RGBdata[i]=col; @@ -979,7 +981,7 @@ namespace Rotor { } } if (dynamic_cast<Image_node*> (type.second)!=nullptr) { - if ((dynamic_cast<Image_node*>(type.second))->inputs.size()){ + if ((dynamic_cast<Image_node*>(type.second))->image_inputs.size()){ node["image_inputs"]=Json::arrayValue; for (auto& input: (dynamic_cast<Image_node*>(type.second))->image_inputs) { Json::Value image_input; @@ -1015,7 +1017,7 @@ namespace Rotor { attribute["type"]="enum"; attribute["options"]=Json::arrayValue; for (auto val: attr.second->vals){ - attribute["attribute"].append(val); + attribute["options"].append(val); } } else attribute["type"]="string"; |
