OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Protocol for audio messages. | 5 // Protocol for audio messages. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 FRAME_ENCODED = 31; | 61 FRAME_ENCODED = 31; |
62 FRAME_ACK_RECEIVED = 32; | 62 FRAME_ACK_RECEIVED = 32; |
63 FRAME_ACK_SENT = 33; | 63 FRAME_ACK_SENT = 33; |
64 FRAME_DECODED = 34; | 64 FRAME_DECODED = 34; |
65 FRAME_PLAYOUT = 35; | 65 FRAME_PLAYOUT = 35; |
66 PACKET_SENT_TO_NETWORK = 36; | 66 PACKET_SENT_TO_NETWORK = 36; |
67 PACKET_RETRANSMITTED = 37; | 67 PACKET_RETRANSMITTED = 37; |
68 PACKET_RECEIVED = 38; | 68 PACKET_RECEIVED = 38; |
69 } | 69 } |
70 | 70 |
| 71 // Contains information independent of the stream that describes the system |
| 72 // setup, e.g. OS and hardware info. |
| 73 message GeneralDescription { |
| 74 optional string product = 1; |
| 75 optional string product_version = 2; |
| 76 optional string os = 3; |
| 77 } |
| 78 |
71 // Each log will contain one |LogMetadata|. | 79 // Each log will contain one |LogMetadata|. |
72 message LogMetadata { | 80 message LogMetadata { |
73 // |true| if the events are related to audio. |false| if they are related to | 81 // |true| if the events are related to audio. |false| if they are related to |
74 // video. | 82 // video. |
75 optional bool is_audio = 1; | 83 optional bool is_audio = 1; |
76 | 84 |
77 // Used as a reference for all event entries. | 85 // Used as a reference for all event entries. |
78 // i.e. the original RTP timestamp for each event will be | 86 // i.e. the original RTP timestamp for each event will be |
79 // |first_rtp_timestamp| + |relative_rtp_timestamp|. | 87 // |first_rtp_timestamp| + |relative_rtp_timestamp|. |
80 optional uint32 first_rtp_timestamp = 2; | 88 optional uint32 first_rtp_timestamp = 2; |
81 | 89 |
82 // Number of AggregatedFrameEvent's. | 90 // Number of AggregatedFrameEvent's. |
83 optional int32 num_frame_events = 3; | 91 optional int32 num_frame_events = 3; |
84 | 92 |
85 // Number of AggregatedPacketEvent's. | 93 // Number of AggregatedPacketEvent's. |
86 optional int32 num_packet_events = 4; | 94 optional int32 num_packet_events = 4; |
87 | 95 |
88 // The internal timestamp value in milliseconds that represents the time | 96 // The internal timestamp value in milliseconds that represents the time |
89 // of the Unix epoch. This is used for relating the timestamps in the events | 97 // of the Unix epoch. This is used for relating the timestamps in the events |
90 // to a real time and date. | 98 // to a real time and date. |
91 optional int64 reference_timestamp_ms_at_unix_epoch = 5; | 99 optional int64 reference_timestamp_ms_at_unix_epoch = 5; |
92 | 100 |
93 // Extra data to attach to the log, e.g. system info or | 101 // Extra data to attach to the log, e.g. experiment tags, |
94 // experiment tags, in key-value JSON string format. | 102 // in key-value JSON string format. The data is supplied by the application. |
95 optional string extra_data = 6; | 103 optional string extra_data = 6; |
| 104 |
| 105 optional GeneralDescription general_description = 7; |
96 } | 106 } |
97 | 107 |
98 message AggregatedFrameEvent { | 108 message AggregatedFrameEvent { |
99 optional uint32 relative_rtp_timestamp = 1; | 109 optional uint32 relative_rtp_timestamp = 1; |
100 | 110 |
101 repeated EventType event_type = 2 [packed = true]; | 111 repeated EventType event_type = 2 [packed = true]; |
102 | 112 |
103 // The internal timestamp value in milliseconds. Use | 113 // The internal timestamp value in milliseconds. Use |
104 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time | 114 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time |
105 // and date. | 115 // and date. |
(...skipping 23 matching lines...) Expand all Loading... |
129 | 139 |
130 // Size of the packet. | 140 // Size of the packet. |
131 optional int32 size = 4; | 141 optional int32 size = 4; |
132 } | 142 } |
133 | 143 |
134 message AggregatedPacketEvent { | 144 message AggregatedPacketEvent { |
135 optional uint32 relative_rtp_timestamp = 1; | 145 optional uint32 relative_rtp_timestamp = 1; |
136 repeated BasePacketEvent base_packet_event = 2; | 146 repeated BasePacketEvent base_packet_event = 2; |
137 }; | 147 }; |
138 | 148 |
OLD | NEW |