automatic_v = 0;
threshold = 1.0;
}
+
+ frames = 0;
+ log_slider = .5;
}
void HistogramConfig::reset_points(int colors_only)
high_output[i] = Units::quantize(high_output[i], PRECISION);
}
CLAMP(threshold, 0, 1);
+ CLAMP(log_slider, 0, 1);
+ CLAMP(frames, 0, 65535);
}
int HistogramConfig::equivalent(HistogramConfig &that)
threshold != that.threshold) return 0;
if(plot != that.plot ||
- split != that.split) return 0;
+ split != that.split ||
+ frames != that.frames ||
+ log_slider != that.log_slider ) return 0;
return 1;
}
threshold = that.threshold;
plot = that.plot;
split = that.split;
+ frames = that.frames;
+ log_slider = that.log_slider;
}
void HistogramConfig::interpolate(HistogramConfig &prev,
automatic_v = prev.automatic_v;
plot = prev.plot;
split = prev.split;
-
-
+ frames = prev.frames;
+ log_slider = prev.log_slider;
}
{
for(int j = 0; j < HISTOGRAM_MODES; j++)
{
- printf("HistogramConfig::dump mode=%d plot=%d split=%d\n", j, plot, split);
+ printf("HistogramConfig::dump mode=%d plot=%d split=%d frames=%d\n", j, plot, split, frames);
}
}