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

Side by Side Diff: media/cast/logging/proto/raw_events.proto

Issue 138913014: Cast: Added a new RawEventSubscriber implementation for use in cast extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Alpha's comments Created 6 years, 10 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Protocol for audio messages.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10
11 package media.cast.proto;
12
13 // Keep in sync with media/cast/logging/logging_defines.h.
miu 2014/02/13 02:02:12 Rather than keep the two in-sync, can you just let
imcheng 2014/02/13 02:38:08 I think that's a good idea if we can get it to wor
14 // For compatibility reasons, existing values in this enum must not be changed.
15 enum EventType {
16 // Generic events.
17 UNKNOWN = 0;
18 RTT_MS = 1;
19 PACKET_LOSS = 2;
20 JITTER_MS = 3;
21 VIDEO_ACK_RECEIVED = 4;
22 REMB_BITRATE = 5;
23 AUDIO_ACK_SENT = 6;
24 VIDEO_ACK_SENT = 7;
25 // Audio sender.
26 AUDIO_FRAME_RECEIVED = 8;
27 AUDIO_FRAME_CAPTURED = 9;
28 AUDIO_FRAME_ENCODED = 10;
29 // Audio receiver.
30 AUDIO_PLAYOUT_DELAY = 11;
31 AUDIO_FRAME_DECODED = 12;
32 // Video sender.
33 VIDEO_FRAME_CAPTURED = 13;
34 VIEDO_FRAME_RECEIVED = 14;
35 VIDEO_FRAME_SENT_TO_ENCODER = 15;
36 VIDEO_FRAME_ENCODED = 16;
37 // Video receiver.
38 VIDEO_FRAME_DECODED = 17;
39 VIDEO_RENDER_DELAY = 18;
40 // Send-side packet events.
41 PACKET_SENT_TO_PACER = 19;
42 PACKET_SENT_TO_NETWORK = 20;
43 PACKET_RETRANSMITTED = 21;
44 // Receiver-side packet events.
45 AUDIO_PACKET_RECEIVED = 22;
46 VIDEO_PACKET_RECEIVED = 23;
47 DUPLICATE_PACKET_RECEIVED = 24;
48 }
49
50 message AggregatedFrameEvent {
51 optional uint32 rtp_timestamp = 1;
52
53 repeated EventType event_type = 2 [packed = true];
54 repeated int64 event_timestamp_micros = 3 [packed = true];
55
56 // Size is set only for kAudioFrameEncoded and kVideoFrameEncoded.
57 optional int32 encoded_frame_size = 4;
58
59 // Delay is only set for kAudioPlayoutDelay and kVideoRenderDelay.
60 optional int32 delay_millis = 5;
61 };
62
63 message BasePacketEvent {
64 optional int32 packet_id = 1;
65 repeated EventType event_type = 2 [packed = true];
66 repeated int64 event_timestamp_micros = 3 [packed = true];
67 }
68
69 message AggregatedPacketEvent {
70 optional uint32 rtp_timestamp = 1;
71 repeated BasePacketEvent base_packet_event = 2;
72 };
73
74 message AggregatedGenericEvent {
75 optional EventType event_type = 1;
76 repeated int64 event_timestamp_micros = 2 [packed = true];
77 repeated int32 value = 3 [packed = true];
78 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698