diff options
| author | Ethan Chen <intervigil@gmail.com> | 2014-06-11 18:12:04 -0700 |
|---|---|---|
| committer | Zips <hcolmenares@gmail.com> | 2014-08-22 09:45:41 -0400 |
| commit | 737f4178e654e5c93f541827f6836b6941a4c8cd (patch) | |
| tree | e7357373acd1f9e9f9bdba05a10504d182a25efe | |
| parent | 781e66d46d475b8d0e0e09a42fe54eee46b7cabb (diff) | |
n1: Add HFR fixes
- Add hfr max size for all HFR modes
- Move "off" to end of hfr modes to avoid index mismatches
Change-Id: I78cff73f64257d02a5d6523d8272c2c6958a87ab
| -rw-r--r-- | camera/CameraWrapper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camera/CameraWrapper.cpp b/camera/CameraWrapper.cpp index 0368b05..6d78516 100644 --- a/camera/CameraWrapper.cpp +++ b/camera/CameraWrapper.cpp @@ -167,6 +167,14 @@ static char *camera_fixup_getparams(int id, const char *settings) params.set(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK_SUPPORTED, "false"); params.set(android::CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK_SUPPORTED, "false"); + /* HFR mode values has 3 entries, add a third entry for 90fps */ + params.set(android::CameraParameters::KEY_SUPPORTED_HFR_SIZES, + "800x480,720x480,640x480"); + + /* HFR modes need to have "off" as the last element */ + params.set(android::CameraParameters::KEY_SUPPORTED_VIDEO_HIGH_FRAME_RATE_MODES, + "60,90,120,off"); + /* Reduce purple */ params.set("reduce-purple", "on"); |
