X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=demo.cpp;h=99fec55470cf31d7690ce9a372f58ec6f7b71a95;hb=29072985d0a00a53e5b578a1444cee61a0c9e1f2;hp=5bcfa4335a2670f1784878246bdc7f8460dd81c2;hpb=9447b2d234394c1d966f77ed87271a3625a81cdd;p=movit diff --git a/demo.cpp b/demo.cpp index 5bcfa43..99fec55 100644 --- a/demo.cpp +++ b/demo.cpp @@ -14,6 +14,8 @@ #include #include +#include + #include #include #include @@ -22,7 +24,6 @@ #include "effect.h" #include "effect_chain.h" #include "util.h" -#include "opengl.h" #include "widgets.h" #include "flat_input.h" @@ -159,7 +160,7 @@ int main(int argc, char **argv) log2(1.0f / movit_texel_subpixel_precision)); unsigned img_w, img_h; - unsigned char *src_img = load_image("blg_wheels_woman_1.jpg", &img_w, &img_h); + unsigned char *src_img = load_image(argc > 1 ? argv[1] : "blg_wheels_woman_1.jpg", &img_w, &img_h); EffectChain chain(WIDTH, HEIGHT); glViewport(0, 0, WIDTH, HEIGHT); @@ -178,6 +179,7 @@ int main(int argc, char **argv) //sandbox_effect->set_float("parm", 42.0f); //chain.add_effect(new MirrorEffect()); chain.add_output(inout_format); + chain.set_dither_bits(8); chain.finalize(); // generate a PBO to hold the data we read back with glReadPixels()