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

Side by Side Diff: remoting/proto/video.proto

Issue 10736046: Add DPI information to video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use different test values for x and y DPI. Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
Wez 2012/07/13 21:49:02 nit: Rather than complicate calling code, mandate
Jamie 2012/07/13 22:17:13 Does it complicate calling code? If the field is u
Wez 2012/07/14 00:55:11 I think that's defined by the protobuf spec, yes,
38 // unset, the corresponding DPI should be assumed to be 96.
Wez 2012/07/13 21:49:02 nit: It appears that Mac OS X defaults to 72dpi; m
Jamie 2012/07/13 22:17:13 Assuming most hosts are Windows, let's stick with
39 optional int32 horizontal_dpi = 8;
Wez 2012/07/13 21:49:02 nit: I think x_dpi and y_dpi would be sufficiently
Jamie 2012/07/13 22:17:13 Done.
40 optional int32 vertical_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
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 }
OLDNEW
« remoting/base/encoder_vp8.cc ('K') | « remoting/base/encoder_vp8_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698