X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.h;h=20a5a76fba04315d74f9aa09502eaac3e196e658;hp=b5381ad38cdc76fa3b5aa2eb01da20df64111c4b;hb=6eb973fe828e253f84e7db67f932d8860096c077;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2 diff --git a/gamma_expansion_effect.h b/gamma_expansion_effect.h index b5381ad..20a5a76 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_c0, uniform_c1, uniform_c2, uniform_c3, uniform_c4, uniform_beta; }; } // namespace movit