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

Side by Side Diff: webrtc/modules/video_coding/frame_buffer.cc

Issue 2614503002: Reland of Rename RTPVideoHeader.isFirstPacket to .is_first_packet_in_frame. (Closed)
Patch Set: Add base/deprecation.h include. Created 3 years, 11 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // The MTSI client shall add the payload bytes as defined in this clause 154 // The MTSI client shall add the payload bytes as defined in this clause
155 // onto the last RTP packet in each group of packets which make up a key 155 // onto the last RTP packet in each group of packets which make up a key
156 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265 156 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265
157 // (HEVC)). 157 // (HEVC)).
158 if (packet.markerBit) { 158 if (packet.markerBit) {
159 RTC_DCHECK(!_rotation_set); 159 RTC_DCHECK(!_rotation_set);
160 rotation_ = packet.video_header.rotation; 160 rotation_ = packet.video_header.rotation;
161 _rotation_set = true; 161 _rotation_set = true;
162 } 162 }
163 163
164 if (packet.isFirstPacket) { 164 if (packet.is_first_packet_in_frame) {
165 playout_delay_ = packet.video_header.playout_delay; 165 playout_delay_ = packet.video_header.playout_delay;
166 } 166 }
167 167
168 if (_sessionInfo.complete()) { 168 if (_sessionInfo.complete()) {
169 SetState(kStateComplete); 169 SetState(kStateComplete);
170 return kCompleteSession; 170 return kCompleteSession;
171 } else if (_sessionInfo.decodable()) { 171 } else if (_sessionInfo.decodable()) {
172 SetState(kStateDecodable); 172 SetState(kStateDecodable);
173 return kDecodableSession; 173 return kDecodableSession;
174 } 174 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 size_t bytes_removed = _sessionInfo.MakeDecodable(); 260 size_t bytes_removed = _sessionInfo.MakeDecodable();
261 _length -= bytes_removed; 261 _length -= bytes_removed;
262 // Transfer frame information to EncodedFrame and create any codec 262 // Transfer frame information to EncodedFrame and create any codec
263 // specific information. 263 // specific information.
264 _frameType = _sessionInfo.FrameType(); 264 _frameType = _sessionInfo.FrameType();
265 _completeFrame = _sessionInfo.complete(); 265 _completeFrame = _sessionInfo.complete();
266 _missingFrame = !continuous; 266 _missingFrame = !continuous;
267 } 267 }
268 268
269 } // namespace webrtc 269 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/decoding_state_unittest.cc ('k') | webrtc/modules/video_coding/h264_sps_pps_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698