summaryrefslogtreecommitdiff
path: root/rotord/src
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-09-10 13:16:59 +0100
committerTim Redfern <tim@eclectronics.org>2013-09-10 13:16:59 +0100
commit157d5cf3af1bc4e6d4391d51bb4aa3699022ee6b (patch)
treeb6f2b763523543c12c1bd160a8f879295fd1f23d /rotord/src
parent959b4591baa048b692e38c39c8db89317023ccea (diff)
remove cvimage pointer use in nodes: temporary fix
Diffstat (limited to 'rotord/src')
-rw-r--r--rotord/src/rendercontext.h4
-rw-r--r--rotord/src/rotor.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/rotord/src/rendercontext.h b/rotord/src/rendercontext.h
index d7d220e..f15ca31 100644
--- a/rotord/src/rendercontext.h
+++ b/rotord/src/rendercontext.h
@@ -74,7 +74,9 @@ namespace Rotor {
void runTask();
void add_queue(Session_task item);
void session_command(const Session_command& command,xmlIO& XML,Poco::Net::HTTPResponse::HTTPStatus& status);
- void cancel(); //interrupt locking process
+ void cancel(){
+ graph.clear();
+ } //interrupt locking process
Render_status get_render_status(const string &uid){
//cerr<<"render status requested: "<<uid<<" status: "<<renders[uid].status<<endl;
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index fbefa66..d59197a 100644
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -605,11 +605,17 @@ namespace Rotor {
image=image.add_wrap(*in2);
break;
case BLEND_blend: //has to be last because of initialser of *in? go figure
- //problem here with leak
+
image*=(1.0f-parameters["amount"]->value);
+ /* //problem here with leak
+ //opencv handles not being released
Image *in=(*in2)*parameters["amount"]->value;
image+=(*in);
delete in;
+ */
+ Image in=(*in2);
+ in*=parameters["amount"]->value;
+ image+=in;
break;
}
return &image;