]> git.sesse.net Git - movit/blobdiff - gamma_compression_effect.h
Make the internal effects private to EffectChain.
[movit] / gamma_compression_effect.h
index 0155ee54b32fb28313d22785d91497e7f40a08c8..2744d2ddf65f809e96a301cdcb0e016e499c8f25 100644 (file)
 #define COMPRESSION_CURVE_SIZE 4096
 
 class GammaCompressionEffect : public Effect {
-public:
+private:
+       // Should not be instantiated by end users.
        GammaCompressionEffect();
+       friend class EffectChain;
+
+public:
        virtual std::string effect_type_id() const { return "GammaCompressionEffect"; }
        std::string output_fragment_shader();