X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.h;h=429bd25c4f8cf55de6fa9e907e9be1abdf2db4c2;hp=b5381ad38cdc76fa3b5aa2eb01da20df64111c4b;hb=refs%2Fheads%2F1.3.x-release;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2 diff --git a/gamma_expansion_effect.h b/gamma_expansion_effect.h index b5381ad..429bd25 100644 --- a/gamma_expansion_effect.h +++ b/gamma_expansion_effect.h @@ -9,7 +9,7 @@ // Note that Movit's internal formats generally do not have enough accuracy // for 12-bit input or output. -#include +#include #include #include "effect.h" @@ -30,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. @@ -37,6 +38,7 @@ public: private: GammaCurve source_curve; + float uniform_linear_scale, uniform_c[5], uniform_beta; }; } // namespace movit