diff mbox

[v3,09/10] V4L2 ISP driver patchset for Intel Moorestown Camera Imaging Subsystem

Message ID 33AB447FBD802F4E932063B962385B351E895DA7@shsmsx501.ccr.corp.intel.com (mailing list archive)
State RFC
Headers show

Commit Message

Xiaolin Zhang May 19, 2010, 3:17 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/mrstisp/include/ci_va.h b/drivers/media/video/mrstisp/include/ci_va.h
new file mode 100644
index 0000000..e77bb58
--- /dev/null
+++ b/drivers/media/video/mrstisp/include/ci_va.h
@@ -0,0 +1,47 @@ 
+/*
+ * Support for Moorestown Langwell Camera Imaging ISP subsystem.
+ *
+ * Copyright (c) 2009 Intel Corporation. All Rights Reserved.
+ *
+ * Copyright (c) Silicon Image 2008  www.siliconimage.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version
+ * 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ *
+ * Xiaolin Zhang <xiaolin.zhang@intel.com>
+ */
+
+/*
+ * for buffer sharing between camera and video subsystem to improve preview
+ *  and video capture perofrmance
+ */
+
+#ifndef _CI_VA_H
+#define _CI_VA_H
+
+/* fixme: will be replaced for subdev/media controller framework */
+struct ci_frame_info {
+	unsigned long frame_id; /* in */
+	unsigned int width; /* out */
+	unsigned int height; /* out */
+	unsigned int stride; /* out */
+	unsigned int fourcc; /* out */
+	unsigned int offset; /* out */
+};
+
+#define ISP_IOCTL_GET_FRAME_INFO _IOWR('V', 192 + 5, struct ci_frame_info)
+
+#endif
+
diff --git a/drivers/media/video/mrstisp/include/v4l2_jpg_review.h b/drivers/media/video/mrstisp/include/v4l2_jpg_review.h
new file mode 100644
index 0000000..d574d83
--- /dev/null
+++ b/drivers/media/video/mrstisp/include/v4l2_jpg_review.h
@@ -0,0 +1,47 @@ 
+/*
+ * Support for Moorestown Langwell Camera Imaging ISP subsystem.
+ *
+ * Copyright (c) 2009 Intel Corporation. All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version
+ * 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ *
+ * Xiaolin Zhang <xiaolin.zhang@intel.com>
+ */
+
+#ifndef	__V4L2_JPG_REVIEW_EXT_H
+#define	__V4L2_JPG_REVIEW_EXT_H
+
+#include <linux/videodev2.h>
+
+/*
+ * Moorestown JPG image auto review structure and IOCTL.
+ */
+struct v4l2_jpg_review_buffer{
+	__u32	width;		/* in: frame width */
+	__u32	height;		/* in: frame height */
+	__u32	pix_fmt;	/* in: frame fourcc */
+	__u32	jpg_frame;	/* in: corresponding jpg frame id */
+	__u32	bytesperline;	/* out: 0 if not used */
+	__u32	frame_size;	/* out: frame size */
+	__u32	offset;		/* out: mmap offset */
+};
+
+#define	BASE_VIDIOC_PRIVATE_JPG_REVIEW	(BASE_VIDIOC_PRIVATE + 10)
+
+#define	VIDIOC_CREATE_JPG_REVIEW_BUF	_IOWR('V', \
+		BASE_VIDIOC_PRIVATE_JPG_REVIEW + 1, \
+		struct v4l2_jpg_review_buffer)
+#endif