X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fplugins%2Fdenoiseseltempavg%2Fseltempavg.C;h=70a991ebf1ff114774e4f20e95e13bd8880bf9ce;hb=59753f0e4cfeca734e46ca9ea6dac84cb92bfdce;hp=b64d9768548ffd06675e3c846e64f465fc2c4968;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.C b/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.C index b64d9768..70a991eb 100644 --- a/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.C +++ b/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.C @@ -43,7 +43,7 @@ SelTempAvgConfig::SelTempAvgConfig() paranoid = 0; nosubtract = 0; offset_restartmarker_keyframe = 0; - offset_fixed_value = -1000; + offset_fixed_value = -15; gain = 1.00; avg_threshold_RY = 0; avg_threshold_GU = 0; avg_threshold_BV = 0; @@ -117,7 +117,7 @@ SelTempAvgMain::~SelTempAvgMain() if(history_valid) delete [] history_valid; } -const char* SelTempAvgMain::plugin_title() { return N_("Selective Temporal Averaging"); } +const char* SelTempAvgMain::plugin_title() { return _("Selective Temporal Averaging"); } int SelTempAvgMain::is_realtime() { return 1; } @@ -291,7 +291,8 @@ int SelTempAvgMain::process_buffer(VFrame *frame, read_frame(history[j], 0, history_frame[j], - frame_rate); + frame_rate, + 0); add_accum(history[j]); break; } @@ -317,7 +318,8 @@ int SelTempAvgMain::process_buffer(VFrame *frame, read_frame(frame, 0, i, - frame_rate); + frame_rate, + 0); add_accum(frame); //printf("SelTempAvgMain::process_buffer 1 %lld %lld %lld\n", prev_frame, start_position, i); } @@ -331,7 +333,8 @@ int SelTempAvgMain::process_buffer(VFrame *frame, read_frame(frame, 0, start_position, - frame_rate); + frame_rate, + 0); // Transfer accumulation to output with division if average is desired. @@ -814,6 +817,9 @@ void SelTempAvgMain::save_data(KeyFrame *keyframe) output.tag.set_property("MASK_BV", config.mask_BV); output.append_tag(); + output.tag.set_title("/SELECTIVE_TEMPORAL_AVERAGE"); + output.append_tag(); + output.append_newline(); output.terminate_string(); }