OSDN Git Service

Use screen dimensions as default video size
authorAndy McFadden <fadden@android.com>
Fri, 2 Aug 2013 20:58:54 +0000 (13:58 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 2 Aug 2013 21:03:24 +0000 (14:03 -0700)
commitf560001b5d60225dc7e101b2481477a3c39b66a4
tree461758ceb2b2dcc49ba220230b7859374a633a40
parentb08ab81bab9e8cd2e3a7fff02725a387070fd078
Use screen dimensions as default video size

Instead of 720p, use the screen dimensions as the default video
size.  For example, a phone with a 768x1280 display would be
recorded as a 768x1280 video when in portrait, or a 1280x768
video when in landscape.

If the device is not able to record at that resolution, we
fall back to 720p.

Also, fixed a problem introduced by a buffer timestamp change.

Change-Id: I7230ddb323c669ab07327f26df8d103c192c21d3
cmds/screenrecord/screenrecord.cpp