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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log.proto

Issue 2559953002: Log audio network adapter decisions in event log. (Closed)
Patch Set: Response to comments. Created 4 years 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 syntax = "proto2"; 1 syntax = "proto2";
2 option optimize_for = LITE_RUNTIME; 2 option optimize_for = LITE_RUNTIME;
3 package webrtc.rtclog; 3 package webrtc.rtclog;
4 4
5 import "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump.proto";
6
5 enum MediaType { 7 enum MediaType {
6 ANY = 0; 8 ANY = 0;
7 AUDIO = 1; 9 AUDIO = 1;
8 VIDEO = 2; 10 VIDEO = 2;
9 DATA = 3; 11 DATA = 3;
10 } 12 }
11 13
12 // This is the main message to dump to a file, it can contain multiple event 14 // This is the main message to dump to a file, it can contain multiple event
13 // messages, but it is possible to append multiple EventStreams (each with a 15 // messages, but it is possible to append multiple EventStreams (each with a
14 // single event) to a file. 16 // single event) to a file.
(...skipping 15 matching lines...) Expand all
30 LOG_END = 2; 32 LOG_END = 2;
31 RTP_EVENT = 3; 33 RTP_EVENT = 3;
32 RTCP_EVENT = 4; 34 RTCP_EVENT = 4;
33 AUDIO_PLAYOUT_EVENT = 5; 35 AUDIO_PLAYOUT_EVENT = 5;
34 BWE_PACKET_LOSS_EVENT = 6; 36 BWE_PACKET_LOSS_EVENT = 6;
35 BWE_PACKET_DELAY_EVENT = 7; 37 BWE_PACKET_DELAY_EVENT = 7;
36 VIDEO_RECEIVER_CONFIG_EVENT = 8; 38 VIDEO_RECEIVER_CONFIG_EVENT = 8;
37 VIDEO_SENDER_CONFIG_EVENT = 9; 39 VIDEO_SENDER_CONFIG_EVENT = 9;
38 AUDIO_RECEIVER_CONFIG_EVENT = 10; 40 AUDIO_RECEIVER_CONFIG_EVENT = 10;
39 AUDIO_SENDER_CONFIG_EVENT = 11; 41 AUDIO_SENDER_CONFIG_EVENT = 11;
42 AUDIO_NETWORK_ADAPTOR_EVENT = 12;
40 } 43 }
41 44
42 // required - Indicates the type of this event 45 // required - Indicates the type of this event
43 optional EventType type = 2; 46 optional EventType type = 2;
44 47
45 // optional - but required if type == RTP_EVENT 48 // optional - but required if type == RTP_EVENT
46 optional RtpPacket rtp_packet = 3; 49 optional RtpPacket rtp_packet = 3;
47 50
48 // optional - but required if type == RTCP_EVENT 51 // optional - but required if type == RTCP_EVENT
49 optional RtcpPacket rtcp_packet = 4; 52 optional RtcpPacket rtcp_packet = 4;
50 53
51 // optional - but required if type == AUDIO_PLAYOUT_EVENT 54 // optional - but required if type == AUDIO_PLAYOUT_EVENT
52 optional AudioPlayoutEvent audio_playout_event = 5; 55 optional AudioPlayoutEvent audio_playout_event = 5;
53 56
54 // optional - but required if type == BWE_PACKET_LOSS_EVENT 57 // optional - but required if type == BWE_PACKET_LOSS_EVENT
55 optional BwePacketLossEvent bwe_packet_loss_event = 6; 58 optional BwePacketLossEvent bwe_packet_loss_event = 6;
56 59
57 // optional - but required if type == VIDEO_RECEIVER_CONFIG_EVENT 60 // optional - but required if type == VIDEO_RECEIVER_CONFIG_EVENT
58 optional VideoReceiveConfig video_receiver_config = 8; 61 optional VideoReceiveConfig video_receiver_config = 8;
59 62
60 // optional - but required if type == VIDEO_SENDER_CONFIG_EVENT 63 // optional - but required if type == VIDEO_SENDER_CONFIG_EVENT
61 optional VideoSendConfig video_sender_config = 9; 64 optional VideoSendConfig video_sender_config = 9;
62 65
63 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT 66 // optional - but required if type == AUDIO_RECEIVER_CONFIG_EVENT
64 optional AudioReceiveConfig audio_receiver_config = 10; 67 optional AudioReceiveConfig audio_receiver_config = 10;
65 68
66 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT 69 // optional - but required if type == AUDIO_SENDER_CONFIG_EVENT
67 optional AudioSendConfig audio_sender_config = 11; 70 optional AudioSendConfig audio_sender_config = 11;
71
72 // optional - but required if type == AUDIO_NETWORK_ADAPTOR_EVENT
73 optional webrtc.audio_network_adaptor.debug_dump.EncoderRuntimeConfig
74 encoder_runtime_config = 12;
68 } 75 }
69 76
70 message RtpPacket { 77 message RtpPacket {
71 // required - True if the packet is incoming w.r.t. the user logging the data 78 // required - True if the packet is incoming w.r.t. the user logging the data
72 optional bool incoming = 1; 79 optional bool incoming = 1;
73 80
74 // required 81 // required
75 optional MediaType type = 2; 82 optional MediaType type = 2;
76 83
77 // required - The size of the packet including both payload and header. 84 // required - The size of the packet including both payload and header.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 repeated RtpHeaderExtension header_extensions = 3; 227 repeated RtpHeaderExtension header_extensions = 3;
221 } 228 }
222 229
223 message AudioSendConfig { 230 message AudioSendConfig {
224 // required - Synchronization source (stream identifier) for outgoing stream. 231 // required - Synchronization source (stream identifier) for outgoing stream.
225 optional uint32 ssrc = 1; 232 optional uint32 ssrc = 1;
226 233
227 // RTP header extensions used for the outgoing audio stream. 234 // RTP header extensions used for the outgoing audio stream.
228 repeated RtpHeaderExtension header_extensions = 2; 235 repeated RtpHeaderExtension header_extensions = 2;
229 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698