aboutsummaryrefslogtreecommitdiffstats
path: root/include/system
diff options
context:
space:
mode:
authorAnkit Premrajka <ankitp@codeaurora.org>2011-11-16 00:09:57 -0800
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-07-15 01:31:07 +0100
commitf773f0589761fba76ed4fb77345fb24efbce9828 (patch)
treede942ad2c8a0e5322e7c906874bf2dccd2838931 /include/system
parentd9cf17ba33301cdb967bc5c0b9efbdfd6971eb0b (diff)
downloadsystem_core-f773f0589761fba76ed4fb77345fb24efbce9828.tar.gz
system_core-f773f0589761fba76ed4fb77345fb24efbce9828.tar.bz2
system_core-f773f0589761fba76ed4fb77345fb24efbce9828.zip
camera: change camera node permissions and add certain parameters.
Change-Id: Ia68160601c2b2ba3eebde9963b3972f2a09ff84a
Diffstat (limited to 'include/system')
-rw-r--r--include/system/camera.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/system/camera.h b/include/system/camera.h
index e4cacc55..e5681f40 100644
--- a/include/system/camera.h
+++ b/include/system/camera.h
@@ -87,7 +87,15 @@ enum {
CAMERA_MSG_PREVIEW_METADATA = 0x0400, // dataCallback
// Notify on autofocus start and stop. This is useful in continuous
// autofocus - FOCUS_MODE_CONTINUOUS_VIDEO and FOCUS_MODE_CONTINUOUS_PICTURE.
+#if defined(QCOM_ICS_COMPAT) && defined(QCOM_HARDWARE)
+ CAMERA_MSG_STATS_DATA = 0x800,
+ CAMERA_MSG_FOCUS_MOVE = 0x1000, // notifyCallback
+#else
CAMERA_MSG_FOCUS_MOVE = 0x0800, // notifyCallback
+#ifdef QCOM_HARDWARE
+ CAMERA_MSG_STATS_DATA = 0x1000,
+#endif
+#endif
CAMERA_MSG_ALL_MSGS = 0xFFFF
};
@@ -147,6 +155,14 @@ enum {
*/
CAMERA_CMD_STOP_FACE_DETECTION = 7,
+#if defined(QCOM_ICS_COMPAT) && defined(QCOM_HARDWARE)
+ CAMERA_CMD_HISTOGRAM_ON = 8,
+ CAMERA_CMD_HISTOGRAM_OFF = 9,
+ CAMERA_CMD_HISTOGRAM_SEND_DATA = 10,
+ /* Unused by the older blobs, but referenced */
+ CAMERA_CMD_ENABLE_FOCUS_MOVE_MSG = 11,
+ CAMERA_CMD_PING = 12,
+#else
/**
* Enable/disable focus move callback (CAMERA_MSG_FOCUS_MOVE). Passing
* arg1 = 0 will disable, while passing arg1 = 1 will enable the callback.
@@ -163,6 +179,14 @@ enum {
* can silently finish itself or show a dialog.
*/
CAMERA_CMD_PING = 9,
+
+#ifdef QCOM_HARDWARE
+ CAMERA_CMD_HISTOGRAM_ON = 10,
+ CAMERA_CMD_HISTOGRAM_OFF = 11,
+ CAMERA_CMD_HISTOGRAM_SEND_DATA = 12,
+#endif
+#endif
+
};
/** camera fatal errors */
@@ -186,6 +210,15 @@ enum {
CAMERA_FACING_FRONT = 1
};
+#ifdef QCOM_HARDWARE
+enum {
+ CAMERA_SUPPORT_MODE_2D = 0x01, /* Camera Sensor supports 2D mode. */
+ CAMERA_SUPPORT_MODE_3D = 0x02, /* Camera Sensor supports 3D mode. */
+ CAMERA_SUPPORT_MODE_NONZSL = 0x04, /* Camera Sensor in NON-ZSL mode. */
+ CAMERA_SUPPORT_MODE_ZSL = 0x08 /* Camera Sensor supports ZSL mode. */
+};
+#endif
+
enum {
/** Hardware face detection. It does not use much CPU. */
CAMERA_FACE_DETECTION_HW = 0,