Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1861)

Unified Diff: webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h

Issue 2266403005: Make neteq_rtpplay parse RTP header extensions (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@neteq-fake-decode-cng
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h
diff --git a/webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h b/webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h
index 4e350a6799c1e8289552b470378cb6ba4b893746..35b54fa41fd9f6bdf3982269327e959c44c8dc8f 100644
--- a/webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h
+++ b/webrtc/modules/audio_coding/neteq/tools/neteq_packet_source_input.h
@@ -11,9 +11,11 @@
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PACKET_SOURCE_INPUT_H_
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PACKET_SOURCE_INPUT_H_
+#include <map>
#include <string>
#include "webrtc/modules/audio_coding/neteq/tools/neteq_input.h"
+#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
namespace webrtc {
namespace test {
@@ -24,6 +26,8 @@ class RtcEventLogSource;
// An adapter class to dress up a PacketSource object as a NetEqInput.
class NetEqPacketSourceInput : public NetEqInput {
public:
+ using RtpHeaderExtensionMap = std::map<int, webrtc::RTPExtensionType>;
+
NetEqPacketSourceInput();
rtc::Optional<int64_t> NextPacketTime() const override;
std::unique_ptr<PacketData> PopPacket() override;
@@ -43,7 +47,8 @@ class NetEqPacketSourceInput : public NetEqInput {
// Implementation of NetEqPacketSourceInput to be used with an RtpFileSource.
class NetEqRtpDumpInput final : public NetEqPacketSourceInput {
public:
- explicit NetEqRtpDumpInput(const std::string& file_name);
+ NetEqRtpDumpInput(const std::string& file_name,
+ const RtpHeaderExtensionMap& hdr_ext_map);
rtc::Optional<int64_t> NextOutputEventTime() const override;
void AdvanceOutputEvent() override;
@@ -61,7 +66,8 @@ class NetEqRtpDumpInput final : public NetEqPacketSourceInput {
// RtcEventLogSource.
class NetEqEventLogInput final : public NetEqPacketSourceInput {
public:
- explicit NetEqEventLogInput(const std::string& file_name);
+ NetEqEventLogInput(const std::string& file_name,
+ const RtpHeaderExtensionMap& hdr_ext_map);
rtc::Optional<int64_t> NextOutputEventTime() const override;
void AdvanceOutputEvent() override;

Powered by Google App Engine
This is Rietveld 408576698