• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2016 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_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP_WRITER_H_
12 #define MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP_WRITER_H_
13 
14 #include <memory>
15 
16 #include "modules/audio_coding/audio_network_adaptor/controller.h"
17 #include "modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h"
18 #include "rtc_base/constructor_magic.h"
19 #include "rtc_base/ignore_wundef.h"
20 #include "rtc_base/system/file_wrapper.h"
21 #if WEBRTC_ENABLE_PROTOBUF
22 RTC_PUSH_IGNORING_WUNDEF()
23 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
24 #include "external/webrtc/webrtc/modules/audio_coding/audio_network_adaptor/config.pb.h"
25 #else
26 #include "modules/audio_coding/audio_network_adaptor/config.pb.h"
27 #endif
RTC_POP_IGNORING_WUNDEF()28 RTC_POP_IGNORING_WUNDEF()
29 #endif
30 
31 namespace webrtc {
32 
33 class DebugDumpWriter {
34  public:
35   static std::unique_ptr<DebugDumpWriter> Create(FILE* file_handle);
36 
37   virtual ~DebugDumpWriter() = default;
38 
39   virtual void DumpEncoderRuntimeConfig(const AudioEncoderRuntimeConfig& config,
40                                         int64_t timestamp) = 0;
41 
42   virtual void DumpNetworkMetrics(const Controller::NetworkMetrics& metrics,
43                                   int64_t timestamp) = 0;
44 
45 #if WEBRTC_ENABLE_PROTOBUF
46   virtual void DumpControllerManagerConfig(
47       const audio_network_adaptor::config::ControllerManager&
48           controller_manager_config,
49       int64_t timestamp) = 0;
50 #endif
51 };
52 
53 }  // namespace webrtc
54 
55 #endif  // MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP_WRITER_H_
56