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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int32_t GetLowSeqNum() const; | 54 int32_t GetLowSeqNum() const; |
55 // Get highest packet sequence number in frame | 55 // Get highest packet sequence number in frame |
56 int32_t GetHighSeqNum() const; | 56 int32_t GetHighSeqNum() const; |
57 | 57 |
58 int PictureId() const; | 58 int PictureId() const; |
59 int TemporalId() const; | 59 int TemporalId() const; |
60 bool LayerSync() const; | 60 bool LayerSync() const; |
61 int Tl0PicId() const; | 61 int Tl0PicId() const; |
62 bool NonReference() const; | 62 bool NonReference() const; |
63 | 63 |
| 64 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); |
| 65 |
64 // Increments a counter to keep track of the number of packets of this frame | 66 // Increments a counter to keep track of the number of packets of this frame |
65 // which were NACKed before they arrived. | 67 // which were NACKed before they arrived. |
66 void IncrementNackCount(); | 68 void IncrementNackCount(); |
67 // Returns the number of packets of this frame which were NACKed before they | 69 // Returns the number of packets of this frame which were NACKed before they |
68 // arrived. | 70 // arrived. |
69 int16_t GetNackCount() const; | 71 int16_t GetNackCount() const; |
70 | 72 |
71 int64_t LatestPacketTimeMs() const; | 73 int64_t LatestPacketTimeMs() const; |
72 | 74 |
73 webrtc::FrameType FrameType() const; | 75 webrtc::FrameType FrameType() const; |
74 void SetPreviousFrameLoss(); | 76 void SetPreviousFrameLoss(); |
75 | 77 |
76 // The number of packets discarded because the decoder can't make use of | 78 // The number of packets discarded because the decoder can't make use of them. |
77 // them. | |
78 int NotDecodablePackets() const; | 79 int NotDecodablePackets() const; |
79 | 80 |
80 private: | 81 private: |
81 void SetState(VCMFrameBufferStateEnum state); // Set state of frame | 82 void SetState(VCMFrameBufferStateEnum state); // Set state of frame |
82 | 83 |
83 VCMFrameBufferStateEnum _state; // Current state of the frame | 84 VCMFrameBufferStateEnum _state; // Current state of the frame |
84 VCMSessionInfo _sessionInfo; | 85 VCMSessionInfo _sessionInfo; |
85 uint16_t _nackCount; | 86 uint16_t _nackCount; |
86 int64_t _latestPacketTimeMs; | 87 int64_t _latestPacketTimeMs; |
87 }; | 88 }; |
88 | 89 |
89 } // namespace webrtc | 90 } // namespace webrtc |
90 | 91 |
91 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_FRAME_BUFFER_H_ | 92 #endif // WEBRTC_MODULES_VIDEO_CODING_MAIN_SOURCE_FRAME_BUFFER_H_ |
OLD | NEW |