X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdenoisefft%2Fdenoisefft.C;h=7f84a76910d5f8cb0e8251a9b385eb9958dffa08;hb=593d61b4eab82d145ac16726370325d701c297a7;hp=21ce0c198b03acc22122f1ac19ae912c56a62c86;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/denoisefft/denoisefft.C b/cinelerra-5.1/plugins/denoisefft/denoisefft.C index 21ce0c19..7f84a769 100644 --- a/cinelerra-5.1/plugins/denoisefft/denoisefft.C +++ b/cinelerra-5.1/plugins/denoisefft/denoisefft.C @@ -211,7 +211,7 @@ DenoiseFFTSamples::DenoiseFFTSamples(DenoiseFFTEffect *plugin, int x, int y, char *text) - : BC_PopupMenu(x, y, 100, text, 1) + : BC_PopupMenu(x, y, xS(140), text, 1) { this->plugin = plugin; } @@ -227,10 +227,10 @@ int DenoiseFFTSamples::handle_event() DenoiseFFTWindow::DenoiseFFTWindow(DenoiseFFTEffect *plugin) : PluginClientWindow(plugin, - 300, - 130, - 300, - 130, + xS(300), + yS(130), + xS(300), + yS(130), 0) { this->plugin = plugin; @@ -238,19 +238,21 @@ DenoiseFFTWindow::DenoiseFFTWindow(DenoiseFFTEffect *plugin) void DenoiseFFTWindow::create_objects() { - int x = 10, y = 10; + int xs10 = xS(10), xs100 = xS(100), xs130 = xS(130); + int ys10 = yS(10), ys20 = yS(20); + int x = xs10, y = ys10; add_subwindow(new BC_Title(x, y, _("Denoise power:"))); - add_subwindow(level = new DenoiseFFTLevel(plugin, x + 130, y)); - y += level->get_h() + 10; + add_subwindow(level = new DenoiseFFTLevel(plugin, x + xs130, y)); + y += level->get_h() + ys10; add_subwindow(new BC_Title(x, y, _("Number of samples for reference:"))); - y += 20; + y += ys20; add_subwindow(new BC_Title(x, y, _("The keyframe is the start of the reference"))); - y += 20; + y += ys20; char string[BCTEXTLEN]; sprintf(string, "%d\n", plugin->config.samples); - add_subwindow(samples = new DenoiseFFTSamples(plugin, x + 100, y, string)); + add_subwindow(samples = new DenoiseFFTSamples(plugin, x + xs100, y, string)); for(int i = WINDOW_SIZE; i < 0x100000; ) { sprintf(string, "%d", i); @@ -432,10 +434,7 @@ void DenoiseFFTEffect::collect_noise() for(int i = 0; i < config.samples; i += WINDOW_SIZE) { collect_engine->process_buffer(collection_start, - WINDOW_SIZE, - 0, - get_direction()); - + WINDOW_SIZE, (Samples**)0, get_direction()); collection_start += step * WINDOW_SIZE; total_windows++; }