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

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

Issue 2809653004: Revert of Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Created 3 years, 8 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/end_to_end_tests.cc ('k') | webrtc/video/receive_statistics_proxy.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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 rtc::CritScope lock(&crit_); 122 rtc::CritScope lock(&crit_);
123 RTC_DCHECK(!rtp_modules_.empty()); 123 RTC_DCHECK(!rtp_modules_.empty());
124 if (!active_) 124 if (!active_)
125 return Result(Result::ERROR_SEND_FAILED); 125 return Result(Result::ERROR_SEND_FAILED);
126 126
127 RTPVideoHeader rtp_video_header; 127 RTPVideoHeader rtp_video_header;
128 memset(&rtp_video_header, 0, sizeof(RTPVideoHeader)); 128 memset(&rtp_video_header, 0, sizeof(RTPVideoHeader));
129 if (codec_specific_info) 129 if (codec_specific_info)
130 CopyCodecSpecific(codec_specific_info, &rtp_video_header); 130 CopyCodecSpecific(codec_specific_info, &rtp_video_header);
131 rtp_video_header.rotation = encoded_image.rotation_; 131 rtp_video_header.rotation = encoded_image.rotation_;
132 rtp_video_header.content_type = encoded_image.content_type_;
133 rtp_video_header.playout_delay = encoded_image.playout_delay_; 132 rtp_video_header.playout_delay = encoded_image.playout_delay_;
134 133
135 int stream_index = rtp_video_header.simulcastIdx; 134 int stream_index = rtp_video_header.simulcastIdx;
136 RTC_DCHECK_LT(stream_index, rtp_modules_.size()); 135 RTC_DCHECK_LT(stream_index, rtp_modules_.size());
137 uint32_t frame_id; 136 uint32_t frame_id;
138 bool send_result = rtp_modules_[stream_index]->SendOutgoingData( 137 bool send_result = rtp_modules_[stream_index]->SendOutgoingData(
139 encoded_image._frameType, payload_type_, encoded_image._timeStamp, 138 encoded_image._frameType, payload_type_, encoded_image._timeStamp,
140 encoded_image.capture_time_ms_, encoded_image._buffer, 139 encoded_image.capture_time_ms_, encoded_image._buffer,
141 encoded_image._length, fragmentation, &rtp_video_header, &frame_id); 140 encoded_image._length, fragmentation, &rtp_video_header, &frame_id);
142 if (!send_result) 141 if (!send_result)
(...skipping 16 matching lines...) Expand all
159 BitrateAllocation layer_bitrate; 158 BitrateAllocation layer_bitrate;
160 for (int tl = 0; tl < kMaxTemporalStreams; ++tl) 159 for (int tl = 0; tl < kMaxTemporalStreams; ++tl)
161 layer_bitrate.SetBitrate(0, tl, bitrate.GetBitrate(si, tl)); 160 layer_bitrate.SetBitrate(0, tl, bitrate.GetBitrate(si, tl));
162 rtp_modules_[si]->SetVideoBitrateAllocation(layer_bitrate); 161 rtp_modules_[si]->SetVideoBitrateAllocation(layer_bitrate);
163 } 162 }
164 } 163 }
165 } 164 }
166 } 165 }
167 166
168 } // namespace webrtc 167 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698