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

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

Issue 2037633002: Change VCMFrameBuffer and VCMEncodedFrame to use rotation from base class EncodedImage. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 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/modules/video_coding/encoded_frame.cc ('k') | no next file » | 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) 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 _latestPacketTimeMs = timeInMs; 146 _latestPacketTimeMs = timeInMs;
147 147
148 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ 148 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/
149 // ts_126114v120700p.pdf Section 7.4.5. 149 // ts_126114v120700p.pdf Section 7.4.5.
150 // The MTSI client shall add the payload bytes as defined in this clause 150 // The MTSI client shall add the payload bytes as defined in this clause
151 // onto the last RTP packet in each group of packets which make up a key 151 // onto the last RTP packet in each group of packets which make up a key
152 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265 152 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265
153 // (HEVC)). 153 // (HEVC)).
154 if (packet.markerBit) { 154 if (packet.markerBit) {
155 RTC_DCHECK(!_rotation_set); 155 RTC_DCHECK(!_rotation_set);
156 _rotation = packet.video_header.rotation; 156 rotation_ = packet.video_header.rotation;
157 _rotation_set = true; 157 _rotation_set = true;
158 } 158 }
159 159
160 if (packet.isFirstPacket) { 160 if (packet.isFirstPacket) {
161 playout_delay_ = packet.video_header.playout_delay; 161 playout_delay_ = packet.video_header.playout_delay;
162 } 162 }
163 163
164 if (_sessionInfo.complete()) { 164 if (_sessionInfo.complete()) {
165 SetState(kStateComplete); 165 SetState(kStateComplete);
166 return kCompleteSession; 166 return kCompleteSession;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 _length -= bytes_removed; 266 _length -= bytes_removed;
267 #endif 267 #endif
268 // Transfer frame information to EncodedFrame and create any codec 268 // Transfer frame information to EncodedFrame and create any codec
269 // specific information. 269 // specific information.
270 _frameType = _sessionInfo.FrameType(); 270 _frameType = _sessionInfo.FrameType();
271 _completeFrame = _sessionInfo.complete(); 271 _completeFrame = _sessionInfo.complete();
272 _missingFrame = !continuous; 272 _missingFrame = !continuous;
273 } 273 }
274 274
275 } // namespace webrtc 275 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/encoded_frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698