]> git.sesse.net Git - movit/blobdiff - gamma_expansion_effect.h
Mark some functions in Effect as const.
[movit] / gamma_expansion_effect.h
index 497a38c7ec4f756d1f222f300d897dc9d51f8e24..f3e20c59ed95eba6030750cb04bf1846b37898fe 100644 (file)
@@ -4,12 +4,19 @@
 #include "effect.h"
 #include "effect_chain.h"
 
+#define EXPANSION_CURVE_SIZE 256
+
 class GammaExpansionEffect : public Effect {
 public:
        GammaExpansionEffect();
+       std::string output_fragment_shader();
+
+       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)