X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=dither_effect.h;h=e5805862011c94b36c608fe804cb0f2a6a121bca;hb=b564238fa1293c01c77bcabe7b2de267f146ab24;hp=20fb025532d5fea4e92329c7733d06669354b39d;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2;p=movit diff --git a/dither_effect.h b/dither_effect.h index 20fb025..e580586 100644 --- a/dither_effect.h +++ b/dither_effect.h @@ -43,7 +43,7 @@ // like many LCD monitors do, but it starts to get very hairy, again, for limited gains.) // The dither is also deterministic across runs. -#include +#include #include #include "effect.h" @@ -66,6 +66,7 @@ public: // premultiplied error. However, we need to do dithering in the same // space as quantization, whether that be pre- or postmultiply. virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; } + virtual bool one_to_one_sampling() const { return true; } void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);