| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Width, height (in screen pixels) for this update. | 26 // Width, height (in screen pixels) for this update. |
| 27 optional int32 width = 3; | 27 optional int32 width = 3; |
| 28 optional int32 height = 4; | 28 optional int32 height = 4; |
| 29 | 29 |
| 30 // The encoding used for this image update. | 30 // The encoding used for this image update. |
| 31 optional Encoding encoding = 5 [default = ENCODING_INVALID]; | 31 optional Encoding encoding = 5 [default = ENCODING_INVALID]; |
| 32 | 32 |
| 33 // Width and height of the whole screen. | 33 // Width and height of the whole screen. |
| 34 optional int32 screen_width = 6; | 34 optional int32 screen_width = 6; |
| 35 optional int32 screen_height = 7; | 35 optional int32 screen_height = 7; |
| 36 |
| 37 // Horizontal and vertical DPI of the screen. If either of these is zero or |
| 38 // unset, the corresponding DPI should be assumed to be 96 (Windows' default) |
| 39 optional int32 x_dpi = 8; |
| 40 optional int32 y_dpi = 9; |
| 36 } | 41 } |
| 37 | 42 |
| 38 // TODO(hclam): Remove this message once we can obtain dirty rects from libvpx. | 43 // TODO(hclam): Remove this message once we can obtain dirty rects from libvpx. |
| 39 message Rect { | 44 message Rect { |
| 40 optional int32 x = 1; | 45 optional int32 x = 1; |
| 41 optional int32 y = 2; | 46 optional int32 y = 2; |
| 42 optional int32 width = 3; | 47 optional int32 width = 3; |
| 43 optional int32 height = 4; | 48 optional int32 height = 4; |
| 44 } | 49 } |
| 45 | 50 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Time in milliseconds spent in capturing this video frame. | 93 // Time in milliseconds spent in capturing this video frame. |
| 89 optional int32 capture_time_ms = 7; | 94 optional int32 capture_time_ms = 7; |
| 90 | 95 |
| 91 // Time in milliseconds spent in encoding this video frame. | 96 // Time in milliseconds spent in encoding this video frame. |
| 92 optional int32 encode_time_ms = 8; | 97 optional int32 encode_time_ms = 8; |
| 93 | 98 |
| 94 // The most recent sequence number received from the client on the event | 99 // The most recent sequence number received from the client on the event |
| 95 // channel. | 100 // channel. |
| 96 optional int64 client_sequence_number = 9; | 101 optional int64 client_sequence_number = 9; |
| 97 } | 102 } |
| OLD | NEW |