X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=gamma_expansion_effect.h;h=f3e20c59ed95eba6030750cb04bf1846b37898fe;hb=0a3c9320e21fc211f0c61a4bda1c6932920c6883;hp=41d4bf0a9e7a727fdb65fa9bf43c11a3558d0879;hpb=a94fbb7ebe6bd57c0c0a7f4174d97b95e3147519;p=movit diff --git a/gamma_expansion_effect.h b/gamma_expansion_effect.h index 41d4bf0..f3e20c5 100644 --- a/gamma_expansion_effect.h +++ b/gamma_expansion_effect.h @@ -4,16 +4,19 @@ #include "effect.h" #include "effect_chain.h" +#define EXPANSION_CURVE_SIZE 256 + class GammaExpansionEffect : public Effect { public: GammaExpansionEffect(); - std::string output_glsl(); + std::string output_fragment_shader(); - virtual bool needs_linear_light() { return false; } - virtual bool needs_srgb_primaries() { return false; } + virtual bool needs_linear_light() const { return false; } + virtual bool needs_srgb_primaries() const { return false; } private: GammaCurve source_curve; + float expansion_curve[EXPANSION_CURVE_SIZE]; }; #endif // !defined(_GAMMA_EXPANSION_EFFECT_H)