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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 int VCMFrameBuffer::Tl0PicId() const { | 70 int VCMFrameBuffer::Tl0PicId() const { |
71 return _sessionInfo.Tl0PicId(); | 71 return _sessionInfo.Tl0PicId(); |
72 } | 72 } |
73 | 73 |
74 bool VCMFrameBuffer::NonReference() const { | 74 bool VCMFrameBuffer::NonReference() const { |
75 return _sessionInfo.NonReference(); | 75 return _sessionInfo.NonReference(); |
76 } | 76 } |
77 | 77 |
| 78 void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { |
| 79 _sessionInfo.SetGofInfo(gof_info, idx); |
| 80 // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. |
| 81 _codecSpecificInfo.codecSpecific.VP9.temporal_idx = |
| 82 gof_info.temporal_idx[idx]; |
| 83 _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = |
| 84 gof_info.temporal_up_switch[idx]; |
| 85 } |
| 86 |
78 bool | 87 bool |
79 VCMFrameBuffer::IsSessionComplete() const { | 88 VCMFrameBuffer::IsSessionComplete() const { |
80 return _sessionInfo.complete(); | 89 return _sessionInfo.complete(); |
81 } | 90 } |
82 | 91 |
83 // Insert packet | 92 // Insert packet |
84 VCMFrameBufferEnum | 93 VCMFrameBufferEnum |
85 VCMFrameBuffer::InsertPacket(const VCMPacket& packet, | 94 VCMFrameBuffer::InsertPacket(const VCMPacket& packet, |
86 int64_t timeInMs, | 95 int64_t timeInMs, |
87 VCMDecodeErrorMode decode_error_mode, | 96 VCMDecodeErrorMode decode_error_mode, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 _length -= bytes_removed; | 288 _length -= bytes_removed; |
280 #endif | 289 #endif |
281 // Transfer frame information to EncodedFrame and create any codec | 290 // Transfer frame information to EncodedFrame and create any codec |
282 // specific information. | 291 // specific information. |
283 _frameType = _sessionInfo.FrameType(); | 292 _frameType = _sessionInfo.FrameType(); |
284 _completeFrame = _sessionInfo.complete(); | 293 _completeFrame = _sessionInfo.complete(); |
285 _missingFrame = !continuous; | 294 _missingFrame = !continuous; |
286 } | 295 } |
287 | 296 |
288 } // namespace webrtc | 297 } // namespace webrtc |
OLD | NEW |