X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdenoisevideo%2Fdenoisevideo.C;h=bdcc5558fc9a0d50705c76c3602a3050ec371fbf;hp=fa0bce49a80b61440d0d97fd240dfe9ad143a92d;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa;ds=sidebyside diff --git a/cinelerra-5.1/plugins/denoisevideo/denoisevideo.C b/cinelerra-5.1/plugins/denoisevideo/denoisevideo.C index fa0bce49..bdcc5558 100644 --- a/cinelerra-5.1/plugins/denoisevideo/denoisevideo.C +++ b/cinelerra-5.1/plugins/denoisevideo/denoisevideo.C @@ -105,8 +105,8 @@ DenoiseVideoFrames::DenoiseVideoFrames(DenoiseVideo *plugin, int x, int y) : BC_ISlider(x, y, 0, - 190, - 200, + xS(190), + yS(200), 1, 256, plugin->config.frames) @@ -234,10 +234,10 @@ int DenoiseVideoCountSame::handle_event() DenoiseVideoWindow::DenoiseVideoWindow(DenoiseVideo *plugin) : PluginClientWindow(plugin, - 250, - 300, - 250, - 300, + xS(250), + yS(300), + xS(250), + yS(300), 0) { this->plugin = plugin; @@ -246,38 +246,40 @@ DenoiseVideoWindow::DenoiseVideoWindow(DenoiseVideo *plugin) void DenoiseVideoWindow::create_objects() { - int x = 10, y = 10; + int xs10 = xS(10); + int ys5 = yS(5), ys10 = yS(10), ys30 = yS(30); + int x = xs10, y = ys10; BC_Title *title; BC_Bar *bar; add_subwindow(new BC_Title(x, y, _("Frames to accumulate:"))); - y += 20; + y += yS(20); add_subwindow(frames = new DenoiseVideoFrames(plugin, x, y)); - y += frames->get_h() + 5; + y += frames->get_h() + ys5; add_subwindow(title = new BC_Title(x, y, _("Threshold:"))); - y += title->get_h() + 5; + y += title->get_h() + ys5; threshold = new DenoiseVideoThreshold(plugin, this, x, y); threshold->create_objects(); - y += threshold->get_h() + 5; + y += threshold->get_h() + ys5; add_subwindow(bar = new BC_Bar(x, y, get_w() - x * 2)); - y += bar->get_h() + 5; + y += bar->get_h() + ys5; add_subwindow(count_changed = new DenoiseVideoCountChanged(plugin, this, x, y)); - y += count_changed->get_h() + 5; + y += count_changed->get_h() + ys5; add_subwindow(count_same = new DenoiseVideoCountSame(plugin, this, x, y)); - y += count_same->get_h() + 5; + y += count_same->get_h() + ys5; add_subwindow(bar = new BC_Bar(x, y, get_w() - x * 2)); - y += bar->get_h() + 5; + y += bar->get_h() + ys5; add_subwindow(do_r = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_r, _("Red"))); - y += 30; + y += ys30; add_subwindow(do_g = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_g, _("Green"))); - y += 30; + y += ys30; add_subwindow(do_b = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_b, _("Blue"))); - y += 30; + y += ys30; add_subwindow(do_a = new DenoiseVideoToggle(plugin, this, x, y, &plugin->config.do_a, _("Alpha"))); show_window(); flush();