]> git.sesse.net Git - movit/blobdiff - dither_effect.h
Collapse passes more aggressively in the face of size changes.
[movit] / dither_effect.h
index 9818603c2a46f4a659628b68c03be5fed3f868ac..e5805862011c94b36c608fe804cb0f2a6a121bca 100644 (file)
@@ -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; }
        // 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);
 
 
        void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);