• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "modules/audio_coding/neteq/tools/neteq_delay_analyzer.h"
18 #include "modules/audio_coding/neteq/tools/neteq_stats_getter.h"
19 #include "modules/audio_coding/neteq/tools/neteq_test.h"
20 
21 namespace webrtc {
22 namespace test {
23 
24 class NetEqStatsPlotter : public NetEqSimulationEndedCallback {
25  public:
26   NetEqStatsPlotter(bool make_matlab_plot,
27                     bool make_python_plot,
28                     bool show_concealment_events,
29                     std::string base_file_name);
30 
31   void SimulationEnded(int64_t simulation_time_ms, NetEq* neteq) override;
32 
stats_getter()33   NetEqStatsGetter* stats_getter() { return stats_getter_.get(); }
34 
35  private:
36   std::unique_ptr<NetEqStatsGetter> stats_getter_;
37   const bool make_matlab_plot_;
38   const bool make_python_plot_;
39   const bool show_concealment_events_;
40   const std::string base_file_name_;
41 };
42 
43 }  // namespace test
44 }  // namespace webrtc
45 
46 #endif  // MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_STATS_PLOTTER_H_
47