summaryrefslogtreecommitdiff
path: root/isp/omap3isp-priv.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-07-30 14:33:37 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-07-30 14:33:37 +0200
commitfebcb53ca85d911619456c09c4be49fd73c4964b (patch)
tree12ae3a93d117b56da6e1213882f5cc6de3977adb /isp/omap3isp-priv.h
omap3-isp-live: Initial commit
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp/omap3isp-priv.h')
-rw-r--r--isp/omap3isp-priv.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/isp/omap3isp-priv.h b/isp/omap3isp-priv.h
new file mode 100644
index 0000000..fe03d96
--- /dev/null
+++ b/isp/omap3isp-priv.h
@@ -0,0 +1,68 @@
+/*
+ * OMAP3 ISP library - OMAP3 ISP private header
+ *
+ * Copyright (C) 2010-2011 Ideas on board SPRL
+ *
+ * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * This library 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 Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __OMAP3ISP_PRIV_H
+#define __OMAP3ISP_PRIV_H
+
+#include "omap3isp.h"
+
+/*
+ * struct omap3_isp_video - OMAP3 video device
+ * @subdev: Sub-device from which video is captured for this device
+ * @node: Output video node entity
+ * @video: V4L2 capture device
+ * @format: Current video format
+ * @pool: Buffers pool
+ * @scaler: Whether scaling should be performed on the ISP or the sensor
+ * @dequeued: Bitmask of dequeued buffers that belong to the application
+ * @queued: Number of buffers queued to the driver
+ * @running: Whether video capture is running on the device
+ */
+struct omap3_isp_video {
+ struct media_entity *subdev;
+ struct media_entity *node;
+ struct v4l2_device *video;
+ struct v4l2_mbus_framefmt format;
+ struct v4l2_buffers_pool *pool;
+ enum omap3_isp_scaler scaler;
+ unsigned int dequeued;
+ unsigned int queued;
+ bool running;
+};
+
+struct omap3_isp_device {
+ struct media_device *mdev;
+
+ struct media_entity *ccdc;
+ struct media_entity *preview;
+ struct media_entity *resizer;
+ struct media_entity *sensor;
+
+ struct v4l2_mbus_framefmt sensor_format;
+
+ struct omap3_isp_video viewfinder;
+ struct omap3_isp_video snapshot;
+
+ const struct omap3_isp_operations *ops;
+};
+
+#endif