X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=5baf9a599cb8a791a3b622877ae50741303fb7d8;hp=c3dadffca3b115bbfdab3553bdbd81050b0ed9f7;hb=4b08ab8b7c55672e8a44afea18f5a6b3a66bd502;hpb=0c821b2eb013de712041d2b337612b9a6297695f diff --git a/effect_chain.h b/effect_chain.h index c3dadff..5baf9a5 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -220,6 +220,23 @@ public: inputs.push_back(input3); return add_effect(effect, inputs); } + Effect *add_effect(Effect *effect, Effect *input1, Effect *input2, Effect *input3, Effect *input4) { + std::vector inputs; + inputs.push_back(input1); + inputs.push_back(input2); + inputs.push_back(input3); + inputs.push_back(input4); + return add_effect(effect, inputs); + } + Effect *add_effect(Effect *effect, Effect *input1, Effect *input2, Effect *input3, Effect *input4, Effect *input5) { + std::vector inputs; + inputs.push_back(input1); + inputs.push_back(input2); + inputs.push_back(input3); + inputs.push_back(input4); + inputs.push_back(input5); + return add_effect(effect, inputs); + } Effect *add_effect(Effect *effect, const std::vector &inputs); // Adds an RGBA output. Note that you can have at most one RGBA output and one