Loosen up a boundary in DitherEffectTest by 10%.
[movit] / colorspace_conversion_effect.h
index e3c60ea..15ad0ad 100644 (file)
 #include "effect.h"
 #include "effect_chain.h"
 
-class ColorSpaceConversionEffect : public Effect {
+class ColorspaceConversionEffect : public Effect {
+private:
+       // Should not be instantiated by end users.
+       ColorspaceConversionEffect();
+       friend class EffectChain;
+
 public:
-       ColorSpaceConversionEffect();
+       virtual std::string effect_type_id() const { return "ColorspaceConversionEffect"; }
        std::string output_fragment_shader();
 
        virtual bool needs_srgb_primaries() const { return false; }
+       virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
 
 private:
-       ColorSpace source_space, destination_space;
+       Colorspace source_space, destination_space;
 };
 
 #endif // !defined(_COLORSPACE_CONVERSION_EFFECT_H)