Normalize API rename part 2
authorRobin Gareus <robin@gareus.org>
Mon, 18 Jul 2016 15:31:50 +0000 (17:31 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 18 Jul 2016 15:37:13 +0000 (17:37 +0200)
gtk2_ardour/export_dialog.cc
gtk2_ardour/export_video_dialog.cc
libs/ardour/ardour/export_graph_builder.h
libs/ardour/ardour/export_status.h
libs/ardour/export_graph_builder.cc
libs/ardour/export_handler.cc
libs/ardour/export_status.cc
session_utils/export.cc

index 2922edf1179313e4490850d55ab3c2a0e72309a9..6b9d74e7bffb968dedbe4fa5fc4084875d4faf88 100644 (file)
@@ -406,12 +406,12 @@ ExportDialog::progress_timeout ()
        case ExportStatus::Normalizing:
                status_text = string_compose (_("Normalizing '%3' (timespan %1 of %2)"),
                                              status->timespan, status->total_timespans, status->timespan_name);
-               progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
+               progress = ((float) status->current_postprocessing_cycle) / status->total_postprocessing_cycles;
                break;
        case ExportStatus::Encoding:
                status_text = string_compose (_("Encoding '%3' (timespan %1 of %2)"),
                                              status->timespan, status->total_timespans, status->timespan_name);
-               progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
+               progress = ((float) status->current_postprocessing_cycle) / status->total_postprocessing_cycles;
                break;
        case ExportStatus::Tagging:
                status_text = string_compose (_("Tagging '%3' (timespan %1 of %2)"),
index c1589909b2c0f38ec7591138f90f5be8bed7011e..fba09e92704c7f0ee4d84163ea966f625aad3e65 100644 (file)
@@ -559,7 +559,7 @@ ExportVideoDialog::audio_progress_display ()
        switch (status->active_job) {
                case ExportStatus::Normalizing:
                        pbar.set_text (_("Normalizing audio"));
-                       progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
+                       progress = ((float) status->current_postprocessing_cycle) / status->total_postprocessing_cycles;
                        progress = progress / (_twopass ? 4.0 : 3.0) + (_twopass ? .25 : 1.0 / 3.0);
                        break;
                case ExportStatus::Exporting:
index 8b6f6ceb79441cf089bdcad35b71fa81ae5625c4..c9671d729bbb6388a9821a6a01ae640a9e2b7a81 100644 (file)
@@ -71,7 +71,7 @@ class LIBARDOUR_API ExportGraphBuilder
        bool post_process (); // returns true when finished
        bool need_postprocessing () const { return !intermediates.empty(); }
        bool realtime() const { return _realtime; }
-       unsigned get_normalize_cycle_count() const;
+       unsigned get_postprocessing_cycle_count() const;
 
        void reset ();
        void cleanup (bool remove_out_files = false);
@@ -155,7 +155,7 @@ class LIBARDOUR_API ExportGraphBuilder
                void remove_children (bool remove_out_files);
                bool operator== (FileSpec const & other_config) const;
 
-               unsigned get_normalize_cycle_count() const;
+               unsigned get_postprocessing_cycle_count() const;
 
                /// Returns true when finished
                bool process ();
index 4782f49cb4917ba82ee4d17bf6627b9051cb0702..99642a2d7c31fd6ad38e40644efda46a15c2df57 100644 (file)
@@ -78,8 +78,8 @@ class LIBARDOUR_API ExportStatus {
        volatile framecnt_t     total_frames_current_timespan;
        volatile framecnt_t     processed_frames_current_timespan;
 
-       volatile uint32_t       total_normalize_cycles;
-       volatile uint32_t       current_normalize_cycle;
+       volatile uint32_t       total_postprocessing_cycles;
+       volatile uint32_t       current_postprocessing_cycle;
 
        AnalysisResults         result_map;
 
index 521916706cee0ca3da08514400205eb691908d49..7c5a434beecd3a8975a550acd6be9829bdbd7d35 100644 (file)
@@ -98,11 +98,11 @@ ExportGraphBuilder::post_process ()
 }
 
 unsigned
-ExportGraphBuilder::get_normalize_cycle_count() const
+ExportGraphBuilder::get_postprocessing_cycle_count() const
 {
        unsigned max = 0;
        for (std::list<Intermediate *>::const_iterator it = intermediates.begin(); it != intermediates.end(); ++it) {
-               max = std::max(max, (*it)->get_normalize_cycle_count());
+               max = std::max(max, (*it)->get_postprocessing_cycle_count());
        }
        return max;
 }
@@ -516,7 +516,7 @@ ExportGraphBuilder::Intermediate::operator== (FileSpec const & other_config) con
 }
 
 unsigned
-ExportGraphBuilder::Intermediate::get_normalize_cycle_count() const
+ExportGraphBuilder::Intermediate::get_postprocessing_cycle_count() const
 {
        return static_cast<unsigned>(std::ceil(static_cast<float>(tmp_file->get_frames_written()) /
                                               max_frames_out));
index 8e24c80967e426943b8aaf8e186a7818ca3c6934..ac2f7b0bd37ac1718219eb46666938fcdf6cfbcc 100644 (file)
@@ -275,8 +275,8 @@ ExportHandler::process_timespan (framecnt_t frames)
        if (last_cycle) {
                post_processing = graph_builder->need_postprocessing ();
                if (post_processing) {
-                       export_status->total_normalize_cycles = graph_builder->get_normalize_cycle_count();
-                       export_status->current_normalize_cycle = 0;
+                       export_status->total_postprocessing_cycles = graph_builder->get_postprocessing_cycle_count();
+                       export_status->current_postprocessing_cycle = 0;
                } else {
                        finish_timespan ();
                        return 0;
@@ -300,7 +300,7 @@ ExportHandler::post_process ()
                }
        }
 
-       export_status->current_normalize_cycle++;
+       export_status->current_postprocessing_cycle++;
 
        return 0;
 }
index 170073974b2eff7a6ae5822b20c0c6c5488a6956..808d6f144c59d2d1617aee02243b7ffec8962dff 100644 (file)
@@ -50,8 +50,8 @@ ExportStatus::init ()
        total_frames_current_timespan = 0;
        processed_frames_current_timespan = 0;
 
-       total_normalize_cycles = 0;
-       current_normalize_cycle = 0;
+       total_postprocessing_cycles = 0;
+       current_postprocessing_cycle = 0;
        result_map.clear();
 }
 
index 289602ab0305d785d1b75ca8b99f169235e3057a..6ea7e2b5fdb3f0b92dc6b27d257c3897126abad9 100644 (file)
@@ -124,7 +124,7 @@ static int export_session (Session *session,
                double progress = 0.0;
                switch (status->active_job) {
                case ExportStatus::Normalizing:
-                       progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
+                       progress = ((float) status->current_postprocessing_cycle) / status->total_postprocessing_cycles;
                        printf ("* Normalizing %.1f%%      \r", 100. * progress); fflush (stdout);
                        break;
                case ExportStatus::Exporting: