1 #ifndef _GAMMA_COMPRESSION_EFFECT_H
2 #define _GAMMA_COMPRESSION_EFFECT_H 1
5 #include "effect_chain.h"
7 #define COMPRESSION_CURVE_SIZE 4096
9 class GammaCompressionEffect : public Effect {
11 GammaCompressionEffect();
12 std::string output_fragment_shader();
14 virtual bool needs_srgb_primaries() const { return false; }
17 GammaCurve destination_curve;
18 float compression_curve[COMPRESSION_CURVE_SIZE];
21 #endif // !defined(_GAMMA_COMPRESSION_EFFECT_H)