prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / plugins / timeavg / timeavg.C
index f2e8b2338edfa12eb05bab6bbd5a820ed89f4354..7b7a0921adda0698ae2f2892fc6e617e67121f1d 100644 (file)
@@ -116,7 +116,7 @@ TimeAvgMain::~TimeAvgMain()
        if(history_valid) delete [] history_valid;
 }
 
-const char* TimeAvgMain::plugin_title() { return N_("Time Average"); }
+const char* TimeAvgMain::plugin_title() { return _("Time Average"); }
 int TimeAvgMain::is_realtime() { return 1; }
 
 
@@ -328,7 +328,8 @@ int TimeAvgMain::process_buffer(VFrame *frame,
                                                read_frame(history[j],
                                                        0,
                                                        history_frame[j],
-                                                       frame_rate);
+                                                       frame_rate,
+                                                       0);
                                                if(config.mode == TimeAvgConfig::AVERAGE ||
                                                        config.mode == TimeAvgConfig::ACCUMULATE)
                                                {
@@ -371,16 +372,17 @@ int TimeAvgMain::process_buffer(VFrame *frame,
                        reset_accum(w, h, color_model);
                }
 
-// printf("TimeAvgMain::process_buffer %d prev_frame=" _LD " start_position=" _LD "\n", 
+// printf("TimeAvgMain::process_buffer %d prev_frame=%jd start_position=%jd\n", 
 //   __LINE__, prev_frame, start_position);
                for(int64_t i = prev_frame; i <= start_position; i++)
                {
                        read_frame(frame,
                                0,
                                i,
-                               frame_rate);
+                               frame_rate,
+                               0);
                        add_accum(frame);
-printf("TimeAvgMain::process_buffer %d prev_frame=" _LD " start_position=" _LD " i=" _LD "\n", 
+printf("TimeAvgMain::process_buffer %d prev_frame=%jd start_position=%jd i=%jd\n", 
   __LINE__, prev_frame, start_position, i);
                }
 
@@ -1034,6 +1036,9 @@ void TimeAvgMain::save_data(KeyFrame *keyframe)
        output.tag.set_property("THRESHOLD", config.threshold);
        output.tag.set_property("BORDER", config.border);
        output.append_tag();
+       output.tag.set_title("/TIME_AVERAGE");
+       output.append_tag();
+       output.append_newline();
        output.terminate_string();
 }