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

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

Issue 2341713002: Use sps and pps to determine decodability of H.264 frames. (Closed)
Patch Set: comments addressed. Created 4 years, 2 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 _length -= bytes_removed; 270 _length -= bytes_removed;
267 #endif 271 #endif
268 // Transfer frame information to EncodedFrame and create any codec 272 // Transfer frame information to EncodedFrame and create any codec
269 // specific information. 273 // specific information.
270 _frameType = _sessionInfo.FrameType(); 274 _frameType = _sessionInfo.FrameType();
271 _completeFrame = _sessionInfo.complete(); 275 _completeFrame = _sessionInfo.complete();
272 _missingFrame = !continuous; 276 _missingFrame = !continuous;
273 } 277 }
274 278
275 } // namespace webrtc 279 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer.h ('k') | webrtc/modules/video_coding/jitter_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698