OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 buffer for Media Remoting. | 5 // Protocol buffer for Media Remoting. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package media.remoting.pb; | 11 package media.remoting.pb; |
12 | 12 |
13 // DecoderBuffer information which will be sent using RTP packets. The actual | 13 // DecoderBuffer information which will be sent using RTP packets. The actual |
14 // decoder buffer is not included in this proto data structure. | 14 // decoder buffer is not included in this proto data structure. |
15 message DecoderBuffer { | 15 message DecoderBuffer { |
16 optional int64 timestamp_usec = 1; | 16 optional int64 timestamp_usec = 1; |
17 optional int64 duration_usec = 2; | 17 optional int64 duration_usec = 2; |
18 optional bool is_key_frame = 3; | 18 optional bool is_key_frame = 3; |
19 optional DecryptConfig decrypt_config = 4; | 19 optional DecryptConfig decrypt_config = 4; |
20 optional int64 front_discard_usec = 5; | 20 optional int64 front_discard_usec = 5; |
21 optional int64 back_discard_usec = 6; | 21 optional int64 back_discard_usec = 6; |
22 optional int64 splice_timestamp_usec = 7; | 22 optional int64 splice_timestamp_usec = 7 [deprecated=true]; |
23 optional bytes side_data = 8; | 23 optional bytes side_data = 8; |
24 // To distinguish from valid 0-length buffers | 24 // To distinguish from valid 0-length buffers |
25 optional bool is_eos = 9; | 25 optional bool is_eos = 9; |
26 } | 26 } |
27 | 27 |
28 // Utility proto data structure | 28 // Utility proto data structure |
29 message Size { | 29 message Size { |
30 optional int32 width = 1; | 30 optional int32 width = 1; |
31 optional int32 height = 2; | 31 optional int32 height = 2; |
32 } | 32 } |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 594 |
595 // RPC_CDMC_ONSESSIONMESSAGE | 595 // RPC_CDMC_ONSESSIONMESSAGE |
596 CdmClientOnSessionMessage cdmclient_onsessionmessage_rpc = 601; | 596 CdmClientOnSessionMessage cdmclient_onsessionmessage_rpc = 601; |
597 // RPC_CDMC_ONSESSIONKEYSCHANGE | 597 // RPC_CDMC_ONSESSIONKEYSCHANGE |
598 CdmClientOnSessionKeysChange cdmclient_onsessionkeychange_rpc = 602; | 598 CdmClientOnSessionKeysChange cdmclient_onsessionkeychange_rpc = 602; |
599 // RPC_CDMC_ONSESSIONEXPIRATIONUPDATE | 599 // RPC_CDMC_ONSESSIONEXPIRATIONUPDATE |
600 CdmClientOnSessionExpirationUpdate cdmclient_onsessionexpirationupdate_rpc = | 600 CdmClientOnSessionExpirationUpdate cdmclient_onsessionexpirationupdate_rpc = |
601 603; | 601 603; |
602 }; | 602 }; |
603 } | 603 } |
OLD | NEW |