summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-08-19 11:08:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-19 11:08:36 -0700
commitccb915963e70c9b4e8fc47b5af97ab37b979195a (patch)
treed03b17d7575b712bad18795e7ec50891655b6668 /include
parentf0ad54846168f07fc1fd7f18cde93deea1559f86 (diff)
parent0de0c4960da1ec2f6aeada9718755c37cfee45e0 (diff)
downloadframeworks_base-ccb915963e70c9b4e8fc47b5af97ab37b979195a.zip
frameworks_base-ccb915963e70c9b4e8fc47b5af97ab37b979195a.tar.gz
frameworks_base-ccb915963e70c9b4e8fc47b5af97ab37b979195a.tar.bz2
Merge "Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE" into gingerbread
Diffstat (limited to 'include')
-rw-r--r--include/camera/CameraParameters.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h
index 99a3115..013452f 100644
--- a/include/camera/CameraParameters.h
+++ b/include/camera/CameraParameters.h
@@ -22,6 +22,21 @@
namespace android {
+struct Size {
+ int width;
+ int height;
+
+ Size() {
+ width = 0;
+ height = 0;
+ }
+
+ Size(int w, int h) {
+ width = w;
+ height = h;
+ }
+};
+
class CameraParameters
{
public:
@@ -49,6 +64,7 @@ public:
const char *getPreviewFormat() const;
void setPictureSize(int width, int height);
void getPictureSize(int *width, int *height) const;
+ void getSupportedPictureSizes(Vector<Size> &sizes) const;
void setPictureFormat(const char *format);
const char *getPictureFormat() const;