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

Unified 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 side-by-side diff with in-line comments
Download patch
« remoting/base/encoder_vp8.cc ('K') | « remoting/base/encoder_vp8_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/proto/video.proto
diff --git a/remoting/proto/video.proto b/remoting/proto/video.proto
index 14415af4585e55ceb3f54a346d99c525de748a5d..9f8bbdb3d8ab02100ecf59abf8b9f890833def80 100644
--- a/remoting/proto/video.proto
+++ b/remoting/proto/video.proto
@@ -33,6 +33,11 @@ message VideoPacketFormat {
// Width and height of the whole screen.
optional int32 screen_width = 6;
optional int32 screen_height = 7;
+
+ // 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,
+ // 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
+ 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.
+ optional int32 vertical_dpi = 9;
}
// TODO(hclam): Remove this message once we can obtain dirty rects from libvpx.
« 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