dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / yuvshift / yuvshift.C
index 2b814c03fb76e3e216a2b6c7107ee738bd2f255a..bab83bb432f1da07bf7551bb0a55af083e70153a 100644 (file)
@@ -25,7 +25,7 @@
 #include "filexml.h"
 #include "guicast.h"
 #include "language.h"
-#include "cicolors.h"
+#include "bccolors.h"
 #include "pluginvclient.h"
 #include "vframe.h"
 
@@ -208,7 +208,7 @@ YUVShiftEffect::~YUVShiftEffect()
        delete temp_frame;
 }
 
-const char* YUVShiftEffect::plugin_title() { return _("YUVShift"); }
+const char* YUVShiftEffect::plugin_title() { return N_("YUVShift"); }
 int YUVShiftEffect::is_realtime() { return 1; }
 
 
@@ -235,7 +235,7 @@ void YUVShiftEffect::update_gui()
 void YUVShiftEffect::save_data(KeyFrame *keyframe)
 {
        FileXML output;
-       output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+       output.set_shared_output(keyframe->xbuf);
        output.tag.set_title("YUVSHIFT");
        output.tag.set_property("Y_DX", config.y_dx);
        output.tag.set_property("Y_DY", config.y_dy);
@@ -253,7 +253,7 @@ void YUVShiftEffect::save_data(KeyFrame *keyframe)
 void YUVShiftEffect::read_data(KeyFrame *keyframe)
 {
        FileXML input;
-       input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+       input.set_shared_input(keyframe->xbuf);
        while(!input.read_tag())
        {
                if(input.tag.title_is("YUVSHIFT"))
@@ -343,7 +343,7 @@ int YUVShiftEffect::process_realtime(VFrame *input, VFrame *output)
                        delete temp_frame;  temp_frame = 0;
                }
                if( !temp_frame )
-                       temp_frame = new VFrame(w, h, color_model);
+                       temp_frame = new VFrame(w, h, color_model, 0);
                frame = temp_frame;
                if( color_model != input->get_color_model() )
                        BC_CModels::transfer(frame->get_rows(), input->get_rows(),