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

Side by Side Diff: media/cast/logging/logging_defines.h

Issue 228603006: Cast: Log whether the video frame is a key frame in kVideoFrameEncoded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win x64 compile Created 6 years, 8 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 // 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 enum EventMediaType { AUDIO_EVENT, VIDEO_EVENT, OTHER_EVENT }; 66 enum EventMediaType { AUDIO_EVENT, VIDEO_EVENT, OTHER_EVENT };
67 67
68 EventMediaType GetEventMediaType(CastLoggingEvent event); 68 EventMediaType GetEventMediaType(CastLoggingEvent event);
69 69
70 struct FrameEvent { 70 struct FrameEvent {
71 FrameEvent(); 71 FrameEvent();
72 ~FrameEvent(); 72 ~FrameEvent();
73 73
74 RtpTimestamp rtp_timestamp; 74 RtpTimestamp rtp_timestamp;
75 uint32 frame_id; 75 uint32 frame_id;
76 size_t size; // Encoded size only. 76 // Size of encoded frame. Only set for kVideoFrameEncoded event.
77 size_t size;
77 78
78 // Time of event logged. 79 // Time of event logged.
79 base::TimeTicks timestamp; 80 base::TimeTicks timestamp;
80 CastLoggingEvent type; 81 CastLoggingEvent type;
81 82
82 // Render / playout delay. Only set for kAudioPlayoutDelay and 83 // Render / playout delay. Only set for kAudioPlayoutDelay and
83 // kVideoRenderDelay events. 84 // kVideoRenderDelay events.
84 base::TimeDelta delay_delta; 85 base::TimeDelta delay_delta;
86
87 // Whether the frame is a key frame. Only set for kVideoFrameEncoded event.
88 bool key_frame;
85 }; 89 };
86 90
87 struct PacketEvent { 91 struct PacketEvent {
88 PacketEvent(); 92 PacketEvent();
89 ~PacketEvent(); 93 ~PacketEvent();
90 94
91 RtpTimestamp rtp_timestamp; 95 RtpTimestamp rtp_timestamp;
92 uint32 frame_id; 96 uint32 frame_id;
93 uint16 max_packet_id; 97 uint16 max_packet_id;
94 uint16 packet_id; 98 uint16 packet_id;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 161
158 162
159 typedef std::map<CastLoggingEvent, FrameLogStats> FrameStatsMap; 163 typedef std::map<CastLoggingEvent, FrameLogStats> FrameStatsMap;
160 typedef std::map<CastLoggingEvent, PacketLogStats> PacketStatsMap; 164 typedef std::map<CastLoggingEvent, PacketLogStats> PacketStatsMap;
161 typedef std::map<CastLoggingEvent, GenericLogStats> GenericStatsMap; 165 typedef std::map<CastLoggingEvent, GenericLogStats> GenericStatsMap;
162 166
163 } // namespace cast 167 } // namespace cast
164 } // namespace media 168 } // namespace media
165 169
166 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ 170 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/logging/encoding_event_subscriber_unittest.cc ('k') | media/cast/logging/logging_defines.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698