| 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> | |
| 16 | 15 |
| 17 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
| 18 #include "webrtc/modules/video_coding/include/video_coding.h" | 17 #include "webrtc/modules/video_coding/include/video_coding.h" |
| 19 #include "webrtc/modules/video_coding/packet.h" | 18 #include "webrtc/modules/video_coding/packet.h" |
| 20 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 21 | 20 |
| 22 namespace webrtc { | 21 namespace webrtc { |
| 23 // Used to pass data from jitter buffer to session info. | 22 // Used to pass data from jitter buffer to session info. |
| 24 // This data is then used in determining whether a frame is decodable. | 23 // This data is then used in determining whether a frame is decodable. |
| 25 struct FrameData { | 24 struct FrameData { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 int LowSequenceNumber() const; | 81 int LowSequenceNumber() const; |
| 83 | 82 |
| 84 // Returns highest sequence number, media or empty. | 83 // Returns highest sequence number, media or empty. |
| 85 int HighSequenceNumber() const; | 84 int HighSequenceNumber() const; |
| 86 int PictureId() const; | 85 int PictureId() const; |
| 87 int TemporalId() const; | 86 int TemporalId() const; |
| 88 bool LayerSync() const; | 87 bool LayerSync() const; |
| 89 int Tl0PicId() const; | 88 int Tl0PicId() const; |
| 90 bool NonReference() const; | 89 bool NonReference() const; |
| 91 | 90 |
| 92 std::vector<NaluInfo> GetNaluInfos() const; | |
| 93 | |
| 94 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); | 91 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); |
| 95 | 92 |
| 96 // The number of packets discarded because the decoder can't make use of | 93 // The number of packets discarded because the decoder can't make use of |
| 97 // them. | 94 // them. |
| 98 int packets_not_decodable() const; | 95 int packets_not_decodable() const; |
| 99 | 96 |
| 100 private: | 97 private: |
| 101 enum { kMaxVP8Partitions = 9 }; | 98 enum { kMaxVP8Partitions = 9 }; |
| 102 | 99 |
| 103 typedef std::list<VCMPacket> PacketList; | 100 typedef std::list<VCMPacket> PacketList; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // They are not necessarily equal to the front and back packets, as packets | 161 // They are not necessarily equal to the front and back packets, as packets |
| 165 // may enter out of order. | 162 // may enter out of order. |
| 166 // TODO(mikhal): Refactor the list to use a map. | 163 // TODO(mikhal): Refactor the list to use a map. |
| 167 int first_packet_seq_num_; | 164 int first_packet_seq_num_; |
| 168 int last_packet_seq_num_; | 165 int last_packet_seq_num_; |
| 169 }; | 166 }; |
| 170 | 167 |
| 171 } // namespace webrtc | 168 } // namespace webrtc |
| 172 | 169 |
| 173 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ | 170 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ |
| OLD | NEW |