| 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 |
| 69 void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { | 73 void VCMFrameBuffer::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) { |
| 70 _sessionInfo.SetGofInfo(gof_info, idx); | 74 _sessionInfo.SetGofInfo(gof_info, idx); |
| 71 // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. | 75 // TODO(asapersson): Consider adding hdr->VP9.ref_picture_id for testing. |
| 72 _codecSpecificInfo.codecSpecific.VP9.temporal_idx = | 76 _codecSpecificInfo.codecSpecific.VP9.temporal_idx = |
| 73 gof_info.temporal_idx[idx]; | 77 gof_info.temporal_idx[idx]; |
| 74 _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = | 78 _codecSpecificInfo.codecSpecific.VP9.temporal_up_switch = |
| 75 gof_info.temporal_up_switch[idx]; | 79 gof_info.temporal_up_switch[idx]; |
| 76 } | 80 } |
| 77 | 81 |
| 78 bool VCMFrameBuffer::IsSessionComplete() const { | 82 bool VCMFrameBuffer::IsSessionComplete() const { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 size_t bytes_removed = _sessionInfo.MakeDecodable(); | 260 size_t bytes_removed = _sessionInfo.MakeDecodable(); |
| 257 _length -= bytes_removed; | 261 _length -= bytes_removed; |
| 258 // Transfer frame information to EncodedFrame and create any codec | 262 // Transfer frame information to EncodedFrame and create any codec |
| 259 // specific information. | 263 // specific information. |
| 260 _frameType = _sessionInfo.FrameType(); | 264 _frameType = _sessionInfo.FrameType(); |
| 261 _completeFrame = _sessionInfo.complete(); | 265 _completeFrame = _sessionInfo.complete(); |
| 262 _missingFrame = !continuous; | 266 _missingFrame = !continuous; |
| 263 } | 267 } |
| 264 | 268 |
| 265 } // namespace webrtc | 269 } // namespace webrtc |
| OLD | NEW |