summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
Diffstat (limited to 'libcamera')
-rw-r--r--libcamera/SecCamera.h7
-rwxr-xr-xlibcamera/SecCameraHWInterface.cpp4
2 files changed, 6 insertions, 5 deletions
diff --git a/libcamera/SecCamera.h b/libcamera/SecCamera.h
index 9c3bf2d..8b9548d 100644
--- a/libcamera/SecCamera.h
+++ b/libcamera/SecCamera.h
@@ -2,6 +2,7 @@
**
** Copyright 2008, The Android Open Source Project
** Copyright 2010, Samsung Electronics Co. LTD
+** Copyright 2011, The CyanogenMod Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
@@ -81,8 +82,8 @@ namespace android {
#error "Please define the Camera module"
#endif
-#define S5K4ECGX_PREVIEW_WIDTH 720
-#define S5K4ECGX_PREVIEW_HEIGHT 480
+#define S5K4ECGX_PREVIEW_WIDTH 1280
+#define S5K4ECGX_PREVIEW_HEIGHT 720
#define S5K4ECGX_SNAPSHOT_WIDTH 2560
#define S5K4ECGX_SNAPSHOT_HEIGHT 1920
@@ -146,7 +147,7 @@ namespace android {
#define BPP 2
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
-#define MAX_BUFFERS 9 // 11
+#define MAX_BUFFERS 4
/*
* V 4 L 2 F I M C E X T E N S I O N S
*
diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp
index 9a91ca6..ca2bedd 100755
--- a/libcamera/SecCameraHWInterface.cpp
+++ b/libcamera/SecCameraHWInterface.cpp
@@ -155,9 +155,9 @@ void CameraHardwareSec::initDefaultParameters(int cameraId)
if (cameraId == SecCamera::CAMERA_ID_BACK) {
p.set(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES,
- "720x480,640x480,352x288,176x144");
+ "1280x720,800x480,720x480,640x480,592x480,352x288");
p.set(CameraParameters::KEY_SUPPORTED_PICTURE_SIZES,
- "2560x1920,2048x1536,1600x1200,1280x960,640x480");
+ "2560x1920,2560x1536,2048x1536,2048x1232,1600x1200,1600x960,800x480,640x480");
} else {
p.set(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES,
"640x480,320x240,176x144");