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

Side by Side Diff: webrtc/modules/video_coding/session_info.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) 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int LowSequenceNumber() const; 82 int LowSequenceNumber() const;
82 83
83 // Returns highest sequence number, media or empty. 84 // Returns highest sequence number, media or empty.
84 int HighSequenceNumber() const; 85 int HighSequenceNumber() const;
85 int PictureId() const; 86 int PictureId() const;
86 int TemporalId() const; 87 int TemporalId() const;
87 bool LayerSync() const; 88 bool LayerSync() const;
88 int Tl0PicId() const; 89 int Tl0PicId() const;
89 bool NonReference() const; 90 bool NonReference() const;
90 91
92 std::vector<NaluInfo> GetNaluInfos() const;
93
91 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx); 94 void SetGofInfo(const GofInfoVP9& gof_info, size_t idx);
92 95
93 // The number of packets discarded because the decoder can't make use of 96 // The number of packets discarded because the decoder can't make use of
94 // them. 97 // them.
95 int packets_not_decodable() const; 98 int packets_not_decodable() const;
96 99
97 private: 100 private:
98 enum { kMaxVP8Partitions = 9 }; 101 enum { kMaxVP8Partitions = 9 };
99 102
100 typedef std::list<VCMPacket> PacketList; 103 typedef std::list<VCMPacket> PacketList;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // They are not necessarily equal to the front and back packets, as packets 164 // They are not necessarily equal to the front and back packets, as packets
162 // may enter out of order. 165 // may enter out of order.
163 // TODO(mikhal): Refactor the list to use a map. 166 // TODO(mikhal): Refactor the list to use a map.
164 int first_packet_seq_num_; 167 int first_packet_seq_num_;
165 int last_packet_seq_num_; 168 int last_packet_seq_num_;
166 }; 169 };
167 170
168 } // namespace webrtc 171 } // namespace webrtc
169 172
170 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ 173 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/jitter_buffer_unittest.cc ('k') | webrtc/modules/video_coding/session_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698