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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.cc

Issue 2999063002: Add flag enabling more packets to be retransmittable. (Closed)
Patch Set: Addressed comments Created 3 years, 3 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 payload_size_ -= next_packet_payload_len; 101 payload_size_ -= next_packet_payload_len;
102 --num_packets_left_; 102 --num_packets_left_;
103 // Packets left to produce and data left to split should end at the same time. 103 // Packets left to produce and data left to split should end at the same time.
104 RTC_DCHECK_EQ(num_packets_left_ == 0, payload_size_ == 0); 104 RTC_DCHECK_EQ(num_packets_left_ == 0, payload_size_ == 0);
105 105
106 packet->SetMarker(payload_size_ == 0); 106 packet->SetMarker(payload_size_ == 0);
107 107
108 return true; 108 return true;
109 } 109 }
110 110
111 ProtectionType RtpPacketizerGeneric::GetProtectionType() {
112 return kProtectedPacket;
113 }
114
115 StorageType RtpPacketizerGeneric::GetStorageType(
116 uint32_t retransmission_settings) {
117 return kAllowRetransmission;
118 }
119
120 std::string RtpPacketizerGeneric::ToString() { 111 std::string RtpPacketizerGeneric::ToString() {
121 return "RtpPacketizerGeneric"; 112 return "RtpPacketizerGeneric";
122 } 113 }
123 114
124 bool RtpDepacketizerGeneric::Parse(ParsedPayload* parsed_payload, 115 bool RtpDepacketizerGeneric::Parse(ParsedPayload* parsed_payload,
125 const uint8_t* payload_data, 116 const uint8_t* payload_data,
126 size_t payload_data_length) { 117 size_t payload_data_length) {
127 assert(parsed_payload != NULL); 118 assert(parsed_payload != NULL);
128 if (payload_data_length == 0) { 119 if (payload_data_length == 0) {
129 LOG(LS_ERROR) << "Empty payload."; 120 LOG(LS_ERROR) << "Empty payload.";
(...skipping 11 matching lines...) Expand all
141 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0; 132 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0;
142 parsed_payload->type.Video.codec = kRtpVideoGeneric; 133 parsed_payload->type.Video.codec = kRtpVideoGeneric;
143 parsed_payload->type.Video.width = 0; 134 parsed_payload->type.Video.width = 0;
144 parsed_payload->type.Video.height = 0; 135 parsed_payload->type.Video.height = 0;
145 136
146 parsed_payload->payload = payload_data; 137 parsed_payload->payload = payload_data;
147 parsed_payload->payload_length = payload_data_length; 138 parsed_payload->payload_length = payload_data_length;
148 return true; 139 return true;
149 } 140 }
150 } // namespace webrtc 141 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698