]> git.sesse.net Git - movit/blobdiff - demo.cpp
Round explicitly after dithering, for GPUs that don't do it properly themselves.
[movit] / demo.cpp
index cd9fe9fb9dfb2e29e694d6bf82153b9e157821a2..a42556651d00588accacc44343bb19cc60da3255 100644 (file)
--- a/demo.cpp
+++ b/demo.cpp
@@ -180,6 +180,8 @@ int main(int argc, char **argv)
        init_movit(".", MOVIT_DEBUG_ON);
        printf("GPU texture subpixel precision: about %.1f bits\n",
                log2(1.0f / movit_texel_subpixel_precision));
+       printf("Wrongly rounded x+0.48 or x+0.52 values: %d/510\n",
+               movit_num_wrongly_rounded);
        
        unsigned img_w, img_h;
        unsigned char *src_img = load_image(argc > 1 ? argv[1] : "blg_wheels_woman_1.jpg", &img_w, &img_h);