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

Side by Side Diff: media/cast/transport/cast_transport_config.cc

Issue 280993002: [Cast] Repair receiver playout time calculations and frame skip logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/transport/cast_transport_config.h" 5 #include "media/cast/transport/cast_transport_config.h"
6 6
7 namespace media { 7 namespace media {
8 namespace cast { 8 namespace cast {
9 namespace transport { 9 namespace transport {
10 10
11 namespace { 11 namespace {
12 const int kDefaultRtpMaxDelayMs = 100; 12 const int kDefaultRtpMaxDelayMs = 100;
13 } // namespace 13 } // namespace
14 14
15 bool CanDropFramesForCodec(AudioCodec audio_codec) {
16 switch (audio_codec) {
17 case kFakeSoftwareAudio:
18 case kOpus:
19 case kPcm16:
20 return true;
21 }
22 NOTREACHED();
23 return true;
24 }
25
26 bool CanDropFramesForCodec(VideoCodec video_codec) {
27 switch (video_codec) {
28 case kFakeSoftwareVideo:
29 return true;
30 case kVp8:
31 case kH264:
32 return false;
33 }
34 NOTREACHED();
35 return true;
36 }
37
15 RtpConfig::RtpConfig() 38 RtpConfig::RtpConfig()
16 : ssrc(0), 39 : ssrc(0),
17 max_delay_ms(kDefaultRtpMaxDelayMs), 40 max_delay_ms(kDefaultRtpMaxDelayMs),
18 payload_type(0) {} 41 payload_type(0) {}
19 42
20 RtpConfig::~RtpConfig() {} 43 RtpConfig::~RtpConfig() {}
21 44
22 CastTransportRtpConfig::CastTransportRtpConfig() 45 CastTransportRtpConfig::CastTransportRtpConfig()
23 : max_outstanding_frames(-1) {} 46 : max_outstanding_frames(-1) {}
24 47
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 : last_rr(0), delay_since_last_rr(0) {} 95 : last_rr(0), delay_since_last_rr(0) {}
73 RtcpDlrrReportBlock::~RtcpDlrrReportBlock() {} 96 RtcpDlrrReportBlock::~RtcpDlrrReportBlock() {}
74 97
75 SendRtcpFromRtpSenderData::SendRtcpFromRtpSenderData() 98 SendRtcpFromRtpSenderData::SendRtcpFromRtpSenderData()
76 : packet_type_flags(0), sending_ssrc(0) {} 99 : packet_type_flags(0), sending_ssrc(0) {}
77 SendRtcpFromRtpSenderData::~SendRtcpFromRtpSenderData() {} 100 SendRtcpFromRtpSenderData::~SendRtcpFromRtpSenderData() {}
78 101
79 } // namespace transport 102 } // namespace transport
80 } // namespace cast 103 } // namespace cast
81 } // namespace media 104 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698