ColorBalanceConfig::ColorBalanceConfig()
{
- cyan = 0;
- magenta = 0;
- yellow = 0;
- lock_params = 0;
- preserve = 0;
+ reset(RESET_ALL);
+}
+
+void ColorBalanceConfig::reset(int clear)
+{
+ switch(clear) {
+ case RESET_CYAN : cyan = 0;
+ break;
+ case RESET_MAGENTA : magenta = 0;
+ break;
+ case RESET_YELLOW : yellow = 0;
+ break;
+ case RESET_ALL :
+ case RESET_DEFAULT_SETTINGS :
+ default:
+ cyan = 0;
+ magenta = 0;
+ yellow = 0;
+ lock_params = 0;
+ preserve = 0;
+ break;
+ }
}
int ColorBalanceConfig::equivalent(ColorBalanceConfig &that)
magenta_f = plugin->calculate_transfer(plugin->config.magenta); \
yellow_f = plugin->calculate_transfer(plugin->config.yellow); \
\
-printf("PROCESS_F %f\n", cyan_f); \
for(j = row_start; j < row_end; j++) \
{ \
for(k = 0; k < input->get_w() * components; k += components) \