OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_SESSION_INFO_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
| 15 #include <vector> |
15 | 16 |
16 #include "webrtc/modules/include/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
17 #include "webrtc/modules/video_coding/include/video_coding.h" | 18 #include "webrtc/modules/video_coding/include/video_coding.h" |
18 #include "webrtc/modules/video_coding/packet.h" | 19 #include "webrtc/modules/video_coding/packet.h" |
19 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
20 | 21 |
21 namespace webrtc { | 22 namespace webrtc { |
22 // Used to pass data from jitter buffer to session info. | 23 // Used to pass data from jitter buffer to session info. |
23 // This data is then used in determining whether a frame is decodable. | 24 // This data is then used in determining whether a frame is decodable. |
24 struct FrameData { | 25 struct FrameData { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 int LowSequenceNumber() const; | 75 int LowSequenceNumber() const; |
75 | 76 |
76 // Returns highest sequence number, media or empty. | 77 // Returns highest sequence number, media or empty. |
77 int HighSequenceNumber() const; | 78 int HighSequenceNumber() const; |
78 int PictureId() const; | 79 int PictureId() const; |
79 int TemporalId() const; | 80 int TemporalId() const; |
80 bool LayerSync() const; | 81 bool LayerSync() const; |
81 int Tl0PicId() const; | 82 int Tl0PicId() const; |
82 bool NonReference() const; | 83 bool NonReference() const; |
83 | 84 |
| 85 std::vector<NaluInfo> GetNaluInfos() const; |
| 86 |
84 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); | 87 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); |
85 | 88 |
86 // The number of packets discarded because the decoder can't make use of | 89 // The number of packets discarded because the decoder can't make use of |
87 // them. | 90 // them. |
88 int packets_not_decodable() const; | 91 int packets_not_decodable() const; |
89 | 92 |
90 private: | 93 private: |
91 enum { kMaxVP8Partitions = 9 }; | 94 enum { kMaxVP8Partitions = 9 }; |
92 | 95 |
93 typedef std::list<VCMPacket> PacketList; | 96 typedef std::list<VCMPacket> PacketList; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // They are not necessarily equal to the front and back packets, as packets | 157 // They are not necessarily equal to the front and back packets, as packets |
155 // may enter out of order. | 158 // may enter out of order. |
156 // TODO(mikhal): Refactor the list to use a map. | 159 // TODO(mikhal): Refactor the list to use a map. |
157 int first_packet_seq_num_; | 160 int first_packet_seq_num_; |
158 int last_packet_seq_num_; | 161 int last_packet_seq_num_; |
159 }; | 162 }; |
160 | 163 |
161 } // namespace webrtc | 164 } // namespace webrtc |
162 | 165 |
163 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ | 166 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ |
OLD | NEW |