1 #ifndef _COLORSPACE_CONVERSION_EFFECT_H
2 #define _COLORSPACE_CONVERSION_EFFECT_H 1
4 // An effect to convert between different color spaces.
5 // Can convert freely between sRGB/Rec. 709 and the two different Rec. 601
6 // color spaces (which thankfully have the same white point).
8 // We don't do any fancy gamut mapping or similar; colors that are out-of-gamut
9 // will simply stay out-of-gamut, and probably clip in the output stage.
12 #include "effect_chain.h"
14 class ColorspaceConversionEffect : public Effect {
16 ColorspaceConversionEffect();
17 virtual std::string effect_type_id() const { return "ColorspaceConversionEffect"; }
18 std::string output_fragment_shader();
20 virtual bool needs_srgb_primaries() const { return false; }
23 Colorspace source_space, destination_space;
26 #endif // !defined(_COLORSPACE_CONVERSION_EFFECT_H)