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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/dump.proto

Issue 1195963002: Revert "Added ACM_dump protobuf, class for reading/writing and unittest." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
(Empty)
1 syntax = "proto2";
2 option optimize_for = LITE_RUNTIME;
3 package webrtc;
4
5 // This is the main message to dump to a file, it can contain multiple event
6 // messages, but it is possible to append multiple EventStreams (each with a
7 // single event) to a file.
8 // This has the benefit that there's no need to keep all data in memory.
9 message ACMDumpEventStream {
10 repeated ACMDumpEvent stream = 1;
11 }
12
13 message ACMDumpEvent {
14 // required - Elapsed wallclock time in us since the start of the log.
15 optional int64 timestamp_us = 1;
16
17 // The different types of events that can occur, the UNKNOWN_EVENT entry
18 // is added in case future EventTypes are added, in that case old code will
19 // receive the new events as UNKNOWN_EVENT.
20 enum EventType {
21 UNKNOWN_EVENT = 0;
22 RTP_EVENT = 1;
23 DEBUG_EVENT = 2;
24 }
25
26 // required - Indicates the type of this event
27 optional EventType type = 2;
28
29 // optional - but required if type == RTP_EVENT
30 optional ACMDumpRTPPacket packet = 3;
31
32 // optional - but required if type == DEBUG_EVENT
33 optional ACMDumpDebugEvent debug_event = 4;
34 }
35
36 message ACMDumpRTPPacket {
37 // Indicates if the packet is incoming or outgoing with respect to the user
38 // that is logging the data.
39 enum Direction {
40 UNKNOWN_DIRECTION = 0;
41 OUTGOING = 1;
42 INCOMING = 2;
43 }
44 enum PayloadType {
45 UNKNOWN_TYPE = 0;
46 AUDIO = 1;
47 VIDEO = 2;
48 RTX = 3;
49 }
50
51 // required
52 optional Direction direction = 1;
53
54 // required
55 optional PayloadType type = 2;
56
57 // required - Contains the whole RTP packet (header+payload).
58 optional bytes RTP_data = 3;
59 }
60
61 message ACMDumpDebugEvent {
62 // Indicates the type of the debug event.
63 // LOG_START and LOG_END indicate the start and end of the log respectively.
64 // AUDIO_PLAYOUT indicates a call to the PlayoutData10Ms() function in ACM.
65 enum EventType {
66 UNKNOWN_EVENT = 0;
67 LOG_START = 1;
68 LOG_END = 2;
69 AUDIO_PLAYOUT = 3;
70 }
71
72 // required
73 optional EventType type = 1;
74
75 // An optional message that can be used to store additional information about
76 // the debug event.
77 optional string message = 2;
78 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/audio_coding_module.gypi ('k') | webrtc/modules/modules.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698