diff options
| author | Wu-cheng Li <wuchengli@google.com> | 2010-08-19 11:08:36 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-19 11:08:36 -0700 |
| commit | ccb915963e70c9b4e8fc47b5af97ab37b979195a (patch) | |
| tree | d03b17d7575b712bad18795e7ec50891655b6668 /include | |
| parent | f0ad54846168f07fc1fd7f18cde93deea1559f86 (diff) | |
| parent | 0de0c4960da1ec2f6aeada9718755c37cfee45e0 (diff) | |
| download | frameworks_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.h | 16 |
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; |
