]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Add YCbCr input. Required a bit of reworking of the sRGB extension stuff, but seems...
[movit] / effect_chain.h
index f9e1255566fbcf5522de9a58d34b2f52a83154af..67955786c9e2efd9a3bfed69021f3d7d4efb05a2 100644 (file)
@@ -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<Effect *> effects;  // In order.
        };
 
-       void set_use_srgb_texture_format(Effect *effect);
+       void find_all_nonlinear_inputs(Effect *effect,
+                                      std::vector<Input *> *nonlinear_inputs,
+                                      std::vector<Effect *> *intermediates);
        Effect *normalize_to_linear_gamma(Effect *input);
        Effect *normalize_to_srgb(Effect *input);