OSDN Git Service

Camera: Allow larger preview resolutions in API1 for >= HALv2 devices
authorEino-Ville Talvala <etalvala@google.com>
Sat, 13 Sep 2014 00:15:24 +0000 (17:15 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Sat, 13 Sep 2014 19:36:52 +0000 (12:36 -0700)
commita4c95a6bc3b801bf41ca841440e9124f947e53fe
tree5f9fc5c467b97da7c7691107607aea04936f3b7b
parent98d594620365088e05c4e5925bb00bf065b8caa1
Camera: Allow larger preview resolutions in API1 for >= HALv2 devices

Limit preview resolutions to a max of 1920x1920 instead of 1920x1080p,
so that any aspect ratio with a 1920 as the larger dimension can be used.

Also improve the initial preview/video size selection logic, to ensure
that the selected size is both a valid preview and video size, and not
too large.

Bug: 17458832
Change-Id: Iea006fadb5fbf0f03d23c3c5babb5b3611469688
services/camera/libcameraservice/api1/client2/Parameters.cpp
services/camera/libcameraservice/api1/client2/Parameters.h