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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 1984983002: Remove use of RtpHeaderExtension and clean up (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed nit Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
(...skipping 17 matching lines...) Expand all
28 #include "webrtc/video_receive_stream.h" 28 #include "webrtc/video_receive_stream.h"
29 29
30 namespace webrtc { 30 namespace webrtc {
31 31
32 static const bool kEnableFrameRecording = false; 32 static const bool kEnableFrameRecording = false;
33 33
34 static bool UseSendSideBwe(const VideoReceiveStream::Config& config) { 34 static bool UseSendSideBwe(const VideoReceiveStream::Config& config) {
35 if (!config.rtp.transport_cc) 35 if (!config.rtp.transport_cc)
36 return false; 36 return false;
37 for (const auto& extension : config.rtp.extensions) { 37 for (const auto& extension : config.rtp.extensions) {
38 if (extension.name == RtpExtension::kTransportSequenceNumber) 38 if (extension.uri == RtpExtension::kTransportSequenceNumberUri)
39 return true; 39 return true;
40 } 40 }
41 return false; 41 return false;
42 } 42 }
43 43
44 std::string VideoReceiveStream::Decoder::ToString() const { 44 std::string VideoReceiveStream::Decoder::ToString() const {
45 std::stringstream ss; 45 std::stringstream ss;
46 ss << "{decoder: " << (decoder ? "(VideoDecoder)" : "nullptr"); 46 ss << "{decoder: " << (decoder ? "(VideoDecoder)" : "nullptr");
47 ss << ", payload_type: " << payload_type; 47 ss << ", payload_type: " << payload_type;
48 ss << ", payload_name: " << payload_name; 48 ss << ", payload_name: " << payload_name;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 const std::vector<uint16_t>& sequence_numbers) { 354 const std::vector<uint16_t>& sequence_numbers) {
355 rtp_stream_receiver_.RequestPacketRetransmit(sequence_numbers); 355 rtp_stream_receiver_.RequestPacketRetransmit(sequence_numbers);
356 } 356 }
357 357
358 void VideoReceiveStream::RequestKeyFrame() { 358 void VideoReceiveStream::RequestKeyFrame() {
359 rtp_stream_receiver_.RequestKeyFrame(); 359 rtp_stream_receiver_.RequestKeyFrame();
360 } 360 }
361 361
362 } // namespace internal 362 } // namespace internal
363 } // namespace webrtc 363 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698