X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect.h;h=921a1ef5e1130ca6184e401fe06e8b267b4c67e2;hp=9818603c2a46f4a659628b68c03be5fed3f868ac;hb=f216b7bef5a968c89f6fc78e83cc26a91e504a8a;hpb=12c11c0e615f7fc17ef7a600ff0c9099f7908dbc;ds=sidebyside diff --git a/dither_effect.h b/dither_effect.h index 9818603..921a1ef 100644 --- a/dither_effect.h +++ b/dither_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); @@ -77,6 +78,9 @@ private: int texture_width, texture_height; GLuint texnum; + float uniform_round_fac, uniform_inv_round_fac; + float uniform_tc_scale[2]; + GLint uniform_dither_tex; }; } // namespace movit