Compositor: Use a more conservative execution preset

Use a SomeSpanOrSingle execution preset for recently adjusted nodes to
reduce binary size.
This commit is contained in:
Omar Emara
2025-04-21 17:15:08 +02:00
parent fa7d58ab4c
commit 615e7f079a
3 changed files with 6 additions and 6 deletions

View File

@@ -226,7 +226,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
channel_key<CMP_NODE_CHANNEL_MATTE_CS_RGB>(
color, minimum, maximum, matte_channel, limit_channels, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0>());
});
break;
case CMP_NODE_CHANNEL_MATTE_CS_HSV:
@@ -241,7 +241,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
channel_key<CMP_NODE_CHANNEL_MATTE_CS_HSV>(
color, minimum, maximum, matte_channel, limit_channels, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0>());
});
break;
case CMP_NODE_CHANNEL_MATTE_CS_YUV:
@@ -256,7 +256,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
channel_key<CMP_NODE_CHANNEL_MATTE_CS_YUV>(
color, minimum, maximum, matte_channel, limit_channels, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0>());
});
break;
case CMP_NODE_CHANNEL_MATTE_CS_YCC:
@@ -271,7 +271,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
channel_key<CMP_NODE_CHANNEL_MATTE_CS_YCC>(
color, minimum, maximum, matte_channel, limit_channels, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0>());
});
break;
}

View File

@@ -140,7 +140,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
float &matte) -> void {
chroma_matte(color, key_color, minimum, maximum, falloff, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0, 1>());
});
}

View File

@@ -125,7 +125,7 @@ static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &
float &matte) -> void {
color_matte(color, key_color, hue, saturation, value, output_color, matte);
},
mf::build::exec_presets::AllSpanOrSingle());
mf::build::exec_presets::SomeSpanOrSingle<0, 1>());
});
}