| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |