mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-15 14:50:39 +01:00

We're moving to an RtcEventLog interface that accepts std::unique_ptr<EventLog> and stores the event for encoding when encoding becomes necessary, rather than before. This will be useful while we maintain the legacy (current) encoding alongside the new encoding on which we're working. This CL introduces RtcEventLogEncoderLegacy, which takes provides the encoding currently done by RtcEventLogImpl. After this, we can modify RtcEventLogImpl to use a dynamically chosen encoding, allowing us to easily choose between the current encoding and the new one on which we're working. BUG=webrtc:8111 TBR=stefan@webrtc.org Change-Id: I3dde7e222a40a117549a094a59b04219467f490a Reviewed-on: https://webrtc-review.googlesource.com/1364 Commit-Queue: Elad Alon <eladalon@webrtc.org> Reviewed-by: Elad Alon <eladalon@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20116}
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "logging/rtc_event_log/rtc_stream_config.h"
|
|
|
|
namespace webrtc {
|
|
namespace rtclog {
|
|
|
|
StreamConfig::StreamConfig() {}
|
|
|
|
StreamConfig::~StreamConfig() {}
|
|
|
|
bool StreamConfig::operator==(const StreamConfig& other) const {
|
|
return local_ssrc == other.local_ssrc && remote_ssrc == other.remote_ssrc &&
|
|
rtx_ssrc == other.rtx_ssrc && rsid == other.rsid &&
|
|
remb == other.remb && rtcp_mode == other.rtcp_mode &&
|
|
rtp_extensions == other.rtp_extensions && codecs == other.codecs;
|
|
}
|
|
|
|
StreamConfig::Codec::Codec(const std::string& payload_name,
|
|
int payload_type,
|
|
int rtx_payload_type)
|
|
: payload_name(payload_name),
|
|
payload_type(payload_type),
|
|
rtx_payload_type(rtx_payload_type) {}
|
|
|
|
bool StreamConfig::Codec::operator==(const Codec& other) const {
|
|
return payload_name == other.payload_name &&
|
|
payload_type == other.payload_type &&
|
|
rtx_payload_type == other.rtx_payload_type;
|
|
}
|
|
|
|
} // namespace rtclog
|
|
} // namespace webrtc
|