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

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

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
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/cast/logging/logging_defines.h" 5 #include "media/cast/logging/logging_defines.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #define ENUM_TO_STRING(enum) \ 9 #define ENUM_TO_STRING(enum) \
10 case k##enum: \ 10 case k##enum: \
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 case kVideoPacketRetransmitted: 84 case kVideoPacketRetransmitted:
85 case kVideoPacketReceived: 85 case kVideoPacketReceived:
86 case kDuplicateVideoPacketReceived: 86 case kDuplicateVideoPacketReceived:
87 return VIDEO_EVENT; 87 return VIDEO_EVENT;
88 } 88 }
89 NOTREACHED(); 89 NOTREACHED();
90 return OTHER_EVENT; 90 return OTHER_EVENT;
91 } 91 }
92 92
93 FrameEvent::FrameEvent() 93 FrameEvent::FrameEvent()
94 : rtp_timestamp(0u), frame_id(kFrameIdUnknown), size(0u), type(kUnknown) {} 94 : rtp_timestamp(0u), frame_id(kFrameIdUnknown), size(0u), type(kUnknown),
95 key_frame(false) {}
95 FrameEvent::~FrameEvent() {} 96 FrameEvent::~FrameEvent() {}
96 97
97 PacketEvent::PacketEvent() 98 PacketEvent::PacketEvent()
98 : rtp_timestamp(0), 99 : rtp_timestamp(0),
99 frame_id(kFrameIdUnknown), 100 frame_id(kFrameIdUnknown),
100 max_packet_id(0), 101 max_packet_id(0),
101 packet_id(0), 102 packet_id(0),
102 size(0), 103 size(0),
103 type(kUnknown) {} 104 type(kUnknown) {}
104 PacketEvent::~PacketEvent() {} 105 PacketEvent::~PacketEvent() {}
(...skipping 13 matching lines...) Expand all
118 119
119 GenericLogStats::GenericLogStats() 120 GenericLogStats::GenericLogStats()
120 : event_counter(0), 121 : event_counter(0),
121 sum(0), 122 sum(0),
122 sum_squared(0), 123 sum_squared(0),
123 min(0), 124 min(0),
124 max(0) {} 125 max(0) {}
125 GenericLogStats::~GenericLogStats() {} 126 GenericLogStats::~GenericLogStats() {}
126 } // namespace cast 127 } // namespace cast
127 } // namespace media 128 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698