X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fyuv411%2Fyuv411win.C;h=e80f1439fa6ecc4f5c3b755b9c7032d019c503dc;hb=0c4a2483761f458447fc3fa451bf1271caa75df5;hp=271389a9de3e6ca2af00f82473be830fcd957dff;hpb=5ec378f09aeeb646705fdb8035b39a186374fba0;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/yuv411/yuv411win.C b/cinelerra-5.1/plugins/yuv411/yuv411win.C index 271389a9..e80f1439 100644 --- a/cinelerra-5.1/plugins/yuv411/yuv411win.C +++ b/cinelerra-5.1/plugins/yuv411/yuv411win.C @@ -1,11 +1,14 @@ #include "bcdisplayinfo.h" +#include "edl.h" +#include "edlsession.h" #include "yuv411win.h" #include "language.h" yuv411Window::yuv411Window(yuv411Main *client) - : PluginClientWindow(client, xS(260), yS(230), xS(260), yS(230), 0) + : PluginClientWindow(client, xS(260), yS(250), xS(260), yS(250), 0) { this->client = client; + colormodel = -1; } yuv411Window::~yuv411Window() @@ -44,13 +47,21 @@ void yuv411Window::create_objects() add_subwindow(new BC_Title(x, y, _("Bias:"))); add_subwindow(bias=new yuv411Bias(client,x1,y)); y += ys30; - add_subwindow(reset = new yuv411Reset(client, this, x, y+ys10)); + int y1 = get_h() - yuv411Reset::calculate_h() - yS(20); + add_subwindow(reset = new yuv411Reset(client, this, x, y1+ys10)); show_window(); flush(); yuv_warning = new BC_Title(x, y, _("Warning: colormodel not YUV"),MEDIUMFONT,RED); add_subwindow(yuv_warning); - yuv_warning->hide_window(); + EDL *edl = client->get_edl(); + colormodel = edl->session->color_model; + switch( colormodel ) { + case BC_YUV888: + case BC_YUVA8888: + yuv_warning->hide_window(); + break; + } } void yuv411Window::update() @@ -181,4 +192,3 @@ void yuv411Window::show_warning(int warn) yuv_warning->hide_window(); } -