prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / plugins / motion / motion.C
index 80fd43b7f4f048b4b69dc672d1608d75e8b5c292..2303bfb3416d55c44ead188c5bdb687ebbef559b 100644 (file)
@@ -263,7 +263,7 @@ MotionMain::~MotionMain()
        delete rotate_target_dst;
 }
 
-const char* MotionMain::plugin_title() { return N_("Motion"); }
+const char* MotionMain::plugin_title() { return _("Motion"); }
 int MotionMain::is_realtime() { return 1; }
 int MotionMain::is_multichannel() { return 1; }
 
@@ -971,17 +971,20 @@ printf("MotionMain::process_buffer %d start_position=%lld\n", __LINE__, start_po
                        read_frame(prev_global_ref,
                                reference_layer,
                                previous_frame_number,
-                               frame_rate);
+                               frame_rate,
+                               0);
                }
 
                read_frame(current_global_ref,
                        reference_layer,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
                read_frame(global_target_src,
                        target_layer,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
 
 
 
@@ -1035,16 +1038,19 @@ printf("MotionMain::process_buffer %d start_position=%lld\n", __LINE__, start_po
                        read_frame(prev_rotate_ref,
                                reference_layer,
                                previous_frame_number,
-                               frame_rate);
+                               frame_rate,
+                               0);
                }
                read_frame(current_rotate_ref,
                        reference_layer,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
                read_frame(rotate_target_src,
                        target_layer,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
        }
 
 
@@ -1089,7 +1095,8 @@ printf("MotionMain::process_buffer %d start_position=%lld\n", __LINE__, start_po
                read_frame(frame[target_layer],
                        target_layer,
                        start_position,
-                       frame_rate);
+                       frame_rate,
+                       0);
        }
 
        if(config.draw_vectors)
@@ -1642,7 +1649,7 @@ float RotateScan::scan_frame(VFrame *previous_frame,
                case MotionScan::LOAD:
                {
                        char string[BCTEXTLEN];
-                       sprintf(string, "%s" _LDv(06),
+                       sprintf(string, "%s%06jd",
                                 ROTATION_FILE, plugin->get_source_position());
                        FILE *input = fopen(string, "r");
                        if(input)
@@ -1814,7 +1821,7 @@ float RotateScan::scan_frame(VFrame *previous_frame,
        if(!skip && plugin->config.tracking_type == MotionScan::SAVE)
        {
                char string[BCTEXTLEN];
-               sprintf(string, "%s" _LDv(06),
+               sprintf(string, "%s%06jd",
                        ROTATION_FILE, plugin->get_source_position());
                FILE *output = fopen(string, "w");
                if(output)