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

Side by Side Diff: call/video_receive_stream.h

Issue 2826263004: Move responsibility for RTP header extensions on video receive. (Closed)
Patch Set: Crude rebase. Created 3 years, 2 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 | « call/rampup_tests.cc ('k') | call/video_receive_stream.cc » ('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 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool protected_by_flexfec = false; 177 bool protected_by_flexfec = false;
178 178
179 // Map from rtx payload type -> media payload type. 179 // Map from rtx payload type -> media payload type.
180 // For RTX to be enabled, both an SSRC and this mapping are needed. 180 // For RTX to be enabled, both an SSRC and this mapping are needed.
181 std::map<int, int> rtx_associated_payload_types; 181 std::map<int, int> rtx_associated_payload_types;
182 // TODO(nisse): This is a temporary accessor function to enable 182 // TODO(nisse): This is a temporary accessor function to enable
183 // reversing and renaming of the rtx_payload_types mapping. 183 // reversing and renaming of the rtx_payload_types mapping.
184 void AddRtxBinding(int rtx_payload_type, int media_payload_type) { 184 void AddRtxBinding(int rtx_payload_type, int media_payload_type) {
185 rtx_associated_payload_types[rtx_payload_type] = media_payload_type; 185 rtx_associated_payload_types[rtx_payload_type] = media_payload_type;
186 } 186 }
187
188 // RTP header extensions used for the received stream.
189 std::vector<RtpExtension> extensions;
190 } rtp; 187 } rtp;
191 188
192 // Transport for outgoing packets (RTCP). 189 // Transport for outgoing packets (RTCP).
193 Transport* rtcp_send_transport = nullptr; 190 Transport* rtcp_send_transport = nullptr;
194 191
195 // Must not be 'nullptr' when the stream is started. 192 // Must not be 'nullptr' when the stream is started.
196 rtc::VideoSinkInterface<VideoFrame>* renderer = nullptr; 193 rtc::VideoSinkInterface<VideoFrame>* renderer = nullptr;
197 194
198 // Expected delay needed by the renderer, i.e. the frame will be delivered 195 // Expected delay needed by the renderer, i.e. the frame will be delivered
199 // this many milliseconds, if possible, earlier than the ideal render time. 196 // this many milliseconds, if possible, earlier than the ideal render time.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 virtual void AddSecondarySink(RtpPacketSinkInterface* sink) = 0; 244 virtual void AddSecondarySink(RtpPacketSinkInterface* sink) = 0;
248 virtual void RemoveSecondarySink(const RtpPacketSinkInterface* sink) = 0; 245 virtual void RemoveSecondarySink(const RtpPacketSinkInterface* sink) = 0;
249 246
250 protected: 247 protected:
251 virtual ~VideoReceiveStream() {} 248 virtual ~VideoReceiveStream() {}
252 }; 249 };
253 250
254 } // namespace webrtc 251 } // namespace webrtc
255 252
256 #endif // CALL_VIDEO_RECEIVE_STREAM_H_ 253 #endif // CALL_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « call/rampup_tests.cc ('k') | call/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698