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

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

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
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_
13 13
14 #include <vector>
15
14 #include "webrtc/modules/include/module_common_types.h" 16 #include "webrtc/modules/include/module_common_types.h"
15 #include "webrtc/modules/video_coding/include/video_coding.h" 17 #include "webrtc/modules/video_coding/include/video_coding.h"
16 #include "webrtc/modules/video_coding/encoded_frame.h" 18 #include "webrtc/modules/video_coding/encoded_frame.h"
17 #include "webrtc/modules/video_coding/jitter_buffer_common.h" 19 #include "webrtc/modules/video_coding/jitter_buffer_common.h"
18 #include "webrtc/modules/video_coding/session_info.h" 20 #include "webrtc/modules/video_coding/session_info.h"
19 #include "webrtc/typedefs.h" 21 #include "webrtc/typedefs.h"
20 22
21 namespace webrtc { 23 namespace webrtc {
22 24
23 class VCMFrameBuffer : public VCMEncodedFrame { 25 class VCMFrameBuffer : public VCMEncodedFrame {
(...skipping 30 matching lines...) Expand all
54 int32_t GetLowSeqNum() const; 56 int32_t GetLowSeqNum() const;
55 // Get highest packet sequence number in frame 57 // Get highest packet sequence number in frame
56 int32_t GetHighSeqNum() const; 58 int32_t GetHighSeqNum() const;
57 59
58 int PictureId() const; 60 int PictureId() const;
59 int TemporalId() const; 61 int TemporalId() const;
60 bool LayerSync() const; 62 bool LayerSync() const;
61 int Tl0PicId() const; 63 int Tl0PicId() const;
62 bool NonReference() const; 64 bool NonReference() const;
63 65
66 std::vector<NaluInfo> GetNaluInfos() const;
67
64 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); 68 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx);
65 69
66 // Increments a counter to keep track of the number of packets of this frame 70 // Increments a counter to keep track of the number of packets of this frame
67 // which were NACKed before they arrived. 71 // which were NACKed before they arrived.
68 void IncrementNackCount(); 72 void IncrementNackCount();
69 // Returns the number of packets of this frame which were NACKed before they 73 // Returns the number of packets of this frame which were NACKed before they
70 // arrived. 74 // arrived.
71 int16_t GetNackCount() const; 75 int16_t GetNackCount() const;
72 76
73 int64_t LatestPacketTimeMs() const; 77 int64_t LatestPacketTimeMs() const;
74 78
75 webrtc::FrameType FrameType() const; 79 webrtc::FrameType FrameType() const;
76 void SetPreviousFrameLoss(); 80 void SetPreviousFrameLoss();
77 81
78 // The number of packets discarded because the decoder can't make use of them. 82 // The number of packets discarded because the decoder can't make use of them.
79 int NotDecodablePackets() const; 83 int NotDecodablePackets() const;
80 84
81 private: 85 private:
82 void SetState(VCMFrameBufferStateEnum state); // Set state of frame 86 void SetState(VCMFrameBufferStateEnum state); // Set state of frame
83 87
84 VCMFrameBufferStateEnum _state; // Current state of the frame 88 VCMFrameBufferStateEnum _state; // Current state of the frame
85 VCMSessionInfo _sessionInfo; 89 VCMSessionInfo _sessionInfo;
86 uint16_t _nackCount; 90 uint16_t _nackCount;
87 int64_t _latestPacketTimeMs; 91 int64_t _latestPacketTimeMs;
88 }; 92 };
89 93
90 } // namespace webrtc 94 } // namespace webrtc
91 95
92 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_ 96 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/decoding_state.cc ('k') | webrtc/modules/video_coding/frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698