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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 VIDEO_PACKET_SENT_TO_PACER = 20; | 44 VIDEO_PACKET_SENT_TO_PACER = 20; |
45 AUDIO_PACKET_SENT_TO_NETWORK = 21; | 45 AUDIO_PACKET_SENT_TO_NETWORK = 21; |
46 VIDEO_PACKET_SENT_TO_NETWORK = 22; | 46 VIDEO_PACKET_SENT_TO_NETWORK = 22; |
47 AUDIO_PACKET_RETRANSMITTED = 23; | 47 AUDIO_PACKET_RETRANSMITTED = 23; |
48 VIDEO_PACKET_RETRANSMITTED = 24; | 48 VIDEO_PACKET_RETRANSMITTED = 24; |
49 // Receiver-side packet events. | 49 // Receiver-side packet events. |
50 AUDIO_PACKET_RECEIVED = 25; | 50 AUDIO_PACKET_RECEIVED = 25; |
51 VIDEO_PACKET_RECEIVED = 26; | 51 VIDEO_PACKET_RECEIVED = 26; |
52 DUPLICATE_AUDIO_PACKET_RECEIVED = 27; | 52 DUPLICATE_AUDIO_PACKET_RECEIVED = 27; |
53 DUPLICATE_VIDEO_PACKET_RECEIVED = 28; | 53 DUPLICATE_VIDEO_PACKET_RECEIVED = 28; |
54 // Sender-side generic event. | |
55 AUDIO_RTCP_PACKET_RECEIVED = 29; | |
56 VIDEO_RTCP_PACKET_RECEIVED = 30; | |
54 } | 57 } |
55 | 58 |
56 // Each log will contain one |LogMetadata|. | 59 // Each log will contain one |LogMetadata|. |
57 message LogMetadata { | 60 message LogMetadata { |
58 // |true| if the events are related to audio. |false| if they are related to | 61 // |true| if the events are related to audio. |false| if they are related to |
59 // video. | 62 // video. |
60 optional bool is_audio = 1; | 63 optional bool is_audio = 1; |
61 | 64 |
62 // Used as a reference for all event entries. | 65 // Used as a reference for all event entries. |
63 // i.e. the original RTP timestamp for each event will be | 66 // i.e. the original RTP timestamp for each event will be |
64 // |first_rtp_timestamp| + |relative_rtp_timestamp|. | 67 // |first_rtp_timestamp| + |relative_rtp_timestamp|. |
65 optional uint32 first_rtp_timestamp = 2; | 68 optional uint32 first_rtp_timestamp = 2; |
66 | 69 |
67 // Number of AggregatedFrameEvent's. | 70 // Number of AggregatedFrameEvent's. |
68 optional int32 num_frame_events = 3; | 71 optional int32 num_frame_events = 3; |
69 | 72 |
70 // Number of AggregatedPacketEvent's. | 73 // Number of AggregatedPacketEvent's. |
71 optional int32 num_packet_events = 4; | 74 optional int32 num_packet_events = 4; |
72 | 75 |
73 // The internal timestamp value in milliseconds that represents the time | 76 // The internal timestamp value in milliseconds that represents the time |
74 // of the Unix epoch. This is used for relating the timestamps in the events | 77 // of the Unix epoch. This is used for relating the timestamps in the events |
75 // to a real time and date. | 78 // to a real time and date. |
76 optional int64 reference_timestamp_ms_at_unix_epoch = 5; | 79 optional int64 reference_timestamp_ms_at_unix_epoch = 5; |
miu
2014/04/18 00:02:03
For reasons given in my comments for stats_event_s
imcheng
2014/04/18 18:20:27
For raw events, we are sacrificing precision of ti
| |
77 } | 80 } |
78 | 81 |
79 message AggregatedFrameEvent { | 82 message AggregatedFrameEvent { |
80 optional uint32 relative_rtp_timestamp = 1; | 83 optional uint32 relative_rtp_timestamp = 1; |
81 | 84 |
82 repeated EventType event_type = 2 [packed = true]; | 85 repeated EventType event_type = 2 [packed = true]; |
83 | 86 |
84 // The internal timestamp value in milliseconds. Use | 87 // The internal timestamp value in milliseconds. Use |
85 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time | 88 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time |
86 // and date. | 89 // and date. |
(...skipping 17 matching lines...) Expand all Loading... | |
104 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time | 107 // LogMetadata.reference_timestamp_ms_at_unix_epoch to relate to a real time |
105 // and date. | 108 // and date. |
106 repeated int64 event_timestamp_ms = 3 [packed = true]; | 109 repeated int64 event_timestamp_ms = 3 [packed = true]; |
107 } | 110 } |
108 | 111 |
109 message AggregatedPacketEvent { | 112 message AggregatedPacketEvent { |
110 optional uint32 relative_rtp_timestamp = 1; | 113 optional uint32 relative_rtp_timestamp = 1; |
111 repeated BasePacketEvent base_packet_event = 2; | 114 repeated BasePacketEvent base_packet_event = 2; |
112 }; | 115 }; |
113 | 116 |
OLD | NEW |