| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
| 13 | 13 |
| 14 #include <string> |
| 14 #include <vector> | 15 #include <vector> |
| 15 | 16 |
| 16 #include "webrtc/base/optional.h" | 17 #include "webrtc/base/optional.h" |
| 17 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
| 18 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h" | 19 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h" |
| 19 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" | 20 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
| 20 #include "webrtc/modules/include/module.h" | 21 #include "webrtc/modules/include/module.h" |
| 21 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
| 22 #include "webrtc/typedefs.h" | 23 #include "webrtc/typedefs.h" |
| 23 | 24 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // -receive_codec : parameters of the codec to be registered, c.f. | 465 // -receive_codec : parameters of the codec to be registered, c.f. |
| 465 // common_types.h for the definition of | 466 // common_types.h for the definition of |
| 466 // CodecInst. | 467 // CodecInst. |
| 467 // | 468 // |
| 468 // Return value: | 469 // Return value: |
| 469 // -1 if failed to register the codec | 470 // -1 if failed to register the codec |
| 470 // 0 if the codec registered successfully. | 471 // 0 if the codec registered successfully. |
| 471 // | 472 // |
| 472 virtual int RegisterReceiveCodec(const CodecInst& receive_codec) = 0; | 473 virtual int RegisterReceiveCodec(const CodecInst& receive_codec) = 0; |
| 473 | 474 |
| 475 // Registers an external decoder. The name is only used to provide information |
| 476 // back to the caller about the decoder. Hence, the name is arbitrary, and may |
| 477 // be empty. |
| 474 virtual int RegisterExternalReceiveCodec(int rtp_payload_type, | 478 virtual int RegisterExternalReceiveCodec(int rtp_payload_type, |
| 475 AudioDecoder* external_decoder, | 479 AudioDecoder* external_decoder, |
| 476 int sample_rate_hz, | 480 int sample_rate_hz, |
| 477 int num_channels) = 0; | 481 int num_channels, |
| 482 const std::string& name) = 0; |
| 478 | 483 |
| 479 /////////////////////////////////////////////////////////////////////////// | 484 /////////////////////////////////////////////////////////////////////////// |
| 480 // int32_t UnregisterReceiveCodec() | 485 // int32_t UnregisterReceiveCodec() |
| 481 // Unregister the codec currently registered with a specific payload type | 486 // Unregister the codec currently registered with a specific payload type |
| 482 // from the list of possible receive codecs. | 487 // from the list of possible receive codecs. |
| 483 // | 488 // |
| 484 // Input: | 489 // Input: |
| 485 // -payload_type : The number representing the payload type to | 490 // -payload_type : The number representing the payload type to |
| 486 // unregister. | 491 // unregister. |
| 487 // | 492 // |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 virtual std::vector<uint16_t> GetNackList( | 737 virtual std::vector<uint16_t> GetNackList( |
| 733 int64_t round_trip_time_ms) const = 0; | 738 int64_t round_trip_time_ms) const = 0; |
| 734 | 739 |
| 735 virtual void GetDecodingCallStatistics( | 740 virtual void GetDecodingCallStatistics( |
| 736 AudioDecodingCallStats* call_stats) const = 0; | 741 AudioDecodingCallStats* call_stats) const = 0; |
| 737 }; | 742 }; |
| 738 | 743 |
| 739 } // namespace webrtc | 744 } // namespace webrtc |
| 740 | 745 |
| 741 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 746 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
| OLD | NEW |