]> git.sesse.net Git - movit/blobdiff - gamma_expansion_effect.h
Add a new framework for 1D-LUTs via fp16 textures. Make the gamma compression and...
[movit] / gamma_expansion_effect.h
index 497a38c7ec4f756d1f222f300d897dc9d51f8e24..f079e7085f6e7ba6f6721f8aa3142e9ddb2f88e6 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() { return false; }
+       virtual bool needs_srgb_primaries() { return false; }
 
 private:
        GammaCurve source_curve;
+       float expansion_curve[EXPANSION_CURVE_SIZE];
 };
 
 #endif // !defined(_GAMMA_EXPANSION_EFFECT_H)