summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-02 13:20:36 +0800
committerWu-cheng Li <wuchengli@google.com>2011-08-02 14:27:58 +0800
commit40cdc56efa47580d89a93750cefecb8ccbaf9a72 (patch)
treeffa29768c5a9207340027ca44cbacdc3e3b40750 /include/camera
parent2f53a63142801e174e6ebf79cfbcd9055d8c538b (diff)
downloadframeworks_av-40cdc56efa47580d89a93750cefecb8ccbaf9a72.zip
frameworks_av-40cdc56efa47580d89a93750cefecb8ccbaf9a72.tar.gz
frameworks_av-40cdc56efa47580d89a93750cefecb8ccbaf9a72.tar.bz2
Add camera recording hint parameter.
The API is still hidden. bug:4266229 Change-Id: I5e4c24e9e2808582aecb55ac4f1d5be3ed7e36a2
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/CameraParameters.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h
index d2f398a..48483fd 100644
--- a/include/camera/CameraParameters.h
+++ b/include/camera/CameraParameters.h
@@ -484,6 +484,17 @@ public:
// Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read only.
static const char KEY_VIDEO_FRAME_FORMAT[];
+ // Sets the hint of the recording mode. If this is true, MediaRecorder.start
+ // may be faster or has less glitches. This should be called before starting
+ // the preview for the best result. But it is allowed to change the hint
+ // while the preview is active. The default value is false.
+ //
+ // The apps can still call Camera.takePicture when the hint is true. The
+ // apps can call MediaRecorder.start when the hint is false. But the
+ // performance may be worse.
+ // Example value: "true" or "false". Read/write.
+ static const char KEY_RECORDING_HINT[];
+
// Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED.
static const char TRUE[];
static const char FALSE[];