X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=67955786c9e2efd9a3bfed69021f3d7d4efb05a2;hp=f9e1255566fbcf5522de9a58d34b2f52a83154af;hb=9dcbd93164611ea111cc29519c18193d4f571ac1;hpb=bbf6d754a01960a637e821853cf50a282f2a9163 diff --git a/effect_chain.h b/effect_chain.h index f9e1255..6795578 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -15,7 +15,9 @@ public: // User API: // input, effects, output, finalize need to come in that specific order. - Input *add_input(const ImageFormat &format); + // EffectChain takes ownership of the given input. + // input is returned back for convenience. + Input *add_input(Input *input); // EffectChain takes ownership of the given effect. // effect is returned back for convenience. @@ -67,7 +69,9 @@ private: std::vector effects; // In order. }; - void set_use_srgb_texture_format(Effect *effect); + void find_all_nonlinear_inputs(Effect *effect, + std::vector *nonlinear_inputs, + std::vector *intermediates); Effect *normalize_to_linear_gamma(Effect *input); Effect *normalize_to_srgb(Effect *input);