fix mask vframe setup, add unshared vframe constructor
[goodguy/history.git] / cinelerra-5.1 / plugins / yuv411 / yuv411.C
index 161ae3318384d9085ea4cd7f7fd8fea1af125e48..84ead782ae1a9465cdd50efd56e2b848feb45edc 100644 (file)
@@ -42,10 +42,10 @@ int yuv411Config::equivalent(yuv411Config &that)
                bias == that.bias;
 }
 
-void yuv411Config::interpolate(yuv411Config &prev, 
-       yuv411Config &next, 
-       long prev_frame, 
-       long next_frame, 
+void yuv411Config::interpolate(yuv411Config &prev,
+       yuv411Config &next,
+       long prev_frame,
+       long next_frame,
        long current_frame)
 {
        this->int_horizontal = prev.int_horizontal;
@@ -72,7 +72,7 @@ yuv411Main::~yuv411Main()
 
 const char *yuv411Main::plugin_title() { return _("YUV411"); }
 int yuv411Main::is_realtime() { return 1; }
-       
+
 #define YUV411_MACRO(type, components) \
 { \
     type **input_rows = ((type**)input_ptr->get_rows()), **in_rows = input_rows; \
@@ -166,7 +166,7 @@ int yuv411Main::process_realtime(VFrame *input_ptr, VFrame *output_ptr)
                        temp_frame = 0;
                }
                if( !temp_frame )
-                       temp_frame = new VFrame(w, h, colormodel);
+                       temp_frame = new VFrame(w, h, colormodel, 0);
                if( input_ptr == output_ptr ) {
                        temp_frame->copy_from(input_ptr);
                        input_ptr = temp_frame;
@@ -218,7 +218,7 @@ void yuv411Main::render_gui(void *data)
        if(thread) {
                thread->window->lock_window();
                yuv411Window *window = (yuv411Window *)thread->window;
-               yuv411Main *client = (yuv411Main *)data; 
+               yuv411Main *client = (yuv411Main *)data;
                switch( client->colormodel ) {
                case BC_YUV888:
                case BC_YUVA8888:
@@ -247,15 +247,23 @@ void yuv411Main::save_data(KeyFrame *keyframe)
        if(config.avg_vertical) {
                output.tag.set_title("VERTICAL");
                output.append_tag();
+               output.tag.set_title("/VERTICAL");
+               output.append_tag();
        }
-       if(config.int_horizontal) {     
+       if(config.int_horizontal) {
                output.tag.set_title("HORIZONTAL");
                output.append_tag();
+               output.tag.set_title("/HORIZONTAL");
+               output.append_tag();
        }
-       if(config.inpainting ) {        
+       if(config.inpainting ) {
                output.tag.set_title("INPAINTING");
                output.append_tag();
+               output.tag.set_title("/INPAINTING");
+               output.append_tag();
        }
+       output.tag.set_title("/YUV411");
+       output.append_tag();
        output.terminate_string();
 }