summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-09 23:31:09 +0100
committerComment <tim@gray.(none)>2013-05-09 23:31:09 +0100
commitef8e5b1a427b473543fe3c38819d2cef4ee019b2 (patch)
treea0d09f226d78eb4beda6278aaa56615128ec04a4
parentd807b99b05311df90e9ad3a0f82a450be7b8723c (diff)
thinkingcd ../rotor/
-rwxr-xr-xrotord/rotor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h
index f06af2c..407d57c 100755
--- a/rotord/rotor.h
+++ b/rotord/rotor.h
@@ -622,11 +622,12 @@ namespace Rotor {
else
++i;
}
- image->setup(frame.w,frame.h);
+ //if frame has already been calculated just return it
+ if (image) delete image;
if (image_inputs.size()) {
if (image_inputs[0]->connection){
if (LUT) {
- Image *in= (((Image_node*)image_inputs[0]->connection)->get_output(frame));
+ (*image)= *(((Image_node*)image_inputs[0]->connection)->get_output(frame));
for (int i=0;i<frame.w*frame.h*3;i++){
image->RGBdata[i]=LUT[in->RGBdata[i]];
}