OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ | 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ |
6 #define MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ | 6 #define MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/time/tick_clock.h" | 13 #include "base/time/tick_clock.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 namespace cast { | 17 namespace cast { |
18 | 18 |
19 // TODO(mikhal): Consider storing only the delta time and not absolute time. | 19 // TODO(mikhal): Consider storing only the delta time and not absolute time. |
20 struct FrameEvent { | 20 struct FrameEvent { |
21 uint32 frame_id; | 21 uint32 frame_id; |
22 int size; | 22 int size; |
23 base::TimeTicks timestamp; | 23 base::TimeTicks timestamp; |
24 base::TimeDelta delay_delta; // render/playout delay. | 24 base::TimeDelta delay_delta; // render/playout delay. |
25 }; | 25 }; |
26 | 26 |
27 struct PacketEvent { | 27 struct PacketEvent { |
28 uint32 frame_id; | 28 uint32 frame_id; |
29 int max_packet_id; | 29 int max_packet_id; |
30 int size; | 30 size_t size; |
31 base::TimeTicks timestamp; | 31 base::TimeTicks timestamp; |
32 }; | 32 }; |
33 | 33 |
34 // Frame and packet maps are sorted based on the rtp_timestamp. | 34 // Frame and packet maps are sorted based on the rtp_timestamp. |
35 typedef std::map<uint32, FrameEvent> FrameMap; | 35 typedef std::map<uint32, FrameEvent> FrameMap; |
36 typedef std::map<uint16, PacketEvent> BasePacketMap; | 36 typedef std::map<uint16, PacketEvent> BasePacketMap; |
37 typedef std::map<uint32, BasePacketMap> PacketMap; | 37 typedef std::map<uint32, BasePacketMap> PacketMap; |
38 | 38 |
39 class FrameLogData { | 39 class FrameLogData { |
40 public: | 40 public: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 std::vector<base::TimeTicks> timestamp_; | 86 std::vector<base::TimeTicks> timestamp_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(GenericLogData); | 88 DISALLOW_COPY_AND_ASSIGN(GenericLogData); |
89 }; | 89 }; |
90 | 90 |
91 | 91 |
92 } // namespace cast | 92 } // namespace cast |
93 } // namespace media | 93 } // namespace media |
94 | 94 |
95 #endif // MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ | 95 #endif // MEDIA_CAST_LOGGING_LOGGING_INTERNAL_H_ |
OLD | NEW |