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

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

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 _latestPacketTimeMs = timeInMs; 148 _latestPacketTimeMs = timeInMs;
149 149
150 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ 150 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/
151 // ts_126114v120700p.pdf Section 7.4.5. 151 // ts_126114v120700p.pdf Section 7.4.5.
152 // The MTSI client shall add the payload bytes as defined in this clause 152 // The MTSI client shall add the payload bytes as defined in this clause
153 // onto the last RTP packet in each group of packets which make up a key 153 // onto the last RTP packet in each group of packets which make up a key
154 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265 154 // frame (I-frame or IDR frame in H.264 (AVC), or an IRAP picture in H.265
155 // (HEVC)). 155 // (HEVC)).
156 if (packet.markerBit) { 156 if (packet.markerBit) {
157 DCHECK(!_rotation_set); 157 RTC_DCHECK(!_rotation_set);
158 _rotation = packet.codecSpecificHeader.rotation; 158 _rotation = packet.codecSpecificHeader.rotation;
159 _rotation_set = true; 159 _rotation_set = true;
160 } 160 }
161 161
162 if (_sessionInfo.complete()) { 162 if (_sessionInfo.complete()) {
163 SetState(kStateComplete); 163 SetState(kStateComplete);
164 return kCompleteSession; 164 return kCompleteSession;
165 } else if (_sessionInfo.decodable()) { 165 } else if (_sessionInfo.decodable()) {
166 SetState(kStateDecodable); 166 SetState(kStateDecodable);
167 return kDecodableSession; 167 return kDecodableSession;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 _length -= bytes_removed; 279 _length -= bytes_removed;
280 #endif 280 #endif
281 // Transfer frame information to EncodedFrame and create any codec 281 // Transfer frame information to EncodedFrame and create any codec
282 // specific information. 282 // specific information.
283 _frameType = ConvertFrameType(_sessionInfo.FrameType()); 283 _frameType = ConvertFrameType(_sessionInfo.FrameType());
284 _completeFrame = _sessionInfo.complete(); 284 _completeFrame = _sessionInfo.complete();
285 _missingFrame = !continuous; 285 _missingFrame = !continuous;
286 } 286 }
287 287
288 } // namespace webrtc 288 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/source/codec_database.cc ('k') | webrtc/modules/video_coding/main/source/generic_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698