summaryrefslogtreecommitdiff
path: root/include/linux/ipu.h
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2011-10-27 09:32:41 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-06-03 21:45:32 -0500
commit361b249aaf8098c3e54fd2496e98b25f73f4ad80 (patch)
tree015bfb541dfa6d032b1263a9fb4a200b127f8ba5 /include/linux/ipu.h
parent81aece27dd7beae17cd97ef8cc7224b277307f28 (diff)
ENGR00160875-1 ipuv3 dev: low performance if enable rotation
1. no dma alloc for rot buf every time which will cost time. 2. fix split mode condition. 3. export some functions. This patch for common head file. Signed-off-by: Jason Chen <b02280@freescale.com>
Diffstat (limited to 'include/linux/ipu.h')
-rw-r--r--include/linux/ipu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/ipu.h b/include/linux/ipu.h
index 17638ab15120..051624854558 100644
--- a/include/linux/ipu.h
+++ b/include/linux/ipu.h
@@ -138,6 +138,12 @@ typedef enum {
/*! @} */
/* IPU device */
+typedef enum {
+ RGB_CS,
+ YUV_CS,
+ NULL_CS
+} cs_t;
+
struct ipu_pos {
u32 x;
u32 y;
@@ -246,4 +252,14 @@ enum {
#define IPU_ALLOC _IOWR('I', 0x3, int)
#define IPU_FREE _IOW('I', 0x4, int)
+/* export functions */
+#ifdef __KERNEL__
+unsigned int fmt_to_bpp(unsigned int pixelformat);
+cs_t colorspaceofpixel(int fmt);
+int need_csc(int ifmt, int ofmt);
+
+int ipu_queue_task(struct ipu_task *task);
+int ipu_check_task(struct ipu_task *task);
+#endif
+
#endif