X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.h;h=429bd25c4f8cf55de6fa9e907e9be1abdf2db4c2;hp=af0d0a908d0d9a1e10d809657db842ae5135453e;hb=refs%2Fheads%2F1.3.x-release;hpb=93377952636717f15fd50961f6d3500861596cdc diff --git a/gamma_expansion_effect.h b/gamma_expansion_effect.h index af0d0a9..429bd25 100644 --- a/gamma_expansion_effect.h +++ b/gamma_expansion_effect.h @@ -9,11 +9,14 @@ // Note that Movit's internal formats generally do not have enough accuracy // for 12-bit input or output. +#include #include #include "effect.h" #include "image_format.h" +namespace movit { + class GammaExpansionEffect : public Effect { private: // Should not be instantiated by end users. @@ -27,6 +30,7 @@ public: virtual bool needs_linear_light() const { return false; } virtual bool needs_srgb_primaries() const { return false; } + virtual bool one_to_one_sampling() const { return true; } // Actually processes its input in a nonlinear fashion, // but does not touch alpha, and we are a special case anyway. @@ -34,6 +38,9 @@ public: private: GammaCurve source_curve; + float uniform_linear_scale, uniform_c[5], uniform_beta; }; +} // namespace movit + #endif // !defined(_MOVIT_GAMMA_EXPANSION_EFFECT_H)