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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 int VCMFrameBuffer::Tl0PicId() const { | 61 int VCMFrameBuffer::Tl0PicId() const { |
62 return _sessionInfo.Tl0PicId(); | 62 return _sessionInfo.Tl0PicId(); |
63 } | 63 } |
64 | 64 |
65 bool VCMFrameBuffer::NonReference() const { | 65 bool VCMFrameBuffer::NonReference() const { |
66 return _sessionInfo.NonReference(); | 66 return _sessionInfo.NonReference(); |
67 } | 67 } |
68 | 68 |
69 std::vector<NaluInfo> VCMFrameBuffer::GetNaluInfos() const { | |
70 return _sessionInfo.GetNaluInfos(); | |
71 } | |
72 | |
73 void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { | 69 void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { |
74 _sessionInfo.SetGofInfo(gof_info, idx); | 70 _sessionInfo.SetGofInfo(gof_info, idx); |
75 // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. | 71 // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. |
76 _codecSpecificInfo.codecSpecific.VP9.temporal_idx = | 72 _codecSpecificInfo.codecSpecific.VP9.temporal_idx = |
77 gof_info.temporal_idx[idx]; | 73 gof_info.temporal_idx[idx]; |
78 _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = | 74 _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = |
79 gof_info.temporal_up_switch[idx]; | 75 gof_info.temporal_up_switch[idx]; |
80 } | 76 } |
81 | 77 |
82 bool VCMFrameBuffer::IsSessionComplete() const { | 78 bool VCMFrameBuffer::IsSessionComplete() const { |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 _length -= bytes_removed; | 266 _length -= bytes_removed; |
271 #endif | 267 #endif |
272 // Transfer frame information to EncodedFrame and create any codec | 268 // Transfer frame information to EncodedFrame and create any codec |
273 // specific information. | 269 // specific information. |
274 _frameType = _sessionInfo.FrameType(); | 270 _frameType = _sessionInfo.FrameType(); |
275 _completeFrame = _sessionInfo.complete(); | 271 _completeFrame = _sessionInfo.complete(); |
276 _missingFrame = !continuous; | 272 _missingFrame = !continuous; |
277 } | 273 } |
278 | 274 |
279 } // namespace webrtc | 275 } // namespace webrtc |
OLD | NEW |