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

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

Issue 2990463002: [EXPERIMENTAL] Generic stereo codec with index header sending merged frames
Patch Set: Created 3 years, 5 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
« no previous file with comments | « webrtc/video/payload_router.cc ('k') | webrtc/video_send_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webrtc/video/video_send_stream.h" 10 #include "webrtc/video/video_send_stream.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 namespace { 273 namespace {
274 274
275 bool PayloadTypeSupportsSkippingFecPackets(const std::string& payload_name) { 275 bool PayloadTypeSupportsSkippingFecPackets(const std::string& payload_name) {
276 rtc::Optional<VideoCodecType> codecType = 276 rtc::Optional<VideoCodecType> codecType =
277 PayloadNameToCodecType(payload_name); 277 PayloadNameToCodecType(payload_name);
278 if (codecType && 278 if (codecType &&
279 (*codecType == kVideoCodecVP8 || *codecType == kVideoCodecVP9)) { 279 (*codecType == kVideoCodecVP8 || *codecType == kVideoCodecVP9)) {
280 return true; 280 return true;
281 } 281 }
282 RTC_DCHECK((codecType && *codecType == kVideoCodecH264) || 282 RTC_DCHECK((codecType && *codecType == kVideoCodecH264) ||
283 (codecType && *codecType == kVideoCodecStereo) ||
283 payload_name == "FAKE") 284 payload_name == "FAKE")
284 << "unknown payload_name " << payload_name; 285 << "unknown payload_name " << payload_name;
285 return false; 286 return false;
286 } 287 }
287 288
288 int CalculateMaxPadBitrateBps(std::vector<VideoStream> streams, 289 int CalculateMaxPadBitrateBps(std::vector<VideoStream> streams,
289 int min_transmit_bitrate_bps, 290 int min_transmit_bitrate_bps,
290 bool pad_to_min_bitrate) { 291 bool pad_to_min_bitrate) {
291 int pad_up_to_bitrate_bps = 0; 292 int pad_up_to_bitrate_bps = 0;
292 // Calculate max padding bitrate for a multi layer codec. 293 // Calculate max padding bitrate for a multi layer codec.
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 std::min(config_->rtp.max_packet_size, 1371 std::min(config_->rtp.max_packet_size,
1371 kPathMTU - transport_overhead_bytes_per_packet_); 1372 kPathMTU - transport_overhead_bytes_per_packet_);
1372 1373
1373 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { 1374 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) {
1374 rtp_rtcp->SetMaxRtpPacketSize(rtp_packet_size); 1375 rtp_rtcp->SetMaxRtpPacketSize(rtp_packet_size);
1375 } 1376 }
1376 } 1377 }
1377 1378
1378 } // namespace internal 1379 } // namespace internal
1379 } // namespace webrtc 1380 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/payload_router.cc ('k') | webrtc/video_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698