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_DEFINES_H_ | 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // CastLoggingEvent are classified into one of three following types. | 47 // CastLoggingEvent are classified into one of three following types. |
48 enum EventMediaType { | 48 enum EventMediaType { |
49 AUDIO_EVENT, | 49 AUDIO_EVENT, |
50 VIDEO_EVENT, | 50 VIDEO_EVENT, |
51 UNKNOWN_EVENT, | 51 UNKNOWN_EVENT, |
52 EVENT_MEDIA_TYPE_LAST = UNKNOWN_EVENT | 52 EVENT_MEDIA_TYPE_LAST = UNKNOWN_EVENT |
53 }; | 53 }; |
54 | 54 |
55 struct FrameEvent { | 55 struct FrameEvent { |
56 FrameEvent(); | 56 FrameEvent(); |
| 57 FrameEvent(const FrameEvent& other); |
57 ~FrameEvent(); | 58 ~FrameEvent(); |
58 | 59 |
59 RtpTimeTicks rtp_timestamp; | 60 RtpTimeTicks rtp_timestamp; |
60 uint32_t frame_id; | 61 uint32_t frame_id; |
61 | 62 |
62 // Resolution of the frame. Only set for video FRAME_CAPTURE_END events. | 63 // Resolution of the frame. Only set for video FRAME_CAPTURE_END events. |
63 int width; | 64 int width; |
64 int height; | 65 int height; |
65 | 66 |
66 // Size of encoded frame in bytes. Only set for FRAME_ENCODED event. | 67 // Size of encoded frame in bytes. Only set for FRAME_ENCODED event. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Time of event logged. | 108 // Time of event logged. |
108 base::TimeTicks timestamp; | 109 base::TimeTicks timestamp; |
109 CastLoggingEvent type; | 110 CastLoggingEvent type; |
110 EventMediaType media_type; | 111 EventMediaType media_type; |
111 }; | 112 }; |
112 | 113 |
113 } // namespace cast | 114 } // namespace cast |
114 } // namespace media | 115 } // namespace media |
115 | 116 |
116 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 117 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
OLD | NEW |