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 #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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 ENUM_TO_STRING(VideoFrameReceived); | 56 ENUM_TO_STRING(VideoFrameReceived); |
57 ENUM_TO_STRING(VideoFrameSentToEncoder); | 57 ENUM_TO_STRING(VideoFrameSentToEncoder); |
58 ENUM_TO_STRING(VideoFrameEncoded); | 58 ENUM_TO_STRING(VideoFrameEncoded); |
59 ENUM_TO_STRING(VideoFrameDecoded); | 59 ENUM_TO_STRING(VideoFrameDecoded); |
60 ENUM_TO_STRING(VideoRenderDelay); | 60 ENUM_TO_STRING(VideoRenderDelay); |
61 ENUM_TO_STRING(PacketSentToPacer); | 61 ENUM_TO_STRING(PacketSentToPacer); |
62 ENUM_TO_STRING(PacketSentToNetwork); | 62 ENUM_TO_STRING(PacketSentToNetwork); |
63 ENUM_TO_STRING(PacketRetransmitted); | 63 ENUM_TO_STRING(PacketRetransmitted); |
64 ENUM_TO_STRING(AudioPacketReceived); | 64 ENUM_TO_STRING(AudioPacketReceived); |
65 ENUM_TO_STRING(VideoPacketReceived); | 65 ENUM_TO_STRING(VideoPacketReceived); |
66 ENUM_TO_STRING(DuplicatePacketReceived); | 66 ENUM_TO_STRING(DuplicateAudioPacketReceived); |
| 67 ENUM_TO_STRING(DuplicateVideoPacketReceived); |
67 case kNumOfLoggingEvents: | 68 case kNumOfLoggingEvents: |
68 NOTREACHED(); | 69 NOTREACHED(); |
69 return ""; | 70 return ""; |
70 } | 71 } |
71 NOTREACHED(); | 72 NOTREACHED(); |
72 return ""; | 73 return ""; |
73 } | 74 } |
74 | 75 |
75 FrameEvent::FrameEvent() | 76 FrameEvent::FrameEvent() |
76 : rtp_timestamp(0u), frame_id(kFrameIdUnknown), size(0u), type(kUnknown) {} | 77 : rtp_timestamp(0u), frame_id(kFrameIdUnknown), size(0u), type(kUnknown) {} |
(...skipping 24 matching lines...) Expand all Loading... |
101 GenericLogStats::GenericLogStats() | 102 GenericLogStats::GenericLogStats() |
102 : event_counter(0), | 103 : event_counter(0), |
103 sum(0), | 104 sum(0), |
104 sum_squared(0), | 105 sum_squared(0), |
105 min(0), | 106 min(0), |
106 max(0) {} | 107 max(0) {} |
107 GenericLogStats::~GenericLogStats() {} | 108 GenericLogStats::~GenericLogStats() {} |
108 } // namespace cast | 109 } // namespace cast |
109 } // namespace media | 110 } // namespace media |
110 | 111 |
OLD | NEW |