summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNagesh Subba Reddy <c_nsubba@quicinc.com>2010-04-30 16:55:14 -0700
committerSandeep Gupta <c_sandee@quicinc.com>2010-05-04 14:25:07 -0700
commit242b3db098ea464b3a5c68d2e1b890a99b80bfe6 (patch)
treef1afd164d4fbd79a62c30e5bab4f94c1084a1b93
parent44a1521ccc85fa6d54fd2c15cdad80bd39a27d98 (diff)
downloadbionic-M7630AABBQMLZA1230.zip
bionic-M7630AABBQMLZA1230.tar.gz
bionic-M7630AABBQMLZA1230.tar.bz2
bionic:Time stamp support for videoM7630AABBQMLZA1230
Added a time spec variable to msm_frame, to carry the timestamp of the video frames Change-Id: I9984130555b707262e33ea902fec43a5bb14cc29
-rwxr-xr-xlibc/kernel/common/media/msm_camera.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/kernel/common/media/msm_camera.h b/libc/kernel/common/media/msm_camera.h
index 1ed7a50..0ee7a1a 100755
--- a/libc/kernel/common/media/msm_camera.h
+++ b/libc/kernel/common/media/msm_camera.h
@@ -12,9 +12,13 @@
#ifndef __LINUX_MSM_CAMERA_H
#define __LINUX_MSM_CAMERA_H
+#ifdef MSM_CAMERA_BIONIC
+#include <sys/types.h>
+#endif
#include <linux/types.h>
#include <asm/sizes.h>
#include <linux/ioctl.h>
+#include <linux/time.h>
#define MSM_CAM_IOCTL_MAGIC 'm'
@@ -167,6 +171,10 @@ struct msm_camera_cfg_cmd {
#define CMD_AXI_CFG_PREVIEW 36
#define CMD_AXI_CFG_VIDEO 37
+#define CMD_STATS_IHIST_ENABLE 38
+#define CMD_STATS_RS_ENABLE 39
+#define CMD_STATS_CS_ENABLE 40
+
struct msm_vfe_cfg_cmd {
int cmd_type;
uint16_t length;
@@ -244,12 +252,14 @@ struct outputCfg {
#define MSM_FRAME_PREV_1 0
#define MSM_FRAME_PREV_2 1
#define MSM_FRAME_ENC 2
+
#define OUTPUT_TYPE_P 1
#define OUTPUT_TYPE_T 2
#define OUTPUT_TYPE_S 3
#define OUTPUT_TYPE_V 4
struct msm_frame {
+ struct timespec ts;
int path;
unsigned long buffer;
uint32_t y_off;
@@ -368,7 +378,6 @@ struct fps_cfg {
uint16_t fps_div;
uint32_t pict_fps_div;
};
-
struct wb_info_cfg {
uint16_t red_gain;
uint16_t green_gain;