summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_channels.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-11-05 22:33:22 +0000
committerComment <tim@gray.(none)>2013-11-05 22:33:22 +0000
commit18a77356a424511e7ae1865d1554d20b4b5c51fb (patch)
tree15209fc88f1b8fd4fe2ced01ac804772c8f0a43b /rotord/src/nodes_channels.h
parent9462492cae4d94157538f353d67f2f6daaa45259 (diff)
clean up compiler warnings
Diffstat (limited to 'rotord/src/nodes_channels.h')
-rw-r--r--rotord/src/nodes_channels.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/rotord/src/nodes_channels.h b/rotord/src/nodes_channels.h
index e991660..d58c97c 100644
--- a/rotord/src/nodes_channels.h
+++ b/rotord/src/nodes_channels.h
@@ -260,7 +260,6 @@ namespace Rotor {
//get euclidean distance in HSV space
int dist,d;
- uint8_t m;
float weights[3] = {parameters["weight_h"]->value,parameters["weight_s"]->value,parameters["weight_v"]->value};
float weight_total=255.0f/pow(pow(weights[0]*255,2)+pow(weights[1]*255,2)+pow(weights[2]*255,2),0.5);
@@ -322,7 +321,6 @@ namespace Rotor {
//cerr<<"generating LUT: threshold "<<parameters["threshold"]->value<<", feather "<<parameters["feather"]->value<<endl;
if (LUT) delete[] LUT;
LUT=new uint8_t[256];
- float fltmax=(255.0f/256.0f);
float minf=max(0.0f,parameters["threshold"]->value-(parameters["feather"]->value*0.5f));
float maxf=min(1.0f,parameters["threshold"]->value+(parameters["feather"]->value*0.5f));
for (int i=0;i<256;i++){
@@ -438,7 +436,7 @@ namespace Rotor {
//total=interval*number;
}
}
- int thisframe=frame.frame();
+ int thisframe=((Time_spec)frame).frame();
//iterate cache and throw out any obsolete frames
auto i = std::begin(images);
while (i != std::end(images)) {