OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 for video messages. | 5 // Protocol for video messages. |
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 remoting; | 11 package remoting; |
12 | 12 |
13 message VideoPacketFormat { | 13 message VideoPacketFormat { |
14 // Identifies how the image was encoded. | 14 // Identifies how the image was encoded. |
15 enum Encoding { | 15 enum Encoding { |
16 ENCODING_INVALID = -1; | 16 ENCODING_INVALID = -1; |
17 ENCODING_VERBATIM = 0; | 17 ENCODING_VERBATIM = 0; |
18 ENCODING_ZLIB = 1; | 18 ENCODING_ZLIB = 1; |
19 ENCODING_VP8 = 2; | 19 ENCODING_VP8 = 2; |
| 20 ENCODING_VP9 = 3; |
20 }; | 21 }; |
21 | 22 |
22 // The encoding used for this image update. | 23 // The encoding used for this image update. |
23 optional Encoding encoding = 5 [default = ENCODING_INVALID]; | 24 optional Encoding encoding = 5 [default = ENCODING_INVALID]; |
24 | 25 |
25 // Width and height of the whole screen. | 26 // Width and height of the whole screen. |
26 optional int32 screen_width = 6; | 27 optional int32 screen_width = 6; |
27 optional int32 screen_height = 7; | 28 optional int32 screen_height = 7; |
28 | 29 |
29 // Horizontal and vertical DPI of the screen. If either of these is zero or | 30 // Horizontal and vertical DPI of the screen. If either of these is zero or |
(...skipping 29 matching lines...) Expand all Loading... |
59 | 60 |
60 // The most recent sequence number received from the client on the event | 61 // The most recent sequence number received from the client on the event |
61 // channel. | 62 // channel. |
62 optional int64 client_sequence_number = 9; | 63 optional int64 client_sequence_number = 9; |
63 | 64 |
64 repeated Rect desktop_shape_rects = 10; | 65 repeated Rect desktop_shape_rects = 10; |
65 | 66 |
66 // True when |desktop_shape_rects| should be used. | 67 // True when |desktop_shape_rects| should be used. |
67 optional bool use_desktop_shape = 11; | 68 optional bool use_desktop_shape = 11; |
68 } | 69 } |
OLD | NEW |