1 /* 2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_STATS_PLOTTER_H_ 12 #define MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_STATS_PLOTTER_H_ 13 14 #include <memory> 15 #include <string> 16 17 #include "absl/strings/string_view.h" 18 #include "modules/audio_coding/neteq/tools/neteq_delay_analyzer.h" 19 #include "modules/audio_coding/neteq/tools/neteq_stats_getter.h" 20 #include "modules/audio_coding/neteq/tools/neteq_test.h" 21 22 namespace webrtc { 23 namespace test { 24 25 class NetEqStatsPlotter : public NetEqSimulationEndedCallback { 26 public: 27 NetEqStatsPlotter(bool make_matlab_plot, 28 bool make_python_plot, 29 bool show_concealment_events, 30 absl::string_view base_file_name); 31 32 void SimulationEnded(int64_t simulation_time_ms) override; 33 stats_getter()34 NetEqStatsGetter* stats_getter() { return stats_getter_.get(); } 35 36 private: 37 std::unique_ptr<NetEqStatsGetter> stats_getter_; 38 const bool make_matlab_plot_; 39 const bool make_python_plot_; 40 const bool show_concealment_events_; 41 const std::string base_file_name_; 42 }; 43 44 } // namespace test 45 } // namespace webrtc 46 47 #endif // MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_STATS_PLOTTER_H_ 48