summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/CameraSourceTimeLapse.h
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-07-30 18:30:55 -0700
committerNipun Kwatra <nkwatra@google.com>2010-08-02 09:49:07 -0700
commit40e2f3f9b41f44bdb59f7708a421b87f169a6ede (patch)
treeda4d690100f6bc6c0319f551e5833ce7c08cd760 /include/media/stagefright/CameraSourceTimeLapse.h
parent99b4de92430fe42f9d1493c8a4c3d27de89d3549 (diff)
downloadframeworks_av-40e2f3f9b41f44bdb59f7708a421b87f169a6ede.zip
frameworks_av-40e2f3f9b41f44bdb59f7708a421b87f169a6ede.tar.gz
frameworks_av-40e2f3f9b41f44bdb59f7708a421b87f169a6ede.tar.bz2
Implementing getSupportedPictureSizes
Go through all the supported picture sizes and choose the smallest one with both dimensions higher than the passed in video width and height. Change-Id: I4e9fe7a6384a0feeb9e069239ec68c70fb5f3033
Diffstat (limited to 'include/media/stagefright/CameraSourceTimeLapse.h')
-rw-r--r--include/media/stagefright/CameraSourceTimeLapse.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/media/stagefright/CameraSourceTimeLapse.h b/include/media/stagefright/CameraSourceTimeLapse.h
index 8ea532c..7135a33 100644
--- a/include/media/stagefright/CameraSourceTimeLapse.h
+++ b/include/media/stagefright/CameraSourceTimeLapse.h
@@ -126,9 +126,11 @@ private:
// The still camera may not support the demanded video width and height.
// We look for the supported picture sizes from the still camera and
- // choose the size with either dimensions higher than the corresponding video
- // dimensions. The still picture will be cropped to get the video frame.
- void setPictureSizeToClosestSupported(int32_t width, int32_t height);
+ // choose the smallest one with either dimensions higher than the corresponding
+ // video dimensions. The still picture will be cropped to get the video frame.
+ // The function returns true if the camera supports picture sizes greater than
+ // or equal to the passed in width and height, and false otherwise.
+ bool setPictureSizeToClosestSupported(int32_t width, int32_t height);
// Computes the offset of the rectangle from where to start cropping the
// still image into the video frame. We choose the center of the image to be