Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
|
Alpha Left Google
2014/02/11 22:49:13
nit: period at the end.
Mention that for compatib
imcheng
2014/02/12 08:44:13
Done.
| |
| 14 enum EventType { | |
| 15 // Generic events. | |
| 16 UNKNOWN = 0; | |
| 17 RTT_MS = 1; | |
| 18 PACKET_LOSS = 2; | |
| 19 JITTER_MS = 3; | |
| 20 VIDEO_ACK_RECEIVED = 4; | |
| 21 REMB_BITRATE = 5; | |
| 22 AUDIO_ACK_SENT = 6; | |
| 23 VIDEO_ACK_SENT = 7; | |
| 24 // Audio sender. | |
| 25 AUDIO_FRAME_RECEIVED = 8; | |
| 26 AUDIO_FRAME_CAPTURED = 9; | |
| 27 AUDIO_FRAME_ENCODED = 10; | |
| 28 // Audio receiver. | |
| 29 AUDIO_PLAYOUT_DELAY = 11; | |
| 30 AUDIO_FRAME_DECODED = 12; | |
| 31 // Video sender. | |
| 32 VIDEO_FRAME_CAPTURED = 13; | |
| 33 VIEDO_FRAME_RECEIVED = 14; | |
| 34 VIDEO_FRAME_SENT_TO_ENCODER = 15; | |
| 35 VIDEO_FRAME_ENCODED = 16; | |
| 36 // Video receiver. | |
| 37 VIDEO_FRAME_DECODED = 17; | |
| 38 VIDEO_RENDER_DELAY = 18; | |
| 39 // Send-side packet events. | |
| 40 PACKET_SENT_TO_PACER = 19; | |
| 41 PACKET_SENT_TO_NETWORK = 20; | |
| 42 PACKET_RETRANSMITTED = 21; | |
| 43 // Receiver-side packet events. | |
| 44 AUDIO_PACKET_RECEIVED = 22; | |
| 45 VIDEO_PACKET_RECEIVED = 23; | |
| 46 DUPLICATE_PACKET_RECEIVED = 24; | |
| 47 } | |
| 48 | |
| 49 message AggregatedFrameEvent { | |
| 50 optional uint32 rtp_timestamp = 1; | |
| 51 | |
| 52 repeated EventType event_type = 2 [packed = true]; | |
| 53 repeated int64 event_timestamp_micros = 3 [packed = true]; | |
| 54 | |
| 55 // Size is set only for kAudioFrameEncoded and kVideoFrameEncoded. | |
| 56 optional int32 encoded_frame_size = 4; | |
| 57 | |
| 58 // Delay is only set for kAudioPlayoutDelay and kVideoRenderDelay. | |
| 59 optional int32 delay_millis = 5; | |
| 60 }; | |
| 61 | |
| 62 message BasePacketEvent { | |
| 63 optional int32 packet_id = 1; | |
| 64 repeated EventType event_type = 2 [packed = true]; | |
| 65 repeated int64 event_timestamp_micros = 3 [packed = true]; | |
| 66 } | |
| 67 | |
| 68 message AggregatedPacketEvent { | |
| 69 optional uint32 rtp_timestamp = 1; | |
| 70 repeated BasePacketEvent base_packet_event = 2; | |
| 71 }; | |
| 72 | |
| 73 message AggregatedGenericEvent { | |
| 74 optional EventType event_type = 1; | |
| 75 repeated int64 event_timestamp_micros = 2 [packed = true]; | |
| 76 repeated int32 value = 3 [packed = true]; | |
| 77 }; | |
| OLD | NEW |